LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Port - terminating on two LF

I have a sensor that sends me streams of data. Each set of data is terminated by two line feeds (\n\n). I noticed that configure serial port only allows one termination character. Is there anyway to get around this limitation in order to terminate on two characters?
0 Kudos
Message 1 of 2
(2,469 Views)

I have read (and agree) with Rolf who said any protocol that uses two termination characters is just plain dumb.

No you can not define two values to represent the term character.

You could use the term characters as they function now and just toss any empty message (unless you have the term character possibly occuring in your data stream, ouch).

or

you disable the term character and develop code that watches for two consecutive term characters.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,439 Views)