View: All

Select your DataMan Reader:

All

DataMan 50

DataMan 60

DataMan 70

DataMan 150

DataMan 260

DataMan 280

DataMan 300

DataMan 360

DataMan 370

DataMan 470

DataMan 503

DataMan 580

DataMan 7500

DataMan 8050

DataMan 8070

DataMan 8600

DataMan 8700

DataMan 8700 Base Station

Base Station

DataMan MX-1000

DataMan MX-1500

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

Note: DM050,DM060,DM070,DM150,DM260,DM300,DM360, DM370,DM280, DM470,DM580, DM503,DM8050,DM8070,DM8600,DM8700,MX-1000,MX-1500