How do I set a delay in the code output?
To set a pause in the code output, add the sequence \Pause<time>; to the text fields in the Data Formatting pane.
<time> contains a value in milliseconds. For example, to wait 4 seconds, the sequence is \Pause4000;.
Alternatively, you can set a pause through scripting by using the function decode_sequence(<time>). The following example adds 4 milliseconds delay before outputting the result string of the Data Formatting onResult() callback:
function onResult (decodeResults, readerProperties, output)
{
if (decodeResults[0].decoded)
{ output.content = decode_sequence("\\Pause0004") + decodeResults[0].content; }
}
This feature is available for use with USB HID or RS-232. For RS-232, you need to enable the feature using the DMCC command COM.RS232-ENABLE-PAUSE. For USB HID, the feature is on by default.