Adds a new device connection in Ignition. Accepts a dictionary of parameters to configure the connection. Acceptable parameters differ by device type: i.e., a Modbus/TCP connection requires a hostname and port, but a simulator doesn't require any parameters.
|
Permission Type: Device Management Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope. |
system.device. addDevice(deviceType, deviceName, deviceProps )
String deviceType - The device driver type. Possible values are listed in the Device Types table below. String deviceName - The name that will be given to the the new device connection. PyDictionary deviceProps - A dictionary of device connection properties and values. Each deviceType has different properties, but most require at least a hostname. Keys in the dictionary are case-insensitive, spaces are omitted, and the names of the properties that appear when manually creating a device connection.
nothing
All Device Types
Device PropertiesThe The keys in the |
|