Exporting Selected Variables to File

From the Variable Browser, you can export selected variables to a file, for further processing in, for example, Microsoft Excel.

You can export to any of the formats:

  • .csv (Comma-Separated Values)
  • .sdf (Scientific Data Format)


Before you begin: A Variable Browser must be displayed. See Defining Execution Parameters Initial Conditions or Simulating a Behavior.
See Also
Working with the Variable Browser
  1. From the Variable Browser, select the variables to export.

    Note: You can multiselect variables by pressing Ctrl while selecting.

    Important: You must select signals. If you select a node containing signals, without selecting any signal in it, nothing is exported from that node.

  2. Right-click and select Export Selection as File.
    The Modelica Simulation Result Export dialog box appears.
  3. In the File name field, enter a name for the file, and browse for the location where you want to save the file.
  4. From the Save as type list, select file format.

    You can select between the following alternatives:

    • To store as a .csv file using SI units without units in the headers, select Comma Separated Values file (*.csv). This is the default selection.
    • To store as a .csv file using SI units with units in the headers, select Comma Separated Values with Unit (*.csv).
    • To store as a .sdf file using SI units, select Scientific Data Format (*.sdf).

  5. Click Save.
    The file with the selected format is saved.
    Note: If you have selected to save your results in Scientific Data Format (.sdf), you can use an SDF editor to work with the result. From the Behavior Tools section of the action bar, click SDF Editor to open an SDF editor. Documentation about the editor is available in the editor.