主要内容

Show App-Specific Options in Simulink Context Menu

The Simulink® context menus do not show app-specific options by default. For example, the context menus do not show options associated with HDL Coder™, such as navigating to the generated HDL code, by default.

To add an app section to the context menu, pause your pointer on Select Apps, and then select the app. When you select the app, the same app windows and toolstrip tabs open as when you click the app icon on the Apps tab in the Simulink Toolstrip. The app section appears in the context menu.

A pointer right-clicks the model canvas. The Top Model context menu appears. The pointer pauses on Select Apps, then on HDL Coder. In the context menu, a new section containing options specific to HDL Coder appears. The section outline flashes yellow three times.

You can add multiple app sections. To add another app section, pause your pointer on Select Apps again, and select a different app.

In the model in which you add an app section, the app section appears in all context menus and persists across Simulink sessions. For example, if you right-click a block and add an app section, and then right-click a signal line in the same model, the signal line context menu also shows the app section you added. However, if you open a context menu in a different model, the context menu does not show the app section. If you open a context menu in a context in which none of the actions of an app section are available, the context menu might not show the app section.

To collapse an app section, click the down arrow button in the upper left of the app section. To expand the app menu section, click the arrow again.

To remove an app section from the context menu, pause your pointer on the app icon at the left edge of the app-specific section and click Close App. Alternatively, pause your pointer on Select Apps, and then cancel the app selection. You can also collapse the app section and then click the X on the right.

See Also

Topics