Xgraph Configuration

We now want to take a brief look at a few features regarding Xgraph configuration. The full range of options are covered later. It would be useful to have x and y axis labels. Click on the Xgraph#1 block in the Model Editor Window. In the Instance Properties click the options field and click the icon right to this input field to open the Value Editor.

Append -x Step -y Value to the existing value in the Value Editor. It could also be useful having some ouput data sets plotted in one Xgraph. The parameter Cumulation defines how data sets are stored in Xgraph displays.

None Each output is plotted in a new Xgraph.
Iterations All iterations of a parameter set are collected and plotted in a single Xgraph.
Paramsets Outputs from iterations and paramsets are collected and plotted in a single Xgraph.

Set the Cumulation parameter to Paramsets. You may also want to have a grid pattern as background of the plot. Remove the -tk entry from the options dialog. Save the model and run the simulation. The result should be similar to this:

In the SDF/DDF domain the Xgraph has an additional parameter called EndCondition. If this parameter is set to TRUE, the Xgraph can tell the simulation scheduler to stop the simulation as soon as it has received the defined number of data given by parameter NumberOfItems. If more than one Xgraph block has set this parameter EndCondition to TRUE, the simulation stops once all Xgraph blocks have the required number of data.