Unable to add an event block to a reaction rate in SimBiology
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm unable to add an event block to a reaction rate block (ke) in SimBiology diagram view (taken from the help page "Model Views in SimBiology App") - please see attached file. When I connect the two blocks the event block for the reaction rate block is still undefined.
댓글 수: 0
채택된 답변
Sietse Braakman
2020년 3월 25일
Hi Jacopo,
The parameter you are adding the event function to, ke, is currently "reaction-scoped". If you change the scope of your parameter ke to be "model-scoped" you will be able to add the event function to ke. Note that you will have to change your EventFunction to from reaction2.ke = ... to ke = ....
This behavior is rooted in SBML standards but it would be helpful for us to understand why you want ke to be reaction-scped as opposed to model-scoped. Is there a particular reason why you want ke to be reaction-scoped?
Let me know if that helps.
Best,
Sietse
댓글 수: 2
Sietse Braakman
2020년 3월 25일
If you right-click on the parameter in the browser, you can 'Change Scope', see the screenshot betlow.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/279460/image.png)
추가 답변 (0개)
커뮤니티
더 많은 답변 보기: SimBiology Community
참고 항목
카테고리
Help Center 및 File Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!