Motor Control Blockset examples: Using variant source block
Afficher commentaires plus anciens
Hello,
a Variant source block is used in 'mcb_pmsm_operating_mode_f28379d.slx' model example to switch betwen SIMulation mode and CODE-generation mode. Inside Varian source block, there are two variables: mcb_isCodeGenVar() and mcb_isSimVar().
Could you please tell me where and how are those variables set? When the model decides what mode is to be chosen? Do I have to play with a Variant manager?
Thanks
Petr
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Component-Based Modeling dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!