Main Content

Export Signals to Custom Registered File Types

To export signals from Signal Editor to your own custom file types, on the Signal Editor tab, click Export. Custom file types:

  • Are external to MATLAB® or Simulink®, such as Microsoft® Excel®, JSON, or (measurement data format) MDF format files.

  • Contain signal data whose format does not conform to those listed in Forms of Input Data.

  • When exporting a Simulink.io.SignalBuilderSpreadsheet file type, it must contain a dataset represented with Simulink.SimulationData.Dataset objects that contain timeseries data with vector data.

Simulink provides these file types.

Note

You cannot export from an Simulink.io.SLDVMatFile reader.

  • Simulink.io.SignalBuilderSpreadsheet — Signal Builder file type

  • Example file types

    • Simulink.io.MySignalMatFile

    • Simulink.io.CreateSignals

  1. In Signal Editor, create signals to export to your custom file type.

    1. Click Scenario > Scenario.

    2. Click Signal > Author Signal.

    3. Click Show Examples. Select Apply Example for the 2-D column vector example, and then click Insert Signal.

  2. Check that your custom file types have been registered in Simulink. In the Signal Editor tab, click Export. The Export dialog box displays.

  3. Click Browse.

  4. From the list of custom MAT-files, select the one that contains your signals, such as custompath/newFile.mat.

    All registered file types appear in the Supported File Types table.

    Dialog to export signals to custom registered file types.

    The signals in your custom file type appear in the file browser.

  5. Select the signals you want to export from Signal Editor, then click OK.

See Also

Blocks

Tools

Classes

Related Topics