io_set(alias, value)
Unified I/O. Introduced at SW 10.15 and 5.26. This script is backward compatible with all previous SW and HW versions.
Sets the state of one selected output pin.
See also I/O labels and io_get(alias).
Parameters
alias: The symbolic name of the pin (string). It can represent a digital output or an analog output.
value: The value that the output should be set to. For digital outputs, the type is boolean. For analog outputs, it is a floating-point number.
Example command: io_set("CB_CO0", False)
- Example Parameters:
- Set control box configurable digital output 0 low:
io_set("CB_CO0", False) - Set control box analog output 0 to the middle of its configured range:
io_set("CB_AO0", 0.5) - Set Smart Panel LED on:
io_set("T1_DO0", True)
- Set control box configurable digital output 0 low:
Replaces: set_analog_out, set_standard_analog_out, set_configurable_digital_out, set_digital_out, set_standard_digital_out, set_tool_digital_out.