Back to Sealevel      

int SM_GetConfig ( SM_HANDLE  handle,
int *  model,
int *  commType,
int *  baudrate,
int *  parity 
)

Queries the Sealevel I/O module to determine the module model number, type, baudrate, and parity.

Parameters:
[in] handle Valid handle returned by SM_Open().
[out] model Model number.
[out] commType Type of communications interface.
[out] baudrate 
[out] parity 
Return values:
0 Success.
-1 Invalid SeaMAX handle.
-2 Connection not estabished.
-3 Error reading or writing to device.
Each module contains an internally stored model number, communications type (USB, Ethernet, etc.), baudrate, and parity. This function returns those stored paramters as a way to identify what module is available on a particular slave ID.

Note:
For SeaDAC Lite modules, the model parameter will be the only vaild parameter returned. CommType, baudrate, and parity may be supplied as null parameters (zero). Null or zero will be returned for any parameters supplied other than model.
See also:
Communication Type Values, Baudrate Values, Parity Values

 
 
Generated on 18 Sep 2007.