Working with 20-sim 4C > Run with Monitoring

Run with Monitoring

Navigation:  Working with 20-sim 4C >

Run with Monitoring

Previous pageReturn to chapter overviewNext page

After configuring, connecting and compiling, you can run a model on the target. The variables (and parameters...) can be monitored in three ways:        

Monitoring in the variables view

Monitoring in a real-time plot

Monitoring in an oscilloscope view

Monitoring in the Variables view

When running the model on the target, all variables can be monitored (inspected) by opening a model node under Variables in the tree. For each model node in the tree the variable values are displayed as they change on the running target. Note that monitoring may not show all the samples since a limited refresh rate is used to prevent disturbing the running model.

Monitor_Variables_view

Variable inspection in the Variables view during run-time.

Monitoring in a real-time plot

The second option is to view monitored values in a real-time plot (a live plot). First variables need to be selected for monitoring, see Select variables for logging and monitoring for more details. After variables have been selected, press the Monitor button Monitor_Button on the action bar at the top of the 20-sim 4C windows. This will open real-time monitoring plot. The Monitor button can be pressed before the model is running and during run-time. When the model is already running, the monitor plot shows the variables from starting from the time you opened the monitoring plot. When the monitor plot is already open before running, it will plot the variables from the start. The picture below shows a sample of the real-time plot.

monitor_plot_single

Click the Monitor button to open a plot showing the monitored variables.

By default, 20-sim 4C shows all monitor signals in one plot with a common Y-axis. This is not always convenient, e.g. when the scale of the monitored variables is different.

monitor_plot_distributed

The same monitor plot with distributed curves.

You can use the Distribute curves button Monitor_plot_distribute_curves_button on the toolbar to give each monitored variable its own Y-axis:

Monitoring in an oscilloscope view

The monitor plot shows a signal from the start of the monitoring until the end of the model run. It is also possible to show only the recent history of the variables similar to an oscilloscope. Click on the Enable scope button Monitor_plot_oscilloscope_button to switch to the oscilloscope view. Enter the time base for the scope window, e.g. 10 s.

Monitor_enter_scope_time

Enter time for scope window.

20-sim 4C will now only show a signal trace for a period of 10 s. The previous two traces are still visible but blended into the background.

Monitor_oscilloscope_view

Monitor plot in oscilloscope view.

Use one of the Clear buttons monitor_plot_clear_buttons to clear older plots.