LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial LabView - 16bit microcontroller communication

I'm trying to make a Man - Maschine Interface (vizualization) between LabView and Infineon 167CR microcontroller. Communication between the both works fine, but I'm trying to figure out nice and convenient way to recognize the datas sent and to sort them so that I know whether it's engines temperature or engine speed data. Maybe someone already did something similar ???? Thanx in advance
0 Kudos
Message 1 of 2
(2,680 Views)
there are a variety of ways of doing this depending on how much flexibility you need. if the data packet contents are constant, define a 'start of message' character or sequence of characters. convert your datavalues into single-precision and convert to hex. append all these 4-byte strings and put your start of message at the beginning of the whole thing and transmit it. at the other end the receiver scans for the start of message and (after stripping it off) takes the remainder, breaks it up into 4-byte chunks and converts each chunk back into a single precision number. a number's position in the message defines the value it represents.

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 2
(2,680 Views)