CloseSerialPort()

语法

CloseSerialPort(#SerialPort)
概要
Closes the serial port previously opened with OpenSerialPort().

参数

#SerialPort The serial port to close. If #PB_All is specified, all the remaining serial ports are freed.

返回值

无.

Remarks

All remaining opened serial ports are automatically closed when the program ends.

已支持操作系统

所有

<- AvailableSerialPortOutput() - SerialPort Index - GetSerialPortStatus() ->