navStopSetActive (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

1.40 / 1.00.00

Nav. API level:

1


This function will activate the destination. The currently active destination, if any, is set to inactive.

Note that if the navigation device cannot find a street at the destination, the destination is not activated, although the former active destination is still set to inactive.

 

 

Input:

ID : INT

The ID used to identify the destination in navStopSet.

 

 

Returns: INT

0

- Success.

-1

- Navigation interface is not open.

-2

- Error communicating with navigation device.

-12

- Navigation interface is busy.

 

Declaration:

FUNCTION navStopSetActive : INT;
VAR_INPUT
   ID : INT;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM NavigationExample;
 
BEGIN
   ...
   // Activate a destination
   navStopSetActive(id := 61);
   ...
END;
END_PROGRAM;