Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all 5666 articles
Browse latest View live

multiple SPI device on myRIO

$
0
0

Hi,

I need to acquire 2 PT1000 and 2 Resistance with myRIO for my application.

In order to achive a good measurements I thinked to implement a 4 wire measurements for the PT1000, and the resistance trought a MAX31865 device.

The MAX31865 has a SPI interface, so my question is how can connect 4(or more) SPI devices to myRIO?

Infact myRIO has only 2 SPI( one for the A MXP and one for the B MXP).

Can you show me an example of code to manage this four devices?

 

regards

david


Insufficient system resources to perform necessary memory allocation

$
0
0

I have been running an assortment of GPIB, VXI and TCP/IP devices through in-house device drivers via VISA. These interfaces have been run for more years than I care to remember. One of our test computers rebooted at some point and since then I cannot get all the devices to initialize without getting the error "VISA: Insufficient system resources to perform necessary memory allocation". At the most I can get perhaps 8 out of 20 devices to initialize without error. Adding one more device causes the last successful device in the list of devices to report the error (not necessarily the last device added).

Bear in mind that there have been no changes to the driver software or to the types and quantities of equipment connected to the test computer at that point. The computer in question was found to have a bad power supply and two failed hard drives. Replacement equipment was installed and the software re-imaged from backups. The problem still occurs. 

I don't know how I can get a sudden and continued failure and what could be causing it.

This is old software that has been in use for some time but was re-installed following the computer hardware replacements:

NICvisa ver 3.1     (NI-VISA for 32-bit Solaris)

NIpcigpib ver 2.3

NIpcimxi ver 2.1.0-2

Best architecture for large number of VISA devices

$
0
0

I am about to begin developing a system that will communicate with about 300 devices via RS-485.  I am using the NI PCIe-8431/16, 16 Port RS485/RS422 Serial Interface.  I'm using 11 ports, each port has 27 devices on it.  Before I start development, I'm really just fishing for some advice on the most efficient/simplest architecture for a program like this. I'd like to monitor output from the devices as often as possible.  Based on these outputs, I'd send commands to the devices occasionally.  I plan on using the VISA vis for communication.

 

I'm thinking something like a parallel loop set up where one loop sends commands and the other reads the output.  This doesn't seem too tough until I start thinking about how to manage 300 devices across 11 ports!  Any advice, examples, or thoughts on setting this up would be much appreciated.  

 

Thanks!

 

Optimal GPIB commands sequence

$
0
0

Hello everyone,

I have at least 5 different devices sharing the same bus and I am using GPIB for the communication with them.

I am looking for an optimal command sequence for communication like

for write *rst; *cls; some_command; read ; *wai (or *opt? *opt).

Additionally, GPIB communication occurs from a different VI's simultaneously (I am not an original developer of these programs).

Sometimes the program froze when one of the devices reveals the error of the command from the remote program (i.e. VI).

So, my idea is to prevent the error organizing a timetable for commands, I mean Check if device is busy, wait, if too long -- Cancel; send a command; read; wait until reads; make a mark that device is free for another command.

 

Thank you in advance for any suggestions.

Bests,

Dima

 

Reading in Pyrometer Data to LabVIEW through USB

$
0
0

Note: Please let me know if this would belong better in another community and I will repost it there. 

