SerialPortTimeouts()
Syntax
SerialPortTimeouts(#SerialPort, RIT, RTTC, RTTM, WTTC, WTTM)Description
Change the default #SerialPort timeouts.
'RIT' (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.
'RTTC' (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.
'RTTM' (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.
'WTTC' (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.
'WTTM' (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.
Supported OS
All