system.device.setDeviceEnabled
Description
Enables/disables a device in Ignition.
Syntax
system.device. setDeviceEnabled( deviceName, enabled )
-
Parameters
String deviceName - The name of the device in Ignition.
Boolean enabled
-
Returns
nothing
-
Scope
All
Code Examples
Code Snippet
#Example 1: Enable a device
system.device.setDeviceEnabled(
"CLX"
,
1
)
Code Snippet
#Example 2: Disable a device
system.device.setDeviceEnabled(
"CLX"
,
0
)