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 record. These configured elements are then inserted into the visualization editor.
Call: menu; 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 which is available in the element properties of the trace element
|
Variable | These project variables are assigned to the control below the Input configuration property. Moreover, 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 | When the dialog is closed, the selected controls are inserted into the visualization editor and, if necessary, 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 ( property) and by the trace element ( property). The control writes to the variable and the trace element reads the variable. |
Standard control variables:
VAR bResetTrigger : BOOL; bStart : BOOL; bStop : BOOL; bStore : BOOL; sStoreFilename : STRING; bRestore : BOOL; sRestoreFilename : STRING; END_VAR