LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1074003951 when initializing instrument

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:

Error Information.PNG

 

Here is where I am initializing the instrument. The failure is coming in the I/O VI at the end.

Instrument Initialize.PNG

I am bringing in the required Instrument resource name and should be querying the ID with "*IDN?"

e2356c22-706d-4d99-868c-1ba89c7bb2b7.png

This write VI is where the error is occurring.

Instrument Write.PNG

0 Kudos
Message 1 of 8
(1,458 Views)

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.

0 Kudos
Message 2 of 8
(1,431 Views)

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) 

c461b781-7343-4936-8680-afaba57ec8cc.png

2. NI MAX configuration information. I confirmed that is the correct IP address for this instrument.

710e4433-facb-4c76-be56-151f634b7931.png

3. The ID query given from the VISA test panel

063e6a06-4ad6-4963-a515-842be614574b.png

Thank you for the help, if you need any other information, please let me know!

0 Kudos
Message 3 of 8
(1,418 Views)

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.

0 Kudos
Message 4 of 8
(1,409 Views)

@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) 

c461b781-7343-4936-8680-afaba57ec8cc.png

2. NI MAX configuration information. I confirmed that is the correct IP address for this instrument.

710e4433-facb-4c76-be56-151f634b7931.png

3. The ID query given from the VISA test panel

063e6a06-4ad6-4963-a515-842be614574b.png

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?

santo_13_0-1721094877250.png

BTW, why such granular configuration for Serial if you are going to use only TCP/IP based comm.,

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 8
(1,386 Views)

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.

 

NI Trace.PNG

0 Kudos
Message 6 of 8
(1,355 Views)

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.

0 Kudos
Message 7 of 8
(1,353 Views)

To test the instrument, I created a simple identification query VI and am still getting the same error.

 

Simple VI Error.PNG

0 Kudos
Message 8 of 8
(1,238 Views)