label - Set Label Substitutions

Usage:

- command: label keys <key> [<key>...]

The label command defines additional keys to substitute in the ZPL sent to the barcode printer, in addition to the default substitution keys.

Key

Description

DUT_PRODUCT

Product name

DUT_VERSION

Version

DUT_SERIAL

DUT Serial number

MAC_ADDRESS

MAC address

BLEMAC

BLE MAC address

FAILURE_MSG

Test failure item (present only when printing a failure label)

Each key passed to label keys must have a value already stored for the DUT; its current value is substituted at label print time. define - Define user key is one way to set such a key, but not the only one. extractKey on value - Parse values or measure - Probe Measurement, for example, can also populate a key. A label keys step replaces the set of additional keys entirely; it does not add to keys registered by an earlier label keys step in the same plan.

Unlike eval - Evaluate Expression and value - Parse values, label does not expand %KEY% substitutions itself. It only registers which additional keys the label printer should look up when it builds the ZPL for the DUT.

Examples