different event functions for the same species
Show older comments
Hi,
I developed a model in Simbiology in which Fw is a parameter as a function of mass. The mass varies with time.
I want to set two events as follows:
Trigger: mass>=Threshold_mass
event function: Fw = 0.1* mass
Trigger: mass<Threshold_mass
event function: Fw = 0.0003* mass
I received this error message:
"Invalid repeatedAssignment rule 'Rule_20'. The variable 'Fw_T' is also used by an event function.\n"
Could you please suggest any idea that may help?
Thanks
3 Comments
Mann Baidi
on 30 Apr 2024
Hi,
I have no knowledge about the SimBiology Toolbox. But as per my guess ,the 'equal to' case might be creating the problem. For both the triggers mass=Threshold_mass holds.
I would suggest you to remve the equal to operator from any of the trigger.
Torsten
on 30 Apr 2024
We need Arthur Goldsipe here :-)
Day
on 30 Apr 2024
Accepted Answer
More Answers (0)
Categories
Find more on Scan Parameter Ranges in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!