Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

My PC hangs out when I use the same GPIB card controlled with different sequences that access different adresses

I open 2 sequences in TestStand an run them at the same time. They are sharing the same GPIB card, but the code call different GPIB adresses. After some execution time my PC hangs out. I can't understand because if I run only one sequence I have no problem. There must be, I think, something mistake related to the GPIB. Can somebody help me?
0 Kudos
Message 1 of 2
(3,186 Views)
This sounds like a multi-threading issue with the GPIB instruments. Though the GPIB driver is thread safe in each GPIB call, the instruments themselves can have problems in these applications. The first step of troubleshooting is to run NI-Spy during the operation of these instruments. If there's two writes or two reads to the same instrument, problems can develop. Other similar synchronization issues may occur as well.

The viLock call can fix this situation. The ni-visa.hlp file gives more information about this function. Also, there are some instrument drivers at ni.com/idnet that implement this feature.

Randy Solomonson
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,186 Views)