ezeio2:scriptref:setoutput

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ezeio2:scriptref:setoutput [2019-06-15 22:49] – created andrehezeio2:scriptref:setoutput [2019-09-02 21:41] (current) andreh
Line 1: Line 1:
-===== Script reference ====== +==== SetOutput ====
- +
-==== SetOutput( outputno, value ) ====+
  
 Set an output Set an output
Line 10: Line 8:
  
 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%). 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.\\ Output 1-4 are the on-board ezeio outputs.\\
Line 30: Line 30:
    SetOutput(4, 31);   // Set the on-board analog output to 3.1V.    SetOutput(4, 31);   // Set the on-board analog output to 3.1V.
        
-   SetOutput(DVC2+3, 100); // set output on device 2 to ON.+   SetOutput(DVC2+4, 100); // Set output on the second I/O expander to ON.
 </code> </code>
  
  • ezeio2/scriptref/setoutput.1560638978.txt.gz
  • Last modified: 2019-06-15 22:49
  • by andreh