RTERROR RTInitialize(int iPort, int iBaud = 38400, GPSPROTOCOL gpProtocol = GPSPROTOCOL_NMEA, GPSRECEIVER grReceiver = GPSRECEIVER_EMTAC, BOOL fStartGPS = FALSE, int iMinMovement = 0);
| Parameters | Description |
| iPort | The communications port number that the Engine will use to communicate with the GPS receiver |
| iBaud | The baud rate that the Engine will use to communicate with the GPS receiver |
| gpProtocol | The protocol that the Engine will use to communicate with the GPS receiver |
| grReceiver | The GPS receiver type |
| fStartGPS | Specifies whether to start the GPS communcations immediately (TRUE), or wait until RTGpsStart is called |
| iMinMovement |
Specifies the minimum distance, in feet to be considered as motion. The RouteTrak Engine will not log data records unless this criteria has been met
|
| Return Values | Description |
| RTE_NONE | No errors |
| RTE_GPS_INVALID_PORT | Invalid port specified |
| RTE_GPS_INVALD_PROTOCOL | Invalid protocol specified |
| RTE_GPS_INVALID_RECEIVER | Invalid receiver specified |