Configure Board Parameters and Enable MAT-File Logging

To save signals on an SD card, the target hardware details must be specified, and the MAT-file logging option must be selected.

  1. In your model window, open the Configuration Parameters dialog box, go to the Hardware Implementation pane, and select the name of the target hardware from the Hardware board list.

  2. In the Hardware board settings pane, expand Target hardware resources and select Board Parameters. Specify these parameter values:

    1. Device Address: The IP address or host name of the target hardware.

    2. Username: Specify the root user name of the Linux® system running on the target hardware.

    3. Password: Specify the root password of the Linux system running on the target hardware.

  3. Select Build options, and specify the location where you want to save the MAT-files in the Build directory parameter.

  4. In the Configuration Parameters dialog box, go to Code Generation > Interface and expand Advanced parameters, or type MAT-file logging in the search box.

  5. Select the MAT-file logging option.

  6. From the MAT-file variable name modifier list, select an option to add rt_ as prefix or _rt as suffix to the variable name in the MAT-file. To use a variable name without any modification, select none.

  7. Click Apply. Click OK to save your changes.