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

Polls the Sealevel I/O device for its analog hardware jumper configuration.

Parameters
[in]handleValid handle returned by SM_Open().
[out]rangesArray of analog output ranges.
Return values
0Successful completion.
-1Invalid SeaMAX handle.
-2Connection is not established. Check the provided Connection object state.
-3Error retrieving the Sealevel I/O device analog configuration.
-4Error setting temporary analog configuration.
-5Error writing to digital to analog output.
-6Error reading the analog inputs.
-7Invalid voltage returned by analog to digital converter.
-8Error 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.
 
 
Generated on Mon Nov 26 2018.