Main Content

slReloadToolstripConfig

Reload金宝appToolstrip configuration

Description

example

slReloadToolstripConfigreloads 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 theslReloadToolstripConfigfunction to reload the toolstrip configuration with your changes.

In the MATLAB®Command Window, enter:

slReloadToolstripConfig;

The function searches the MATLAB path forresourcesfolders that contain a validsl_toolstrip_plugins.jsonfile.

To temporarily modify the toolstrip configuration, perform one of these actions before you call this function:

  • Add folders that containresourcesfolders to the MATLAB path.

  • Remove folders that containresourcesfolders from the MATLAB path.

If the custom tab does not appear:

  • Debug and correct errors in the JSON code.

  • Add the folder that contains the correspondingresourcesfolder to the MATLAB path.

Version History

Introduced in R2021b