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.

采纳的回答

Sietse Braakman
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 个评论
Jacopo Biasetti
Jacopo Biasetti 2020-3-25
编辑:Jacopo Biasetti 2020-3-25
Hi Sietse,
I'm new to SimBiology and I was just following the help page "Model Views in SimBiology App"; I might have done something incorrectly while following the tutorial but can't figure out what.
How do I add a reaction rate that is model-scoped instead of reaction-scoped? I think that what I was doing was to specify ke when I was creating the reaction. Is this a wrong way of specifing parameters?
Many thanks,
Jacopo
Sietse Braakman
Sietse Braakman 2020-3-25
If you right-click on the parameter in the browser, you can 'Change Scope', see the screenshot betlow.

请先登录,再进行评论。

更多回答(0 个)

社区

更多回答在  SimBiology Community

类别

Help CenterFile Exchange 中查找有关 Scan Parameter Ranges 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by