Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

"Port Already Open"

I am using Labview to Drive some RS232 programmable motors. However, once I am done using labview, I want to communicate with the motors using their software. This gives me an error message "Port Already Open".
 
My guess is that I am not properly terminating the visa session when I am exiting labview.
 
What would the proper way to close Com5 be, I would appreciate an example. This would have to be outside of the while loop since I don't believe that I would want to terminate the session on every loop, and maybe tied to the stop button of the while loop?
 
 
0 Kudos
Message 1 of 2
(3,322 Views)
Put a VISA Close outside the while loop.
0 Kudos
Message 2 of 2
(3,319 Views)