Skip to main content

setCounters

Create or replace one or more counters.

Parameter​

An object where the keys are counter names, and the values are Counter objects.

When updating an existing counter, properties that are omitted keep their current values. If value is omitted, the counter's current value and repeat state are preserved, so the configuration can be changed without disturbing a counter that is being stepped by printing v5.2. To change only the value, use setCounterValues.

Return value​

null

Example​

setCounters {"CNT1": {"minValue": 0, "maxValue": 9999, "width": 4}}