nmpCameraOpen (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

MX2i pro, CX1 pro/flex/warp, SX1, MX2 turbo, NX-200, NX-400, NX-900, LX2

Firmware version:

2.84 / 1.00.00

Nav. API level:

2


This function will open the connection to connected cameras and show the output on the entire screen.

A blank screen will be shown if no output is available (e.g. camera is not connected).

 

Input:

id : SINT (default : 1)

ID of camera to show: 1 or 2.

 

 

Returns: INT

0

- Success.

-1

- Navigation interface is not open.

-2

- Error communicating with navigation device.

-4

- Failed to open camera. It might already be open.

-8

- Unknown camera ID.

-11

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

-12

- Navigation interface is busy.

 

Declaration:

FUNCTION nmpCameraOpen : INT;
VAR_INPUT
  id   : SINT := 1;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
BEGIN
  ...
  //Show camera
  nmpCameraOpen(id := 1);
  ...
END;
END_PROGRAM;