Gets the device's analog configuration.
- Parameters
-
[in] | handle | Valid handle returned by SM_Open(). |
[in] | number | Number of Analog IO points. |
[out] | configuration | Array containing space for returned configurations of Analog IO points. |
- Return values
-
0 | Successful completion. |
-1 | Invalid SeaMAX handle. |
-2 | Invalid reference or mode parameter. May not be null. |
-3 | Connection is not established. Check the provided Connection object state. |
-4 | Modbus: Read error waiting for response. Unknown Modbus exception. |
-5 | Modbus: Illegal Modbus Function (Modbus Exception 0x01). |
-6 | Modbus: Illegal Data Address (Modbus Exception 0x02). |
-7 | Modbus: Illegal Data Value (Modbus Exception 0x03). |
-8 | Modbus: CRC was invalid. Possible communications problem. |
Gets the I/O device's Analog Channel settings.
For more information on the returned parameter values, see AnalogConfig and Analog Channel Configuration Flags.
- Note
- This method only applies to certain models. See SeaMAX by Sealevel Model Number for details.
- Warning
- 'Configuration' must contain at least six bytes for each analog input configuration requested in the 'number' field.