Remove or disconnect physical components from network
Simscape / Utilities
The Variant Connector block lets you define variant choices
in a physical network. Variant choices allow you to exclude some components from simulation
without physically removing the components from the physical network. The components to be
disconnected must be connected to the port associated with condition data. During simulation,
the variant condition is propagated to all the connected components within the physical
network. If the variant control associated with the block evaluates to
true
, all the components that are connected to the block become active. If
the variant control evaluates to false
, all the components connected to the
block become inactive.
Note
The Variant Connector block does not propagate the variant condition across the boundary between the Simscape™ physical network and the Simulink® blocks connected to it. In other words, a block that has both conserving ports and Simulink signal ports, such as a Simulink-PS Converter or a PS-Simulink Converter block, does not propagate the variant condition from a Variant Connector block between the two parts of the model.