Updating Analysis Data Objects

Analysis data objects (Data set, Statistics, Histogram data, Histogram2D data) can be updated with new values in several ways:

Please note that you can combine all these ways, e.g. you can use automatic update mode and also "manually" add some additional data samples in significant moments of time.

Automatic Update

Use this mode if you wish to add new data samples periodically with the well-known recurrence. In this case the data object's expression is evaluated dynamically with the specified time period and the resulting value is added to the data object.

 To turn automatic update on

  1. Select the analysis data object in the graphical editor or in the  Projects view. 
  2. Go to the Properties view.
  3. In the Data update section, choose Update data automatically option, and then enter the update rate in the Recurrence time box below.
If you do not want to update analysis data objects automatically, you can turn auto update off.

 To turn automatic update off

  1. Select the analysis data object in the graphical editor or in the  Projects view. 
  2. Go to the Properties view.
  3. In the Data update section, choose Do not update data automatically option.

"Manual" Update

Use this mode if you wish to control the exact moments when the new data samples should be added to the chart, for example when those samples are generated by some specific events in the model. 

To add new data sample "manually", the user should calculate the value elsewhere and feed it to the data object using the corresponding API.

Updating Charts

In case analysis data object is displayed on a chart, updating this chart affects the data object also, namely, new data samples are added to the data object. See the topic Updating charts for a more detailed discussion of how charts can be updated with new data samples.