Versioning¶
Block versioning enables improvements of Simulink library block interfaces without enforcing breaking changes in existing models.
Library blocks may support multiple versions (in a single library), which are distinguished via a BlockVersion parameter. By default the latest ‘BlockVersion’ will be selected when using a new block in your model, but blocks in existing models will not automatically be updated to avoid breaking changes.
Outdated blocks in existing models can visually be recognized by their gray background color. It is possible to upgrade these blocks to the latest version using the ‘Upgrade’ button in the mask dialog.
Downgrading blocks to older block versions is not supported, but downgrading towards an older version of the library is still possible, as long as the older library contains the version of the blocks used in your model.
If the older library doesn’t contain the version of a block in your model, then the background color of the mask of this block will turn red and the following warning will be thrown:
Warning: The BlockVersion of the block: <'path to block'> is not present in the loaded Pmp library
Examples¶
Recognize an outdated Simulink block by the background color of the mask.
Upgrade the block by pressing the Upgrade button.