Hi,
I have a problem with a VI that i'm working on. Basically, my VI opens
a VISA session and then enters a case structure, then runs a bunch of
while loops that only stop once my STOP button is pressed. Once my STOP
button is pressed, the VI should exit the while loops, then exit the
case structure and close the VISA session.
However, my VISA session remains open (my instrument keeps running) and
the VI doesn't close (the red stop button is still red) until I decide
to press CTRL-E to look at the block diagram. At the instant that I
press CTRL-E, the program decides to immediatly turn my instrument off
and gray out the STOP button on the labview taskbar.
What's going on?
I tried closing my instrument within the while loops, and the
instrument properly closes as soon as I press my STOP button...
however, the VISA SESSION doesn't close, and you still have to either
press CTRL-E to end the program, or press the Labview STOP button.
Thanks for your help!
Aleks.