Subsystems working in different workspaces.

I have been provided with a Simulink subsystem (this maybe incorrect terminology) from a colleague. For IP reasons, the Subsystem is compiled into a *_sf.mexw32 file with some I/O. I have it working completely and I am happy with it. When it runs it creates a lot of variables in the workspace.
I need to have two of these models running in the same Simulink model and when the inputs are identical the system works as required, when I vary one input the whole model crashes stops running, I suspect that this is something to do with the shared workspace variables. Can I run each subsystem in a different workspace, so that that values are not shared and it has its own instance of them?
Sorry if this makes no sense.

Antworten (0)

Kategorien

Gefragt:

am 29 Apr. 2014

Kommentiert:

am 27 Sep. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by