I am developing a serial device that should respond with an acknowledge message (ACK) to every new command received. How can I use Docklight to test the acknowledge behavior? How can I detect a timeout error?

I am developing a serial device that should respond with an acknowledge message (ACK) to every new command received. How can I use Docklight to test the acknowledge behavior? How can I detect a timeout error?

Applies to: Docklight / Docklight Scripting (all versions), Article ID: dl_faq018

Using the DL_OnSend() / DL_OnReceive() event procedures in Docklight Scripting allows you to implement additional timing constraints and protocol features. The Docklight sample script below demonstrates how to wait for an ACK message from a serial device and report a timeout error in case the device is not responding. Extract the files from the .zip archive and open the file “AcknowledgeTestPrj.ptp” for more information. This sample requires Docklight Scripting V1.6 (evaluation mode or registered mode).

Docklight Sample Script – Waiting for an acknowledge message

Docklight Downloads