Back to Sealevel      

int SM_GetAnalogOutputRanges ( SM_HANDLE  handle,
unsigned char *  ranges 
)

Polls the Sealevel I/O device for it's 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.

Warning:
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 18 Sep 2007.