nj_bubbles
nj_bubbles

Reputation: 78

How to run a Referenced Model inside a Matlab Function Block in Simulink?

Is it possible to run/simulate a referenced simulink model(of subsystem A) from inside a Matlab function block of another model(Model B)? My design requires me to run a simulation of a subsystem A inside another model B. I cannot directly use the referenced model of the subsystem A in my main model B because it is time dependent and the output of the subsystem A is used as an input in the main model B. Thank you guys!

Upvotes: 0

Views: 417

Answers (1)

Captain Future
Captain Future

Reputation: 339

As stated here, your approach to "replace your simulation subsystem by a Matlab Function block that runs/calls the referenced model as a simulation independent of the main simulation" should work "perfectly fine".

Upvotes: 1

Related Questions