ezeio2:scriptref:getoutput

Get the state of an output

Description

GetOutput( outputno )

Return the current 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%).

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

Return value

Output value in percent (0-100)

Example usage

   new x;
 
   SetOutput(4, 31);   // Set the on-board analog output to 3.1V.
 
   x = GetOutput(4);   // Read the output value
 
   // x now has the value 31
  • ezeio2/scriptref/getoutput.txt
  • Last modified: 2019-09-02 21:38
  • by andreh