Charts can be updated with new values in several ways:
- Automatic update. New data samples are added automatically with the specified time period. The expressions defined for data items are evaluated dynamically during the simulation and the resulting data values are fed into the charts.
- “Manual” update. New data samples are added “manually” by the user. The user calculates new values elsewhere and feeds it to a chart using the corresponding API.
Updating charts you may also update the value of displayed analysis data objects.
Those expressions are dynamically evaluated to obtain the values of the data items.
Use this mode if you wish to add new data samples periodically with the well-known recurrence. In this case the data item’s expression is evaluated dynamically with the specified time period and the resulting value is displayed on the chart.
To turn automatic update on
- Select the chart in the graphical editor by clicking it.
- Go the Properties view.
- In the Data update section, choose Update data automatically option and then enter the update rate in the Recurrence time edit box below. Also, you can define here whether you want to Use model time or Use calendar dates. Depending on this choice, you can specify when updating begins with either First update time or Update date properties.
If you do not want to update your charts automatically, you can turn auto update off.
To turn automatic update off
- Select the chart in the graphical editor by clicking it.
- Go to the Properties.
- In the Data update section, choose Do not update data automatically option.
You can update charts with new data samples from your code by calling the function updateData(). This function updates all data items/data sets displayed by the chart.
-
How can we improve this article?
-