WOLFRAM

Simulation CenterExporting Simulation Result

Complete Result as CSV FilePlot as CSV File
Complete Result as System Modeler Result FilePlot as CombiTimeTable File

Complete Result as CSV File

To export the simulation result from the active experiment as a CSV file, choose File Export Experiment as CSV. In the file selector window, choose a location and specify a file name. This will save the simulation result as a CSV file.

Complete Result as System Modeler Result File

To export the simulation result from the active experiment as a System Modeler result file, choose File Export Experiment as MAT. In the file selector window, choose a location and specify a file name. This will save the simulation result as a System Modeler result file. The file format is described in detail in Simulation Result Files.

Plot as CSV File

To export the plot in the active plot window as a CSV file, choose File Export Plot as CSV. Note that all subplots in the active window, as well as all variables plotted in each subplot, will be included in the exported CSV file. In the file selector window, choose a location and specify a file name. This will save the plot as a CSV file.

Plot as CombiTimeTable File

To export the plot from the active plot window as a CombiTimeTable file, which is an ASCII text file, choose File Export Plot as CombiTimeTable. Note that all subplots in the active window, as well as all variables plotted in each subplot, will be included in the exported text file. In the file selector window, choose a location and specify a file name. This will save the plot data in a .txt file that is compatible for direct use in a CombiTimeTable component. The exported file will have the following structure:

#1
double tab1(5,2) # columns: var1, var2
0.2 55.4
0.4 41.7
0.8 21.2
1.6 11.3
3.2 10.7

double tab2(4, 3) # columns: var3, var4
1.0 0.1 3.2
2.0 22.3 4.4
3.0 31.7 5.0
5.0 34.0 5.2

The table name (tab1, tab2 in the example) is the name of the experiment from which the plot was generated. The comment line specifies which variable each column represents, where the first column is the time variable. A more detailed description of the CombiTimeTable File format can be found here.

To use the data in a CombiTimeTable component, click the component and go to the General tab at the bottom of the main window in Model Center. To set the component to read data from a file, change the parameter tableOnFile to True, and add the name of the relevant table and the file in the fields tableName and fileName, respectively.