08-30-2023 03:51 PM
Hello all,
We are using Labview 2017, 32 bit version for a test project that includes several instruments, some of which use VISA commands for communication, these devices include:
Tektronix Function Generators (either 3K or 31K family, only 1 connected at a time) - USB device
PhoXx laser - uses the instrument library supplies by PhoXx - Serial Comm port
We also detect a Struck sis3153 Card using DLL supplied by Struck, this is a USB device
Lastly, we detect a DAQ Power Supply using DAQmx
We recently added code to detect an Agilent Pulse Generator (81130A) which is connected via a GPIB cable/device
The order of device detection is:
DAQ PS
3K family Function Generator
PhoXx laser
Agilent 81130A
Struck sis3153
After adding the Pulse Generator detection, we started experiencing LV crashes if we retry detection of all instruments with the sis3153 powered down. A typical test is to attempt detection of all devices with the sis3153 powered up, then turn it off and attempt detection again. This works fine in previous versions of this application that do not include the Pulse Generator
I am including the VI that detects the Pulse Generator. The LV crash occurs when VISA Open is called (in the PG_81130A_Detect.vi). The VISA resource name we pass in is the one we get for Find Resources.
My hope is that you might be able to suggest a better way of detecting of the GPIB device or possibly tell me reasons that VISA open might cause a crash. Please note, there are no errors on the error in when VISA Open is called
Thanks!
08-30-2023 06:10 PM
Could you describe exactly what the "crash" is?