OpenPort Method

Navigation:  Reference Guide > Serial Communication >

OpenPort Method

Previous pageReturn to chapter overviewNext page

Opens the serial port for a communication channel (direct serial connection or modem connection).

OpenPort(short ChannelID, VARIANT_BOOL *Result);

Parameters

ChannelID

    A channel ID (0-7) used to identify a communication channel.

Result

    If the method succeeds, the value of variable pointed to by Result is VARIANT_TRUE, otherwise the value is VARIANT_FALSE.

 

See Also

ClosePort Method