LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Device requires two termination characters to terminate READ command

Solved!
Go to solution

Hello, I am programming an application on Labview to receive data from a serial device. One problem is that the device always outputs CR+LF after each measurement. However, in Labview, it seems only one termination character is allowed. This causes problems for me, because when I choose LF as the termination character, and I'm scanning the read string, it contains the other termination character, which gets sent to my data file and waveform chart, and it also fails to plot the data on the waveform chart, since the scanned string isn't pure numbers.

 

Is there a way around this? Thanks for any help.

0 Kudos
Message 1 of 3
(2,780 Views)
Solution
Accepted by YeungJohn2

Set LF as your termination character.  Search the string function for the CR and return the data before the CR.

 

Message 2 of 3
(2,778 Views)
Thank you.
0 Kudos
Message 3 of 3
(2,771 Views)