Main Content

slReloadToolstripConfig

Reload Simulink Toolstrip configuration

Description

example

slReloadToolstripConfig reloads the Simulink® Toolstrip configuration. Use this function after you make changes to the JSON files that define custom tabs.

Examples

collapse all

After you modify a JSON file that defines a custom tab, use the slReloadToolstripConfig function to reload the toolstrip configuration with your changes.

In the MATLAB® Command Window, enter:

slReloadToolstripConfig;

The function searches the MATLAB path for resources folders that contain a valid sl_toolstrip_plugins.json file. To temporarily modify the toolstrip configuration, add folders that contain resources folders to the MATLAB path or remove them from the MATLAB path before you call this function.

If the custom tab does not appear:

  • Debug and correct errors in the JSON code.

  • Add the folder that contains the corresponding resources folder to the MATLAB path.

Introduced in R2021b