navClose (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

1.40 / 1.00.00

Nav. API level:

1


This function will close the navigation interface. After the navigation interface is closed, it cannot be used until opened again.

 

Please also see navOpen.

 

 

Input:

None.

 

 

Returns: INT

0

- Success.

-1

- Navigation interface is not opened.

 

 

Declaration:

FUNCTION navClose : INT;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM NavigationExample;
VAR
   rc : INT;
END_VAR;
 
   DebugMsg(message := "Initializing navigation...");
   rc := navOpen();
   IF rc <> 0 THEN
      DebugFmt(message := "Error: navOpen=\1", v1 := rc);
   END_IF;
 
   ...
 
   // Close the navigation interface
   navClose();
   ...
END_PROGRAM;