SetOutput
Set an output
Description
SetOutput( outputno, value )
Directly set the value/state of a native ezeio output. The output value is always in percent , 0-100. For digital outputs, any value 50 and higher will set the output to ON (100%).
This command operates the output immediately.
Output 1-4 are the on-board ezeio outputs.
To reference outputs on ezeio expansion units, use “DVCn + output number”. See example below.
This command only works to control native ezeio outputs. To control outputs on third party modules, use the appropriately mapped registers. See documentation for the relevant driver.
Parameters
outputno | Output number |
value | Value (0-100%) |
Return value
none
Example usage
SetOutput(4, 31); // Set the on-board analog output to 3.1V. SetOutput(DVC2+4, 100); // Set output 4 on the second I/O expander to ON.