|channel||RS-232 channel. (1 to 3)|
This WaitTx command will wait until the send buffer is flushed.
Without WaitTx, the following is necessary
OpenCom 1,19200,0, 100, 50 PutStr 1,"ILOVEYOU",CR Do While BFree(1,1)<49 ' Wait until all data has been sent Loop
Using WaitTx, the process of sending data is simpler as shown below:
OpenCom 1,19200,0, 100, 50 PutStr 1,"ILOVEYOU",CR Waittx 1' ' Wait until all data has been sent
When this command is waiting, other interrupts may be called. In other words, this command will not affect other parts of the Cubloc system.