10-10-2011 05:49 PM
Here's a simple example code that you can use to find a substring of a given length within a string.
10-11-2011 05:37 AM
@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.