Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202541

Re: Convert to number

$
0
0

Hi deceased, yes it just spews out the data over the serial.

 

Batya:

In any case, the offset of the roll is 4 and it is 4 bytes long, and the other engineering units follow. He should be able to extract and convert that.
I would probably look for the header in the data and extract one message into an array (according to the size).  Then I'd have standard code to interpret a message, extracting the appropriate subarrays and type casting them.  When finished, I'd go forward in the data stream according to the message size in its header, and start from there -- extract thaat message and interpret it.  Etc.  Before interpreting a message, always check that its header is correct, and have some kind of handling if it is not.

 

I just got access to Labview and I tried this. Use MatchPattern to find the header. Exctract array according to size and typecast it. Is there something else that should be in this? 

 

 

matchpattern.png


Viewing all articles
Browse latest Browse all 202541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>