Device list Each device has its own commands and properties. There is no single table. The name you pass to device_add is the device type. Commands and properties are the ones that device publishes.
Home › All functions › Device
Device Simulation Instrument Studio 1
device_add
Simulation Instrument Studio 1
Definition
device_add(type, offset)
Remarks Get a device reference (RealSimGear, Vortex, etc.).
Parameters Name Description
typeValue type: FLOAT, INT, DOUBLE, or an array type such as FLOAT[8].
offsetArray index to start at. 0 is the first element.
Example
No sample instrument calls this yet.
device_add("FLOAT", offset)
Photo slot: shots/device_add.png
device_prop_set
Simulation Instrument Studio 1
Definition
device_prop_set(prop_name, value)
Remarks Set a device property (e.g. display brightness).
Parameters Name Description
prop_nameProperty or object name.
valueThe value to write.
Example
No sample instrument calls this yet.
device_prop_set(prop_name, value)
Photo slot: shots/device_prop_set.png
device_prop_subscribe
Simulation Instrument Studio 1
Definition
device_prop_subscribe(prop_name, callback)
Remarks Subscribe to a device property.
Parameters Name Description
prop_nameProperty or object name.
callbackFunction called when the value changes.
Example
No sample instrument calls this yet.
device_prop_subscribe(prop_name, function() end)
Photo slot: shots/device_prop_subscribe.png
device_command
Simulation Instrument Studio 1
Definition
device_command(command_name)
Remarks Send a command to the device.
Parameters Name Description
command_nameSimulator command name.
Example
No sample instrument calls this yet.
device_command("...")
Photo slot: shots/device_command.png
device_command_subscribe
Simulation Instrument Studio 1
Definition
device_command_subscribe(command_name, value)
Remarks Subscribe to a device command.
Parameters Name Description
command_nameSimulator command name.
valueThe value to write.
Example
No sample instrument calls this yet.
device_command_subscribe("...", value)
Photo slot: shots/device_command_subscribe.png
device_connected
Simulation Instrument Studio 1
Definition
connected = device_connected()
Remarks Check if associated device is connected.
Example
No sample instrument calls this yet.
device_connected()
Photo slot: shots/device_connected.png