LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA open errors 1073897360, 1073897343, 1073897229

Solved!
Go to solution

I using labview to send commands to a tektronix AFG 3022 function generator.  My VI uses a for loop to increase the frequency by for example .25 kHz (starting at 1 kHz) every second for 15 seconds.   Every couple of iterations of my loop, one of the error codes I have attached below pops up (stopping the loop) and references that the error occurred at VISA Open in the Initialize VI.  This Initialize VI comes from the instrument driver for the AFG3000 series of function generators.

 

I am unsure whether the error is with the VISA Open function or the Initialize VI.  If the error is due to the VISA Open function, then does that mean there are communication issues with my function generator and the Dell laptop I am using?

 

Error messages.png

 

 

What I have tried:

 

-different USB 2.0 cords

-updated the USB Root Hub driver

-made sure the box in USB Root Hub properties saying "allow this computer to turn off this device to save power" is not checked

-put a 2 second wait function before VISA Open

 

I will now try to run the VI on a different computer and will update on how it goes.

 

Here is the Initialize VI:

 

Initialize.png

 

 

0 Kudos
Message 1 of 3
(3,263 Views)

Get that initialize vi out of any loop!

 

Init once and once only (or you risk the instrument's firmware being in an odd state) 


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(3,255 Views)
Solution
Accepted by topic author Whitmanstudent

I just found the issue. It had to do with the driver's error out VI, which had a close visa function.  Therefore, the constant closing and reopening of the visa generated the errors. I also moved the initialize VI out of the loop(as you suggested) just to be safe. Thanks anyways.

0 Kudos
Message 3 of 3
(3,239 Views)