beautypg.com

Sensoray 826 User Manual

Page 31

background image

Parameters

board

826 board number. This must match the settings of the board's dip switches as described in section 2.2.

chan

DAC channel number in the range 0 to 7.

range

Pointer to a buffer that will receive the output range code as described in Section 5.3.1.

setpoint

Pointer to a buffer that will receive the output level as described in Section 5.3.2.

safemode

Specifies the RAM bank to be written: '0' = runmode, '1' = safemode.

Return Values

If the function succeeds, the return value is zero.

If the function fails, the return value is an error code.

Remarks

This function can be used to determine whether previously written configuration data has been sent to the DAC device.
The value S826_ERR_NOTREADY will be returned if the range or setpoint is not yet active (i.e., one or both values
have not yet been transmitted to the DAC device).

826 Instruction Manual

26

Analog Outputs