Does each line contain $GPGLL

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of James Parker
> Sent: Wednesday, 24 January 2001 2:08 AM
> To: [EMAIL PROTECTED]
> Subject: This is strange...can anybody help?
>
>
> I'm trying to read GPS data from the serial port.  The code below, which
> is simply reading and dumping the NMEA strings into a scrolling text box
> works great.  It'll read & read & read forever and the output is exactly
> what it should be.  The curious part is when the 2 commented lines are
> uncommented, the output goes right to hell.  After the addition of the if
> statement, tempgps gets truncated at 8 characters.  That's all it ever
> contains.  They're the right 8 characters, but it should be a much longer
> string.
>
> I don't understand how it works great one way, but gets hosed with the
> addition of a decision statement.
>
> Thanks for any assistance in understanding this strange phenomena.
>
> Jim Parker
>
> ================================
> local tempgps
>
> on mouseUp
>   put empty into field "info"
>   set the serialControlString to "baud=9600 parity=n data=8 stop=1"
>   open file "COM2:"
>   repeat forever
>     read from file "COM2:" until return
>     put it into tempgps
>     #if tempgps contains "$GPGLL" then
>       put tempgps after field "info"
>     #end if
>   end repeat
>   close file "COM2:"
> end mouseUp
> ===================================
>
> Archives: http://www.mail-archive.com/[email protected]/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to