06-15-2007 10:40 AM
06-15-2007 10:43 AM
06-15-2007 10:55 AM - edited 06-15-2007 10:55 AM
Message Edited by rgambin on 06-15-2007 10:56 AM
06-15-2007 11:04 AM
06-15-2007 11:05 AM
06-15-2007 11:07 AM
06-15-2007 11:16 AM
06-15-2007 11:17 AM
NMEA0183 has many strings often you can just look at 1 string like the $GPRMC which will give you long lat heading speed and time, this will be good for most applications. There are a few drivers for nmea GPS units. If you only need to look at 1 string writing the driver is trivial. On first call initialize the VISA serial, set the baud (4800) stop start and other params. in a loop, read all bytes at port, concatinate this to a string passed to a shift register and parse it for the command ie $GPRMC.....$ then parse out the parameters needed for the application.
Paul
06-15-2007 11:21 AM
Adamoutlaw:
Just for clarification, you cannot read just the one string. In RS-232 you have to read the whole buffer, then parse out what you need...
suggestion for this is pattern matching http://zone.ni.com/reference/en-XX/help/371361B-01/glang/match_pattern/ and then simply splitting the "after match" portion (the required information) at the number of bytes you expect.
06-15-2007 11:57 AM