Model Advisor Error Occurred During model compile

8 Ansichten (letzte 30 Tage)
Jake Gareau
Jake Gareau am 8 Feb. 2024
Beantwortet: Cindi am 26 Feb. 2024
Here is the error message I recieve when trying to run a specific check in model advisor "Identify questionable operations for strict single-precision design":
Error occurred during model compile.
Specified compile time storage class in the variant control expression of variant block 'MODEL_NAME' is not supported when 'Variant activation time' is set to 'startup' or when the Variant activation time is set to 'inherit from Simulink.VariantControl', with activation time of the Simulink.VariantControl objects set to 'startup'.
I understand what it is saying, but what confuses me is why do I get this message if my model compiles and simulates without issue?
Whats even more confusing is I ran the checks from the command line using:
And the check ran for the first instance that appears under the Simulink product category but failed (producing the above error) when run for the Task category Modeling single precesion systems.

Akzeptierte Antwort

Cindi
Cindi am 26 Feb. 2024
Hello Jake, I work at MathWorks and the development team has been notified of this inconsistency. Thank you for bringing this to our attention and we will consider resolving this in future releases and updates.
For now, the workarounds are as you have already identified:
  1. use instances of "Advisor.Application" to pass the check "Identify questionable operations for strict single-precision design"
  2. run the check on a test harness for the referenced subsystem that contains the variant subsystem

Weitere Antworten (0)

Kategorien

Mehr zu Create Large-Scale Model Components finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by