Import Custom File Type - MATLAB & Simulink (original) (raw)

To edit signals that are in your own custom data format or a non-MAT-file in Signal Editor or Root Inport Mapper:

Custom file types:

Simulink provides these file types.

Simulink Test™ provides the sltest.io.SimulinkTestSpreadsheet (Simulink Test) file type.

To import custom file types that you develop in-house, you can create and register your own custom file type reader. For information, see Create Custom File Type for Import. Afterwards, use this workflow to import custom file types into Signal Editor or Root Inport Mapper.

Note

Before starting, check that nobody is editing the custom file type class file. Editing the custom file type class file while trying to import it as a reader causes unexpected behavior.

  1. Check that your custom file types have been registered in Simulink.
    • In the Signal Editor tab, clickImport, then in the Import dialog box window.
      Signal Editor custom import dialog
    • In the Root Import Mapper toolstrip, clickFrom Custom File, then in the From Custom File dialog box window.
      Root Import Mapper custom import dialog
  2. Click Browse.
  3. 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.
  4. Select the signals you want to see and click OK. To search for a signal name, enter it in Name.
  5. In the Signal Editor or Root Inport Mapper tab, observe that the signals are now in the hierarchy. You can edit these signals as you would any signal.

See Also

Blocks

Tools

Classes

Topics