LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial port reading

While I read from a serial port, i read two lines of strings at the same time even if a carriage return separates the two readings. How can i avoid reading the second line since i want to read each line of string turn by turn.
0 Kudos
Message 1 of 2
(2,345 Views)
I would suggest using VISA and then you can set the termination chatacter to be the carriage return. By using the termination character the read will stop after 1 of three things. An error, the number of byted requested was read, or the termination character is recieved.
Message 2 of 2
(2,345 Views)