How to add optional outport to simulink model?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Daniel Höglinger
il 9 Dic 2019
Commentato: Daniel Höglinger
il 11 Dic 2019
I have a model that outputs a signal via a normal outport. I would like to create an optional second outport for a normalized version of this same signal.
Currently the block has both outputs, but I would like the second outport to be "hidden" unless explicitly enabled.
So is it possible to add an outport that can be enabled and disabled by a checkbox in the properties of the model/block?
0 Commenti
Risposta accettata
Jim Riggs
il 9 Dic 2019
You can use a switch to select between the two different output options that you want, and there are a number of ways to activate the switch:
1) This is a favorite of mine: Define a logical variable (e.g. "UseOutputOption") in the Matlab workspace.to control the switch.
2) You can use a manual switch inside the model to activate the option:
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simscape Multibody in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!