07-15-2024 11:14 AM
Hello,
I have been running this LabVIEW program to collect data from a Cryocooler using an ethernet cable. The program had been working but I had to change the IP address of one of the instruments. I am able to communicate with the Cryo-Con 18i instrument through the NI-MAX VISA panel but am having an error when I try to initialize the instrument in the actual LabVIEW program. I updated the VISA resource name to the proper IP address and tried running the program. The program will run through the VISA open and interface settings, but fails when it hits the VISA write with the Query ID. Any help would be greatly appreciated.
This is the error code that I am receiving:
Here is where I am initializing the instrument. The failure is coming in the I/O VI at the end.
I am bringing in the required Instrument resource name and should be querying the ID with "*IDN?"
This write VI is where the error is occurring.
07-15-2024 04:14 PM
I would want to see how the device is configured in NI MAX, exactly what you're sending receiving in the test panel query, and what the VISA resource name is updated to in your LabVIEW program. Since it was working before my guess is that the resource you're providing in LabVIEW is off in some subtle way.
You might also want to probe the error wire that's coming out of that IDN Query function right before the select. If there's any error at all then the error output cluster will read what you see, so it's also possible that the true error being returned is something completely different.
07-15-2024 05:26 PM
When using the probe, I received no error message until directly after the VISA Write VI and the error message was the same as the initial error message.
1. The VISA resource name being entered into the initialize VI. (I would send the actual code, but it is a huge program with dozens of VIs)
2. NI MAX configuration information. I confirmed that is the correct IP address for this instrument.
3. The ID query given from the VISA test panel
Thank you for the help, if you need any other information, please let me know!
07-15-2024 06:38 PM
Try running I/O Trace when you're communicating through the test panels and then again when you're running from LabVIEW and see if there are any differences between the VISA calls that are made or the input data of those VISA calls.
07-15-2024 08:55 PM
@SamDougherty wrote:
When using the probe, I received no error message until directly after the VISA Write VI and the error message was the same as the initial error message.
1. The VISA resource name being entered into the initialize VI. (I would send the actual code, but it is a huge program with dozens of VIs)
2. NI MAX configuration information. I confirmed that is the correct IP address for this instrument.
3. The ID query given from the VISA test panel
Thank you for the help, if you need any other information, please let me know!
Did you replicate the same exact settings you used in VISA Test Panel in your VI?
BTW, why such granular configuration for Serial if you are going to use only TCP/IP based comm.,
07-16-2024 09:00 AM
When I run an I/O Trace, it looks like the error is coming when calling the Query ID. Numbers 1&2 are from the VISA test panel while 3-13 is from the LabVIEW program. I do notice they are slightly different, but I am not sure how to fix the querying issue.
07-16-2024 09:09 AM
The settings appear to be the same between the VISA test panel and the program.
This program was written by a previous assistant, and I am new to this project. The instrument only has an ethernet output, so I am unsure of why the serial port information was included. However, that portion of the code is bypassed when using a serial input.
07-17-2024 01:50 PM
To test the instrument, I created a simple identification query VI and am still getting the same error.