LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing of a serial GPS

Here's a simple example code that you can use to find a substring of a given length within a string. 

Sev K.
Senior Systems R&D Engineer | Wireless | CLA
National Instruments
0 Kudos
Message 11 of 12
(761 Views)

@dwhamm wrote:

It is indeed a school project and I do not want anyone to do this project for me.  I would like to learn labview and how it works, but as I said I have only completed one previous labview assignment, none involving strings.  Does this make sense or is there a more "standard" way this is done?   


One of your problem is that your protocol is binary NOT string based. But the output from the Serial Read is strings, so your mind is looked on the string concept. For now on forget about strings.Look at the data as bytes or byte arrays instead of strings. In such cases the standard is to first understand the protocol. And then do the needed programming in order to harvest the needed information. In your case the  The problem is also that LabVIEW uses Big Endian format for its binary numbers, while GPS unit use Little Endian format. Read more about it here http://digital.ni.com/public.nsf/allkb/97332426D63630EE862565070049FFBB. I also noticed that your problem is asking for use of state machine http://zone.ni.com/devzone/cda/tut/p/id/3024

I have made a simple VI demonstarting how simple it can be done. It lacks some error handling. And of course I have not tested it. But it is pure and simple Labview. No flim flam like Express VIs. And no globals or locals as they are not needed.

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 12 of 12
(749 Views)