Simulink Function and Referenced Models

version 1.0.0 (44.8 KB) by Muthukumar Ganesan
Calling Simulink function across the referenced models

4 Downloads

Updated Fri, 12 Aug 2022 18:14:42 +0000

View License

Problem Statement:
Call a simulink function across all the referenced models
Solution:
Define a simulink function at the top level of all referenced models
  1. In referenced models, simulink function is called through function callers, then configure the simulink function visibility to "Global" and directly this function can be accessed in all the referenced models
  2. In referenced models, simulink function is called in state machine, then configure the simulink function visibility to "Scoped" and this function can be accessed by using <TopModelName>.<FunctionName> in all the referenced models

Cite As

Muthukumar Ganesan (2022). Simulink Function and Referenced Models (https://www.mathworks.com/matlabcentral/fileexchange/116245-simulink-function-and-referenced-models), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

SimulinkFunc_RefModels