I am using Docklight in Send/Receive mode. How can I add a time stamp before every new message / data packet / telegram in the incoming RX data?

I am using Docklight in Send/Receive mode. How can I add a time stamp before every new message / data packet / telegram in the incoming RX data?

Applies to: Docklight and Docklight Scripting (all versions), Article ID: dl_faq108

By default, a new date/time stamp is only added:

* When communication direction changes between TX and RX

* When a Receive Sequence is triggered and the Receive Sequence “Comment” option “Additional time stamp after the comment” is activated.

To introduce more time stamp points, you can use one of the two possibilities:

1) Detect pauses in the RX data stream: Use the Docklight menu:

Tools > Options… > Date/Time Stamps > “Pause detection – additional date/time stamp after communication pauses for … seconds”

Choose a time that is smaller than the communication pause between two messages. In most applications and short messages that Docklight receives “in one go”, the minimum value of 0.01 works great. In case of fragmented/long/slow data transmissions, choose a higher value.

2) Use a “Receive Sequence” to detect a “message end” marker or the full message data:
Create a Receive Sequence that matches your message. In the “Edit Receive Sequence” dialog, go to the “3-Action | Comment” part and activate the “Additional line break …” and “Additional time stamp after comment” checkboxes.

Docklight Scripting Manual – Dialog: Options

Docklight Scripting Manual – Dialog: Edit Receive Sequence