Working with 20-sim 4C > Variables


Navigation:  Working with 20-sim 4C >


Previous pageReturn to chapter overviewNext page

When a model is running on the target the Variables view is active. At the bottom of the window you can see the elapsed time, the stop time and the busy percentage of the model. The busy percentage indicates how long the model calculations and I/O access take, compared to the selected sample time. The Variables view shows all variables of a model as well as Change Parameters on-line. Furthermore in the Variables view, variables can be selected for monitoring and logging.


Use the Run, Log and Stop buttons to control the model running on a target.

List of variables

The Variables list contains the following columns:

Kind: The kind of the variable, see below.

Name: This column displays the hierarchical name (reflects model structure)  of the signal.

Value: The column displays the value of the signal. The value is updated every second when the model is running on the target. If the color of the value is blue the value has been changed but not been applied to the target yet. See Change Parameters for more details.

Unit: This column displays the unit of the variable (when available).

Quantity: This column displays the quantity of the variable (when available).

Mon: You can click on the grey dot variables_dot to select the signal for monitoring. The dot will change into the monitor icon variables_mon_icon. When a model is running, the variables that have been chosen for monitoring, are shown. You can click the Monitor button at the bottom of the window, to show a plot of the monitored variables. See Run with Monitoring for more details.

Log: You can click on the dot variables_dot to select the signal for logging. The dot will change into the logging icon variables_log_icon. See for Run with Logging more details.

Description: This column displays the the description of the variable as given in 20-sim (when available).

You can sort the variables in the Variables list by clicking on the column title of one of the columns.


The following kinds are available in the Variables list:

I = Input

O = Output

C = Constant

V = Variable

P = Parameter

A = Alias (reference to another signal with a different name)


If a model contains hierarchy (i.e. the model contains submodels which themselves may contain submodels etc.), the list will only show the variables and parameters of the top of the model and global variables and parameters. In the tree-view, the Variables node will then show a plus sign.


In the tree-view, click the Variables node to see the variables and parameters of the top of the model.

If you click the plus sign of the Variables node, the tree expands and shows the underlying submodels. The plus sign changes into a minus sign. if you click on the minus sign, the tree collapses again.


If you click on the plus sign, the tree will be expanded showing the underlying submodels.

You can select a submodel, to show the signals it contains. If the submodel contains underlying submodels, a plus sign will be shown.


You can select a submodel to show its variables and show and change its parameters.

You can click the plus sign to expand and show all the submodels. The plus sign will change into a minus sign etc.