4D v13.4SET TIMEOUT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
SET TIMEOUT
SET TIMEOUT
SET TIMEOUT specifies how much time a serial port command has to complete. If the serial port command does not complete within the specified time, seconds, the serial port command is canceled, an error -9990 is generated, and the OK system variable is set to 0. You can catch the error with an error-handling method installed using ON ERR CALL. Note that the time is the total time allowed for the command to execute, not the time between characters received. To cancel a previous setting and stop monitoring serial port communication, use a setting of 0 for seconds. The commands that are affected by the timeout setting are: The following example sets the serial port to receive data. It then sets a time-out. The data is read with RECEIVE PACKET. If the data is not received in time, an error occurs: SET CHANNEL(MacOS Serial Port;Speed 9600+Data bits 8+Stop bits One+Parity None) ` Open Serial Port |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: < 4D v6 SEE ALSO
ON ERR CALL |
||||||||||||||||||||||||||||||||||||||||||||||||||||||