LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I clear a serial port buffer between reads using 8-port NI board and VISA in Labview?

At LabVIEW application execution, I configure 7 of the 8 ports on a NI 8-port RS-232 board. I must continuously monitor the ports and, if bytes are present at the port, read and process the data. I would then like to flush the buffer in preparation for the next cycle. The "read VISA" VI does not clear the buffer after reads. How can I clear (flush) the buffer for each port during run-time? Do I have to close the VISA session each time?
0 Kudos
Message 1 of 2
(4,935 Views)
On the Instrument I/O>VISA>VISA Advanced>Interface Specific palette is the function VISA Flush I/O Buffer.
Message 2 of 2
(4,935 Views)