nmpCardID (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

3.15 / 1.00.00

Nav. API level:

2


This function will read the ID of the SD-CARD inserted in the PNM, which is used for activating map licenses.

 

Input:

None.

 

Output:                

serial : STRING

The serial number of the SD card.

 

Returns: INT

0

- Success.

-1

- Navigation interface is not opened.

-2

- Error communicating with navigation device.

-4

- Failed to retrieve serial number.

-11

- This is not supported by the device (e.g. the device is not an NMP device).

-12

- Navigation interface is busy.

 

Declaration:

FUNCTION nmpCardID : INT;
VAR_INPUT
   serial : ACCESS STRING;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
   str STRING;
END_VAR;
BEGIN
   ...
   IF nmpCardID(serial := str) = 0 THEN
      DebugMsg(message := "ID: " + str);
   END_IF;
   ...
END;
END_PROGRAM;