Polls the Sealevel I/O device for its analog hardware jumper configuration.
- Parameters
-
[in] | handle | Valid handle returned by SM_Open(). |
[out] | ranges | Array of analog output ranges. |
- Return values
-
0 | Successful completion. |
-1 | Invalid SeaMAX handle. |
-2 | Connection is not established. Check the provided Connection object state. |
-3 | Error retrieving the Sealevel I/O device analog configuration. |
-4 | Error setting temporary analog configuration. |
-5 | Error writing to digital to analog output. |
-6 | Error reading the analog inputs. |
-7 | Invalid voltage returned by analog to digital converter. |
-8 | Error restoring the original I/O device settings. |
Gets the analog I/O device's analog output ranges and places them in the ranges
array parameter. For more information on the returned range values, see Channel Range Values.
The ranges
parameter will contain one byte for each analog output, with the first byte corresponding to the first analog output, and so on.
- Note
- This method only applies to certain models. See SeaMAX by Sealevel Model Number for details.
- Warning
ranges
must contain at least one byte for each analog output.
-
The digital to analog channel outputs may be altered by calling this function. The
ranges
parameter should contain one byte for each analog output present on your device.