RxTimeout
Sets a receive timeout.
Available at design time and runtime. Can not be changed while the port is open.
Only available with Comm64. Not available with MSComm32
 |
| |
Syntax |
object.RxTimeout = value |
| |
|
|
| |
object |
Name of the communications control. |
| |
|
|
| |
value |
A numerical value in the range 0 to 32000 Measured in ms (1000 = 1 seconds) |
| |
|
|
| |
Example |
object.RxTimeout = 500 |
'// Set the RxTimeouts to 500ms |
| |
|
|
|
| |
|
|
|
|
 |
Remarks:
If RxTimeout is 0 (zero) then all Input/Read properties/functions return immediately with the required number of chars/bytes (or less if less were waiting in the receive buffer)
If RxTimeout is greater than zero then Input/Read functions will not return until the required number of bytes have been received or when RxTimeout occurs.
If using RxTimeouts we would suggest using a very small timeout value and repeating the Input/Read function until you have the required number of bytes.
|