GetDeviceIOs
Called to get an array of all ‘DeviceIO’ entries
Function
Array GetDeviceIOs()
Parameters
None
Return Value
An array of DeviceIO entries. If there are no DeviceIOs in the project, the function will return an empty array.
Example
// Get all device IOs
var deviceIOs = GetDeviceIOs();
// Go through each device IO and log properties
for(var i=0; i <deviceIOs.length; i++) {
var io = deviceIOs[i];
LogDebug("Device EquipmentName = " + io.EquipmentName);
LogDebug("Device EquipmentTypeName = " + io.EquipmentTypeName);
LogDebug("Device StartBit = " + io.StartBit);
LogDebug("Device Size = " + io.Size);
LogDebug("Device ElementSize = " + io.ElementSize);
LogDebug("Device ScriptHandler = " + io.ScriptHandler);
LogDebug("Device Identifier = " + io.Identifier);
LogDebug("Device IsOutput = " + io.IsOutput);
LogDebug("Device DeviceName = " + io.DeviceName);
LogDebug("Device MessageType = " + io.MessageType);
LogDebug("Device UpdateRate = " + io.UpdateRate);
LogDebug("Device Comment = " + io.Comment);
}