Specifications

70 MDR User Guide
9.3.2.1.1 MDR Shell
As described in the chapter related to the MDR Shell commands, it is possible to create a
recording using the following command:
new-recording [<Blocks> [<BlockSize>]] [<InsertTag>]
The optional parameter
<InsertTag> can be used to enable the tag insertion to the re-
cording data. For instance,
new-recording 1 G TAG
creates a 1 gigabyte recording with space for a recording tag in every recorder block
(more information about the number of recorder blocks and the recorder block size can
be found when using the show command).
Note: By default, a recording is created with the tag insertion disabled.
The command
tag-enable is used to enable the tag insertion for a recording previously
created without tags. Symmetrically, the command tag-disable is used to disable the
tag insertion for a recording.
9.3.2.1.2 MDR API
Like the MDR Shell, the MDR API also allows to enable the tag insertion during the
creation of a recording and to enable/disable the tag insertion for a recording afterwards.
As described in the chapter related to the MDR API functions,
CreateNewRecording is
used to create a new recording. The recording field TagInfo specifies the recording tag
information. Currently, tag insertion is enabled when the TagInfo field is set to 1 and
disabled when set to 0.
The MDR API does not include any specific function to enable/disable the tag insertion
for a recording. The
SetRecordingInfo function should be used for this purpose:
Get the information of the recording to modify the tag information field (using the
GetRecordingInfo function),
Modify the recording field TagInfo (from 0 to 1 or 1 to 0),
Set back the recording information (using the
SetRecordingInfo function).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com