Main Content

Variant Systems

Generate code for variant blocks, symbolic dimensions, and parameter variants

For models that contain variant blocks, variant parameters or use symbolic dimensions, generate code with preprocessor conditionals. For variant blocks and parameters, preprocessor conditionals defer the choice of active variant until compilation time or they do not allow an active variant choice. For symbolic dimensions, preprocessor conditionals define constraints established among symbols during simulation.


Variant Blocks

Variant Parameters

Symbolic Dimensions