Validation error, when configuring enable subsystem as autosar component?

58 次查看(过去 30 天)
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"

回答(1 个)

Charu
Charu 2025-6-19,10:28
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:

类别

Help CenterFile Exchange 中查找有关 AUTOSAR Blockset 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by