int __stdcall SM_SetAnalogInputRanges ( SM_HANDLE  handle,
unsigned char *  ranges 
)

Sets the device's analog inputs range configuration.

Parameters
[in]handleValid handle returned by SM_Open().
[in]rangesArray of desired channel ranges.
Return values
0Successful completion.
-1Invalid SeaMAX handle.
-2Error retrieving the mode configuration.
-3Connection is not established. Check the provided Connection object state.
-4Modbus: Read error waiting for response. Unknown Modbus exception.
-5Modbus: Illegal Modbus Function (Modbus Exception 0x01).
-6Modbus: Illegal Data Address (Modbus Exception 0x02).
-7Modbus: Illegal Data Value (Modbus Exception 0x03).
-8Modbus: CRC was invalid. Possible communications problem.
-9Invalid device configuration.

Sets the I/O device's analog input ranges according to the 'ranges' array parameter. For more information on the appropriate values, see A/D Channel Range values.

The 'ranges' parameter must point to a location containing enough memory for 1 byte per analog input channel. Only one byte for each analog input will contain valid data, with the first byte corresponding to a desired range for analog input 1, the second byte for analog input 2, and so on.

Note
This method only applies to certain models. See SeaMAX by Sealevel Model Number for details.
 
 
Generated on Mon Nov 26 2018.