I have developed a simple simbiology model where my parameters are scoped to the model. There is an Event within the model that gives the the following error:
The left-hand side of event function does not refer to a non-constant species, parameter, or compartment object.
Any ideas on what I might be doing wrong? I attach the .sbproj file in case it is of any use.
Many thanks

 채택된 답변

Florian Augustin
Florian Augustin 2019년 6월 18일

2 개 추천

Hi,
It looks like the event is changing the value of a parameter that is marked as constant. You can change the "Constant" property by double clicking on the parameter in the diagram. This opens up the Block Property Editor where you can uncheck "ConstantValue". Alternatively, you can open the Table Overview (Model pane -> Open -> Table Overview) and uncheck the "Contant" checkbox for this parameter.
Best,
-Florian

댓글 수: 1

I see, that was exactly the issue, everything works as it should now. Thank you very much for your help Florian!
Best,
Alvaro

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

도움말 센터File Exchange에서 Perform Sensitivity Analysis에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by