LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading and analyzing serial data

Hello,

My question is about interpreting periodic serial data.
I'm trying to read a serial rs232 port, through which I'm receiving periodic data which is made up of 4 repeating messages.
Each message consists of several parameters of various length and fomates (for example, the first parameter could be an unisgned byte while the second parameter could be a word-long float). Each message begins and terminates with known character sequences.
I need to read this periodic data and display it to the user, so that each of the parameters (of which the messages are made) is displayed
by a different indicator.
Right now, I've used the basic read/write rs232 LabView tutorial but now I'm pretty much stuck...
I've built a similar program using Visual Basic and I've started using LabView in order to build better user interfaces but so far I'm stuck...

Any suggestions?
0 Kudos
Message 1 of 2
(2,485 Views)

First, I think you really could have come up with a better user name then falling asleep on your "N" key.

Data that comes in through the serial port is a string.  So your problem really comes down to how to parse the string into its respective parts.  Look at the functions on the string pallete.  Functions such as Match String, Search/Split String, or Scan String for Tokens, should do what you need.  Once you have the parts broken up, the String to Number conversion functions would convert the strings into their appropriate datatypes.

0 Kudos
Message 2 of 2
(2,470 Views)