Can I use a Bus as In- and Output for "Model Variants"?

1 vue (au cours des 30 derniers jours)
Torben
Torben le 9 Oct 2014
Modifié(e) : Torben le 16 Oct 2014
Hi,
I would like to use the "Model Variants" block to change between different used controllers. This works for submodels which have 'normal' Signals as In- and Output, but not for a Bus-signal.
Is it generally possible to use such Bus signals in this context?
(If you want to view my model, I attached it)
Cheers T

Réponses (1)

Torben
Torben le 16 Oct 2014
Modifié(e) : Torben le 16 Oct 2014
--- SOLUTION ---
I found a solution for that problem:
1. Build your Bus in the Buseditor and make sure it is in the workspace
2. Use this bus as output signal definition for the "bus creator"
3. Set the bus in the bus creator as "nonvirtual bus"
4. Also define the in and Outputs of the "variants" for the "variant subsystem as nonvirtual bus
works! attached the model again! have fun
T

Community Treasure Hunt

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

Start Hunting!

Translated by