Docklight Support


FAQ Article ID dl_faq018

Question

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)

Answer

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).

Related Links

Docklight Sample Script - Waiting for an acknowledge message

Docklight Scripting Download


back back to the Docklight FAQ page