boardSetAOResolution (Function)

Top  Previous  Next

Architecture:

NX32L

Firmware version:

1.00.00


The analog output logic can work at multiple resolutions to fit different needs.

The default resolution is 10 bit.

When increasing the resolution from 10 to 12 bit, the range of the analog output values change from 0..1023 to 0..4095.

 
Compatibility: RTCU NX-400 series only.
 

 

Input:

res : int (10,12)

Selects the resolution for the analog output.
 

Returns: INT

0

Successful.

1

Not supported.

 

Declaration:

FUNCTION boardSetAOResolution : INT;
VAR_INPUT
   res : INT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
// Selects 12 bit output:
boardSetAOResolution(res := 12);
 
BEGIN
END;
END_PROGRAM;