06-27-2022 11:21 PM
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
06-28-2022 07:55 AM
Impossible to debug an image. We need the actual code in order to figure out where something could be going wrong.
06-28-2022 08:46 AM - edited 06-28-2022 08:48 AM
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.
06-28-2022 09:49 PM
Hello crossrulz
Please find the VI attached to this message.
06-28-2022 09:55 PM
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