Main Content

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 and UDVSS has IsInStartup set to on because the blocks are active in simulation.

  • The inactive choice in StartupVSS gets the propagated startup variant activation time from its parent, so IsInStartup is on.

  • The inactive choice in UDVSS has the update diagram variant activation time, so IsInStartup is off.

CompiledVariantInfo parameter result for each variant choice

Related Topics