The name of the event is actually "GPSDecoded", are you using the correct Sub name? Your event Sub should be called "Sub GPSobjectname_GPSDecoded".I've been trying to have a GPS_Decode event fire
It is fired by GPS.GPSStream(Serial.InputString). GPSStream fills a buffer appending successive strings passed to it and as soon as the buffer contains both sentences I specified above it parses the data and fires the event then clears the buffer for the next data.How long should it take before this event happens?
Sub Globals
'Declare the global variables here.
Line = 0
End Sub
Sub App_Start
Form1.Show
GPS.New1
arraylist1.Clear
If FileExist (AppPath & "\hello3b.txt") = True Then
FileOpen (c1,AppPath & "\hello3b.txt",cRead ,, cASCII)
r = FileRead (c1)
Do Until r = EOF
s = r & CRLF
arraylist1.Add(s)
r = FileRead (c1)
Loop
FileClose (c1)
End If
Timer1.Interval = 500
Timer1.Enabled = True
End Sub
Sub Timer1_Tick
label1.Text = line
GPS.GPSStream(arraylist1.Item(line))
line = line + 1
If Line = arraylist1.Count Then
line = 0
End If
End Sub
Sub GPS_GPSDecoded
textbox1.Text = line
End Sub
No, if I replay that data into my test program it also fires events.the data there is of a GPS which does not have coordinates yet, and I don't know what you decoded - may be this is the problem.
Thanks but you could at least tell us what the problem wasThanks guys, got it working!
You're the best!
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?