I work in a research lab that requires a pyrometer to do non-contact temperature measurement of silicon chips that are heated by halogen lamps. Presently, we use thermocouples to read the temperature and then do closed-loop feedback to either turn the lamps on/off based on the heating trends that we desire. The issue with using the pyrometer (Model here: http://www.optris.com/optris-cslaser-lt and the manuals are in the "Datasheets and manuals" tab) is that the software provided by the manufacturer just records the data into a text file after the test is run and doesn't allow for real-time integration with LabVIEW. There is a connector that plugs into the back of the pyrometer and has wires with the following designation:

Sensor Pin Diagram.PNG

Pin Diagram.PNG

Then there is a further USB adapter that we bought in order to communicate with the pyrometer on the computer. This is the connection diagram:

USB Diagram.PNG

I'm new to LabVIEW - is there a way to get the temperature data (which I assume is coming from TXD, the yellow wire) into LabVIEW? Could I use a Compact DAQ on the digital side and plug the TXD wire into one of the channels to receive data? Or is there a way to still use the USB? Thank you so much for any help. 

New NI USB-232 Cable Heated Up

$
0
0

My newly purchased USB-232 cables, serial# BTDD0219 and BTDD020A, when connected to the mt laptop USB (cable(s) all by itself) heated up after about 5 minutes. Initially, Device Manager recognized these cables but after the initial hook up, the RS-232 ends heated up and Device Manager drop the connection. And if I'm fast enough, I can run my MET/CAL program for a few steps until the RS-232 terminal heated up. Then it crapped out!

 

What's the solution? Please advise.

 

My other but older cable, same model# 188345C-02, has no issue at all. I had this old cable hooked up on the same laptop and ran all day long without issue!

Connecting NI USB 6353 to ethernet

$
0
0

Hi, I'm using NI USB 6353 and want to control it remotely by connecting it over ethernet.. Al my other devices are connected using TP-LINK TL-PS310U. I'm able to connect DAQ over this server like on photo bellow, but I can't see it in NI MAX under devices, and can't find it when I try adding new network device.

 

Thank you for your time.

 

Problem with write subvi in Watlow EZ-Zone controller

$
0
0

Hello, I am a beginner with LabView and I am trying to control a Watlow EZ Zone PM controller using the Labview driver downloaded from their website (link) and a USB to RS485 adapter.

I can initialize and read, but everything crushes when the "Std_Bus_Write.vi" element executes. When using the example provided (Standard Bus LabView Example.vi) the communication with the controller breaks down. On the other hand, when I use it in the VI I want to create, the program completely crushes. Apparently, the problem in the latter might be in the "ILabview In" and "ILabview Out" elements (see image below).Error 1172.JPGThe error coming out is 1172. I should also say that when I opened the VI (both the example and mine), these warnings appear:

 

C:\Program Files\National Instruments\LabVIEW 2011\instr.lib\Watlow Std Bus\Public\Std_Bus_Initialize.vi (Std_Bus_Initialize.vi)
- The .NET assembly expected to be at "C:\Program Files (x86)\National Instruments\LabVIEW 8.6\instr.lib\Watlow Std Bus\Public\Watbus.dll" was loaded from "C:\Program Files\National Instruments\LabVIEW 2011\instr.lib\Watlow Std Bus\Public\Watbus.dll".
C:\Program Files\National Instruments\LabVIEW 2011\instr.lib\Watlow Std Bus\Public\Std_Bus_Write.vi (Std_Bus_Write.vi)
- The .NET assembly expected to be at "<GAC>:\Watbus" was loaded from "C:\Program Files\National Instruments\LabVIEW 2011\instr.lib\Watlow Std Bus\Public\Watbus.dll".
- Expected Assembly "Watbus, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", but found "Watbus, Version=3.0.13.0, Culture=neutral, PublicKeyToken=null."

 

Can anyone help me to identify the problem? I am using Labview 2011.

Thank you in advance!!


How to know the GPIB commands for an instrument without seller information

$
0
0

This is the situation...

I have an intrument to generate tests for EMC, I control it manually and with a PC application.

What I need to do is proggramming a new application to control it but I don´t even know the commands that the actual application sends to the instrument. I read all the available seller manuals but there is no information about these commands. Is there another way to know these commands?

PD: As you realised I´m new at this forum

VBA ReadString error

$
0
0

Hey everyone. I'm Andrea, a technician who just started working with a Fluke 8845a which needs to be controlled by an Excel file to measure resistance every "x" seconds.

 

Now, I'm really just beginning. And I'm already in trouble. When inserting the code below  in VBA I get the error attached. The error pops up at the ReadString line.

 

It says "runtime timeout, automation error". What can it be?

 

P. S. Sorry if there is a presentation section, I'm from mobile and I couldn't find it.

 

[code]
Sub idn()
Dim ioMgr As VisaComLib.ResourceManager
Dim idn
Dim instrument As VisaComLib.FormattedIO488
Set ioMgr = New VisaComLib.ResourceManager
Set instrument = New VisaComLib.FormattedIO488
' use instrument specific address for Open() parameter – i.e. GPIB0::22
Set instrument.IO = ioMgr.Open("TCPIP0::192.168.1.6::5025:Smiley FrustratedOCKET")
instrument.WriteString ("*IDN?")
instrument.WriteString "SYSTem:REMote"
instrument.WriteString ("READ?")
idn = instrument.ReadString


End Sub

[/code] 

Reason for GPIB delayed answers or unanswered

$
0
0

 

Hi everyone!

Thsi is te situation, some days ago I was looking for a way to know the commands to remote control an instrument for EMC it is a UCS (Ultra compact simulator), I finally found the commands but they don´t work on the correct UCS. The commands are for the UCS500M but works on the UCS500N. For example, I send EC;]\n to check the connection of the interface and I sometimes receive the identification of the device (UCS500N) but some other times I don´t have an unswer until I send one or two commands more. I´ve tried this also with the UCS500M but never had an answer. I have tried both Visa Test Panel and a VI using the visa subvi´s and observed the same bahaviour.

Does anyone have an idea of what is happening?

Greetings.

keithley 6221 ethernet

$
0
0

Dear All,

 

I want to control 6221 through ethernet method. The 6221 and 2182A are connected to each other with RS232 and trigger link.

I try to use the demo program Keithley providing to test the instrument. Both instruments are connected to computer successfully, and all functions work by using the demo program.

However, when I use my program, the error show up when the command is sent to "VISA write".

(No error at "VISA open") Further, the instrument do not show any "REM" word.

 

Could you please give me some suggestions about this problem?

Very Thanks!!

CHROMA 62012p power supply

