Is there a way to automatically change the name of the variables created in a PreLoadFcn for a variant subsystem?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Component-Based Modeling in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!