SerialPortTimeouts()

Syntax

SerialPortTimeouts(#SerialPort, RIT, RTTC, RTTM, WTTC, WTTM)
Description
Changes the default serial port timeouts.

Parameters

#SerialPort The serial port to use.
RIT RIT stands for 'ReadIntervalTimeout'. Specifies the maximum time, in milliseconds, which are allowed to elapse between the arrival of two characters on the communications line. Default value is 100 ms.
RTTC RTTC stands for 'ReadTotalTimeoutConstant'. Specifies the constant, in milliseconds, used to calculate the total time-out period for read operations. For each read operation, this value is added to the product of the ReadTotalTimeoutMultiplier member and the requested number of bytes. Default value is 100 ms.
RTTM RTTM stands for 'ReadTotalTimeoutMultiplier'. Specifies the multiplier, in milliseconds, used to calculate the total time-out period for read operations. For each read operation, this value is multiplied by the requested number of bytes to be read. Default value is 10 ms.
WTTC WTTC stands for 'WriteTotalTimeoutConstant'. Specifies the constant, in milliseconds, used to calculate the total time-out period for write operations. For each write operation, this value is added to the product of the WriteTotalTimeoutMultiplier member and the number of bytes to be written. Default value is 10 ms.
WTTM WTTM stands for 'WriteTotalTimeoutMultiplier'. Specifies the multiplier, in milliseconds, used to calculate the total time-out period for write operations. For each write operation, this value is multiplied by the number of bytes to be written. Default value is 100 ms.

Return value

None.

See Also

OpenSerialPort()

Supported OS

All

<- SerialPortID() - SerialPort Index - SetSerialPortStatus() ->