$
0
0

Hi,

I am trying to communicate with CHROMA 62012P power supply using labview 14 32-bit through USB. It is always throwing error. When I am passing IDN command from NI-MAX it detects the instrument properly.

 

I tried the same vi using labview 8.5 version and it works fine and I am able to get my result.

 

What could be the issue causing this error? 

GPIB interface self-test error -37051 shows in MAX

$
0
0

I have two on-board PCI and PCIe GPIB boards connected in one PC. The PC is running on Win7 Pro.

Using MAX application I run the self-test on both gpib boards. The PCI board self-test end correctly. The PCIe board gives an error message:

"An unknown NI-488.2 software problem has occurred. (-37051)"

I scanned the network for possible solution or more data and found nothing. There's one reference in the NI discussion forum about this error under the subject - "Self test error -37051 visa 488.2 USB GPIB interface" but this discussion trail remains unsolved.

 

Can anyone understand this error? What it means? Is there anything to do to fix the error?

P.S. I tried to RESET the gpib card using MAX on both Reset options and still the self-test shows the error.

Appreciate any help or support.

Thanks much

agilent 33220A pulse wave problem (labview beginner)

$
0
0

I want to construct a pulse wave using 33220A as follows conditions.

 

 

sweep pulse wave 0V to 4V

edge time 8ns

width and frequency, it does not matter but the shorter it is the better.



I used Agilent 33XXX series example - standard wave form example to find the approximate pulse wave,
but this method was not able to set the edge time.

Conversely, if you try to apply pulse wave vi file (instrument I/O - driver - 33XXX - configure - pulse)  to example file,

it can only set period, width, and edge time in the pulse vi file. I could not find the voltage level setting.  

I want to know if I can construct a pulse wave with the following conditions using the labview 33220a example, and I want to know where to start.


I/O Trace to LabView code

$
0
0

Hi everyone.

I would like to know in your experience, wich is the most effective way of going from I/O Trace recorded data to LabView code.

I´m trying to use commands that I recorded with a VI but they don´t work at all. I´ve tryed with the Visa and GPIB subVI´s.

Has somebody done that?

Greetings.

Keithely 2636B labview driver not supported?

$
0
0

Hi I'm Lee.

Recent I am trying to make simple IV measurement program using Labview 2016.

But I couldn't find any Labview drivers for K2623B or K26xx on Ni and Keithley web page.

 

Someone help me to solve this problem.

 

I have experienced the K24xx labview.  but I heard that it is totally different the labview in K26xx. 

Please anyone attaching the example vi. (apply voltage, read current on channel A and B etc.)

 

Thanks. 

Driving a NI-USB device through VISA instead of NI-DAQmx

$
0
0

I am programming a rather complex instrument that will use different hardware devices (cameras, galvanometers, line cameras, light sources, motors, etc.), so there are different interface types involved.
I am skilled in ANSI C, and my design choice was to use the VISA library to access all of them, in order to abstract as much as possible the interface from the differences among the various hardware devices.

Of course (that's what you get when you enter a project already running), various interfaces are already established, and the one driving the galvanometers is just one of those. It is a NI USB-6001.

How nice: NI hardware and NI software! BUT it doesn't come with VISA compatibility out of the box: you have to create the driver yourself (OK, now I know how to do that...), and that's finally a done deal.

BUT (yes, again) it is NOT a USBTMC device (...), it is a RAW device!
And NI expressely tells that (roughly translating from Spanish from http://www.ni.com/tutorial/4478/es/) "Establishing communication with a RAW-class USB device is more complicated, as any device can use its own communication protocol. Contact with the provider of your device for details on your device communication protocol."

So, my question is: how do I contact with NI for this thing? Don't take me for a lazy guy: it is a few days that I am spinning round and round in the NI website just to make the USB-thing visible from VISA, and I should be programming, not surfing the web.

Is there some special support line or web-page where I can request this information?

Thank you all!

Impulse Trigger on DSO6000 Series

$
0
0

Hi all Labview user !! i just learned labview and try to trigger LI waveform from DSO6052A scope to labview ! but when i try to set Timeout more than 10000ms (10s) then seem that when i try to trigger Lightning impulse more than 3 times both scope and VI not running properly and can't get another waveform to labview !! ( scope error too ) any recommend if i want to trig several times of LI waveform .
Best regard , thanks ( English not too good ) 

Checksum error in GPIB

$
0
0

Hi, could somebody help me understanding this? I´m pretty new at GPIB and I had never heard about checksum.String.PNG

I´m using the code shown below to communicate with my instrument but I often get a "RR,15;" error wich according to the manual means "Checksum error" GPIB.PNG

Note: The original command is "EC;" this is, according to the manual, the one for identification of my instrument.

I sometimes have an answer of identification but it is just after sending a sort of combination of that command, I mean e.g: EC; then EC;= then EC;=. or in any order if the last sent did not work.

I´d thank your comments.

Greetings

Viewing all 5666 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>