Cameo Simulation Toolkit, as of version 18.4, can export simulation results to a CSV file.
A new configuration, called CSV Export, has been added for this purpose, which takes the following properties:
File Name The name of the file into which to write the exported results. The path is the same as the project directory (By default). Alternatively, a full path may be specified as d:\ExportedCSVResults.csv
Represents Specifies the classifier represented by the configuration.
Value Specifies the properties of the classifier (including nested properties) whose values will be recorded and written to the CSV file.
How to export simulation results to a CSV file do the following
Open a sample simulation project from the samples folder of Cameo Simulation Toolkit. Here we have chosen the Coffee Machine sample.
Drag the CSV Export configuration from the toolbox to the simulation configuration diagram.
Next, double-click the CSV Export configuration and fill in values for File Name, Represents, and Value from its specification window. File Name is the name of the file in the project's working directory. Represents, specifies the classifier represented by the configuration, and Values refer to the values selected which will be written to the exported CSV file. See the figure below.
Figure 1: Parameters of CSVExport Configuration
Set the created CSV Export as a tagged value of the executionListener tag definition of the Simulation Configuration. This step is important for the results to be written to file. See the figure below.
Figure 2: CSV Export configuration
Run the simulation now, and then stop it. The results will be written to the File Name specified in the third step. See the figure below.