-
GPS help please
Hi, i have this file :
http://users.pandora.be/FloristVanst...Gerdy/NMEA.rar
And with that source of reading out the gps (written in VB6) I would like to measure the acceleration of the car, the usage of fuel ( by entering minimum, maximum and averige usage before first use) Range of kilometers left with the fuel, .....
You know, but the problem i have, vb is a long time ago for me and i don't know why i cannot make a good program.
Normally the program here will work, but the real good functions are not added yet.
When i ad them, i have a problem, it tells me that the MSCOMM port gives an error .....
Can a coder help me or code it for me :) :) :) :nw:
Thank you
-
for to find which is the error, you can try to use the code:
In Oncom event.
bye
Luca
Private Sub MSComm1_OnComm()
On Error Resume Next
Select Case MSComm1.CommEvent
' Error
Case comEventBreak ' Ricevuto un segnale di interruzione.
Case comEventFrame ' Errore di frame.
Case comEventOverrun ' Perdita di dati.
Case comEventRxOver ' Overflow buffer di ricezione.
Case comEventRxParity ' Errore di parità.
Case comEventTxFull ' Buffer di trasmissione pieno.
Case comEventDCB ' Errore imprevisto durante il recupero di DCB.
' Events
Case comEvCD ' Modifica della linea CD.
Case comEvCTS ' Modifica della linea CTS.
Case comEvDSR ' Modifica della linea DSR.
Case comEvRing ' Modifica dell'indicatore del segnale telefonico.
Case comEvReceive ' Ricevuto il numero di caratteri RThreshold.
Case comEvSend ' Il buffer di trasmissione include il numero di caratteri specificato da SThreshold.
Case comEvEOF ' È stato trovato un carattere EOF nel flusso di input.
End Select
end sub