navSetUIText (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

1.40 / 1.00.00

Nav. API level:

1


This function is used to customize the text of certain Fleet Management user interface elements.

 

 

Input:

ID : INT

The ID of the user interface element.

0

- The "Dispatch" menu.

100-105

- The text fields above the map. Only available on NMP v3.10 and above, see the NMP User Guide for more details.

 

text : STRING

The new text of the menu element. Max. 49 characters.

 

 

Returns: INT

0

- Success.

-1

- Navigation interface is not open.

-2

- Error communicating with navigation device.

-4

- The navigation device rejected the command.

-12

- Navigation interface is busy.

 

Declaration:

FUNCTION navSetUIText : INT;
VAR_INPUT
   ID   : INT;
   text : STRING;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM NavigationExample;
 
BEGIN
   ...
   // Check if navigation device is present
   IF navPresent() THEN
      navSetUIText(id := 0, text := "Logic IO");
      ...
   END_IF;
   ...
END;
END_PROGRAM;