Identify Variant Activeness of a Block After Model Compilation
Consider a model with two Variant Subsystem blocks,
StartupVSS
and UDVSS
, with the Variant activation time parameter set to
startup
and update diagram
, respectively. The
result of CompiledVariantInfo parameter after model
compilation is shown for each variant choice.
The active choice in both
StartupVSS
andUDVSS
hasIsInStartup
set toon
because the blocks are active in simulation.The inactive choice in
StartupVSS
gets the propagatedstartup
variant activation time from its parent, soIsInStartup
ison
.The inactive choice in
UDVSS
has theupdate diagram
variant activation time, soIsInStartup
isoff
.