On this page
CSV Export configuration allows you to export simulation results to a CSV file.
To export simulation results to a CSV file
- Open a project. Here the <modeling_tool_install_root>\samples\simulation\HingeMonteCarloAnalysis sample project is used.
- In the Simulation Configuration diagram, create the CSV Export configuration.
Open the Specification window of the CSV Export configuration and specify the following properties:
- Record Time - if set to true, time will be recorded in the first column of the exported CSV file.
- Write At The End (optional) - if set to true, values are recorded only once at the end of execution before termination.
- File Name - the name of the file where the exported results are written. By default, the file is saved in the project directory.
Represents - the Classifier represented by the CSV Export configuration.
Values - the values which will be written to the exported CSV file.
Load in Player - if set to true, the exported CSV file is automatically loaded to the Results Player after the simulation terminates.
Set the created CSV Export as the value of the Execution Listeners property of the Simulation Configuration. This step is important for the results to be written to file. See the CSV export configuration below:
- Run the simulation and then stop it. The results will be written to the file specified in Step 3. See the parameters of CSV Export configuration below:
Support of Part properties
Not only can CSV export the values of properties with primitive types, e.g., Real, Integer, etc., but it can also export the types of the properties that are not primitive. Selected Part names in the value tag will be used as headers, and type names will be used as values of exported CSVs as shown in the figure below.