Simbiology parameter is not recognized by EventFcns
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Alvaro Martinez Guimera
el 18 de Jun. de 2019
Comentada: Alvaro Martinez Guimera
el 18 de Jun. de 2019
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
0 comentarios
Respuesta aceptada
Florian Augustin
el 18 de Jun. de 2019
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
Más respuestas (0)
Comunidades de usuarios
Más respuestas en SimBiology Community
Ver también
Categorías
Más información sobre Extend Modeling Environment en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!