Back to Sealevel      

int SM_SetCommunications ( SM_HANDLE  handle,
int  baudrate,
int  parity 
)

Configures a Sealevel I/O module's communication parameters.

Parameters:
[in] handle Valid handle returned by SM_Open().
[in] baudrate Desired baudrate of the Sealevel I/O module.
[in] parity Desired parity.
Return values:
0 Successful completion.
-1 Invalid SeaMAX handle.
-2 Connection is not established. Check the provided Connection object state.
-3 Error reading or writing to Modbus device.
-4 Failed to perform implicit 'Get Module Configuration (0x45)
This method attempts to set the communications parameters of a Sealevel I/O module.

Note:
This method may not be applicable to all I/O devices. SeaDAC Lite modules are not affected by this function.
See also:
Baudrate Values, Parity Values

 
 
Generated on 18 Sep 2007.