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