SerialPort_Config
Configures the serial port.
Syntax
C++
Python
def SerialPort_Config( state: SerialPortState, inPort: str, /, *, inPortId: int = 0, inBaudRate: int = 9600, inParity: SerialPortParity = SerialPortParity._None_, inDataBits: int = 8, inFlowControl: SerialPortFlowControl = SerialPortFlowControl.NoFlowControl, inStopBits: SerialPortStopBits = SerialPortStopBits.One, inMaxReadBufferSize: int = 1048576 ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | SerialPortState | |||
![]() |
inPortId | int | 0 - 7 | 0 | Identifies open port instance when working with multiple serial ports |
![]() |
inPort | str | Serial port name | ||
![]() |
inBaudRate | int | 1 - ![]() |
9600 | Serial baud rate |
![]() |
inParity | SerialPortParity | SerialPortParity._None_ | Serial parity | |
![]() |
inDataBits | int | 5 - 8 | 8 | Serial character size |
![]() |
inFlowControl | SerialPortFlowControl | SerialPortFlowControl.NoFlowControl | Serial flow control | |
![]() |
inStopBits | SerialPortStopBits | SerialPortStopBits.One | Serial stop bits | |
![]() |
inMaxReadBufferSize | int | 1024 - 16777216 | 1048576 | Maximum size of internal read buffer in bytes. When the buffer reaches this size, oldest data is dropped (FIFO). |



