5.1.97. Require platform version (put_RequirePlatformVersion)

Stop a model build if the wrong version of the OpenECU platform is selected.

5.1.97.1. Supported targets

All targets

5.1.97.2. Required license

None (Main library). (See Section 2.3, “Licensed Features”.)

5.1.97.3. Description

Restrict the versions of OpenECU platform that a model can be build against. This block can restrict the platform to a specific version, before or after a specific version, or to be between two versions.

More than one put_RequirePlatformVersion block may be added to a model to refine the restriction conditions.

If there are no put_RequirePlatformVersion blocks in a model, the model may be built against any version of platform (whether the build completes successfully will depend on which version of the platform the model was created with — e.g., a model created with features from a newer version of the platform may not build using an older version of the platform).

Note

In order for this block to function fully, the model postloadfcn property must be set according to the section Model pre-load and post-load hooks.

5.1.97.4. Inports

None.

5.1.97.5. Outports

None.

5.1.97.6. Mask parameters

  • Check

    A drop-down of methods for restricting the version of platform to use when building.

    Value type:List
    Calibratable:No
  • Version

    The literal text of the version number (e.g., 1.5.0) that the platform must equal in order to be able to build the model. Only available when the Check parameter is set to Single version.

    Value type:Text
    Calibratable:No
  • Before version

    The literal text of the version number (e.g., 1.5.0) that the platform come before (not inclusive) in order to be able to build the model. Only available when the Check parameter is set to Before version.

    Value type:Text
    Calibratable:No
  • After version

    The literal text of the version number (e.g., 1.5.0) that the platform come after (not inclusive) in order to be able to build the model. Only available when the Check parameter is set to After version.

    Value type:Text
    Calibratable:No
  • From version

    The literal text of the version number (e.g., 1.5.0) that the platform come before (inclusive) in order to be able to build the model. Only available when the Check parameter is set to Range of versions.

    Value type:Text
    Calibratable:No
  • To version

    The literal text of the version number (e.g., 1.5.0) that the platform come after (inclusive) in order to be able to build the model. Only available when the Check parameter is set to Range of versions.

    Value type:Text
    Calibratable:No

5.1.97.7. Notes

None.