Command 'Insert Elements for Controlling Trace'

Symbol:

Function: The command opens the Trace Wizard dialog. In this dialog, you select predefined visualization elements for controlling the trace recording. These elements are then inserted as configured into the visualization editor.

Call: Menu bar: Visualization ; context menu of the trace element.

Requirement: The view is active and a trace element is selected.

Dialog 'Trace wizard'

Control variable

Corresponds to the Control variables property that is available in the element properties of the trace element.

: The control element for this trace control variable is created in the visualization editor.

Variable

Project variables that are assigned to the control element below the Input configuration property. In addition, the project variables are declared as local variables in the visualization when needed (in the interface editor).

This list corresponds to the assignments that are defined in the element properties of the trace element. If nothing is configured in the properties of the trace element (no project variables assigned as control variables), then a pre-allocation is offered with default variable names.

Type of element to insert

For a Boolean variable, this element can be inserted as a button or rectangle. For a string variable, a rectangle or a text field is provided.

OK

At the closing of the dialog, the selected control elements are inserted into the visualization editor and (when needed) its control variables are created as local variables of the visualization. They are declared in the interface editor and they are used by the control element (property Input configuration ‣ Toggle ‣ Variable ) and by the trace element (Control variables property). The control element writes to the variable and the trace element reads the variable.

Example

Standard control variables:

VAR
        bResetTrigger : BOOL;
        bStart : BOOL;
        bStop : BOOL;
        bStore : BOOL;
        sStoreFilename : STRING;
        bRestore : BOOL;
        sRestoreFilename : STRING;
END_VAR

See also