Re: 8250# EE - 电子工程
t*m
1 楼
THis is a command in labwindows.
int result = OpenComConfig (int COMPort, char deviceName[], long baudRate,
int parity, int dataBits, int stopBits,
int inputQueueSize, int outputQueueSize);
Purpose
Opens a com port, and sets port parameters as specified. If inputQueueSize
or outputQueueSize is between 1 and 29, it is forced to 30.
Parameters
Input COMPort integer Range 1 through 32.
deviceName string Name of the COM port.
baudRate
int result = OpenComConfig (int COMPort, char deviceName[], long baudRate,
int parity, int dataBits, int stopBits,
int inputQueueSize, int outputQueueSize);
Purpose
Opens a com port, and sets port parameters as specified. If inputQueueSize
or outputQueueSize is between 1 and 29, it is forced to 30.
Parameters
Input COMPort integer Range 1 through 32.
deviceName string Name of the COM port.
baudRate