Is there a way to automatically change the name of the variables created in a PreLoadFcn for a variant subsystem?
1 view (last 30 days)
Show older comments
Hi all,
I've created a model 'X' in which I use two different variant subsystems. Creating the varibles and the simulink.variants required is performed in the PreLoadFcn.
Here is the problem: I'd like to use the model 'X' more than once in another model (like the usage of multiple 'gain' blocks in one model). The problem is that all my X then refer to one and the same conditional variables which I would like to avoid.
Is there a way where I can change the name of the conditional variables created every time I insert X into another model where X already exists?
Or do you recommend the application of a configurable subsystem? But here the some problem applies unless I can create 'local' variables in my Simulink model (can I??).
Thanks for any help, Michael
0 Comments
Answers (0)
See Also
Categories
Find more on Component-Based Modeling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!