Validation error, when configuring enable subsystem as autosar component?

5 views (last 30 days)
Hi, when using the enable system's, states when enabling of enable port, if we set as "reset", the following error is popping out.
Error:The trigger or enable port 'untitled/Subsystem/Subsystem/Enabled Subsystem1/Enable' has "States when enabling" set to "reset", which is not supported. You must change this to "held"

Answers (1)

Charu
Charu on 19 Jun 2025
Hi, the error you're facing usually means that Simulink doesn't support resetting states in this specific context, often when the enabled subsystem is nested inside another subsystem.
What you can do to fix this error is:
  1. Open the Enable block inside the subsystem.
  2. In the block parameters, change “States when enabling” from "reset" to "held".
This should resolve the error, as Simulink does allow holding states, but not always resetting them depending on where and how the block is used.
If you do need the states to reset when enabled, you could consider:
  • Replacing the enabled subsystem with a resettable subsystem.
  • Or add logic to manually reset states like integrators using a reset port.
Hope this helps!
Here is the documentation link if you want to know more about enabling states:

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!