Open a serial port a specified baudrate

Namespace:  VideoRay.Communication
Assembly:  vrLib (in vrLib.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public bool Open(
	string portName,
	int baudRate,
	bool eventDriven
)
Visual Basic (Declaration)
Public Function Open ( _
	portName As String, _
	baudRate As Integer, _
	eventDriven As Boolean _
) As Boolean
Visual C++
public:
bool Open(
	String^ portName, 
	int baudRate, 
	bool eventDriven
)

Parameters

portName
Type: System..::.String
"Port name contianing a string of the form COM#
baudRate
Type: System..::.Int32
"Baudrate at which to open the port
eventDriven
Type: System..::.Boolean
Set to true if event driven recieve handling, set to false if polled

Return Value

true if successful

See Also