.txlen R/O Property


For the selected serial port (selection is made through ser.num), returns the total number of committed bytes currently found in the TX buffer.


Word | dword

Value Range:


See Also:

Serial Settings, Buffer Memory Status, ser.newtxlen


The data in the TX buffer does not become committed until you use the ser.send method.

Your application may use the ser.notifysent method to get on_ser_data_sent event once the total number of committed bytes in the TX buffer drops below the level defined by the ser.notifysent method.

Older devices had smaller RAM sizes, so the value returned by this property was of the word type. On newer devices with larger RAM capacities, this property has the dword type. Inspect the property's declaration on the platform you are using to make sure you know its type.

.txlen R/O Property