SerialConnection.XmitWait
From Xojo Documentation
Method
Waits until all data sent to the serial connection with the Write method has been sent.
Example
SerialConnection1.XmitWait
Waits until all data sent to the serial connection with the Write method has been sent.