LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Properly opening and closing visa session

I have had problems with my vi's having problems connecting to RS232 ports. how do you properly open and close VISA sessions for VI's?
0 Kudos
Message 1 of 4
(2,775 Views)
To open and close a visa session simply
 
 
a more elegant approach is to use two loops. one for receive then pass the data into a queue and process it in another loop
 

Message Edited by James R on 04-03-2007 10:55 AM

- James

Using LV 2012 on Windows 7 64 bit
Download All
Message 2 of 4
(2,771 Views)
And what if I have multiple serial ports...I have the problem of one devices working on com 1 but not on any other port.
0 Kudos
Message 3 of 4
(2,761 Views)
there must be a visa close for each port
 
you could read all ports at the same time when data arives at any port
 
 
or you could just duplicate the previous example i posted for each port

Message Edited by James R on 04-03-2007 12:26 PM

- James

Using LV 2012 on Windows 7 64 bit
Message 4 of 4
(2,750 Views)