Init_Port
  

Port opener and initializer.

SYNTAX

Init_Port( cPort, nBaudrate, nDatabits, nParity, nStopbits, nBuffersize ) --> nHandle

Parameters:

cPort
Port designator.  Can either be old form 'COMn' or the more general form '\\.\COMn'.  The general form is required for ports higher than COM9
nBaudrate
Just like you're used to (e.g., 2400, 4800, 9600, etc. )
nDatabits
Usually 8, but can be 7 or 4
nParity
Coded: 0,1,2,3 -> none, odd, mark, even
nStopbits
Coded: 0,1,2 -> 1, 1.5, 2
nBuffersize
I'm using 8000 at 38,400 baud
 
 

Returns:

nHandle
Returned instance identifier.  A numeric >= 256.  If nHandle is negative, the open failed.