LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Resource fails to update

Hello,

 

I am using a labview program to control my laser. Within the program, there are other programs being used as subVIs. As shown in the attached figure, the first subVI is where I change the visa resource to the appropriate port number. However, the rest of the subVIs fail to update the visa resource. Moreover, the visa resource resets every time the program stops. Can you please help me out in understanding why this is happening and how can I address it? Please let me know if you need any more details

 

Thanks in advance.

Ketan

0 Kudos
Message 1 of 5
(1,032 Views)

Impossible to debug an image.  We need the actual code in order to figure out where something could be going wrong.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(1,004 Views)

And here is where I show off why I use a spinning 8-Ball 

 

Don't use user data to store user data VISA forgets it.

 

Also open Tools>>Options Environment settings page and uncheck "Automatically Close VISA Sessions" then restart LabVIEW. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 5
(997 Views)

Hello crossrulz

 

Please find the VI attached to this message.

0 Kudos
Message 4 of 5
(975 Views)

Hello Jay,

 

I checked the Environment setting as you suggested and the option to "Automatically Close Visa Session" had been unchecked. Also, could you please elaborate on "not using user data to store user data"? 

 

Please find the VI that I am using attached to this message.

 

-Ketan

0 Kudos
Message 5 of 5
(973 Views)