Validation error, when configuring enable subsystem as autosar component?

조회 수: 2 (최근 30일)
Muruganandham Subramanian
Muruganandham Subramanian 2014년 9월 18일
답변: Charu 2025년 6월 19일
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일
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