I have a question about building a model in AnyLogic. I want to create a model of the action potential of an excitable tissue cell (like muscle). I created an impulse variable that I can change using a slider, and a dynamic membrane potential variable that is initially -75 and changes according to the formula:
Membran_potencial = -70 + impulse
I need to make it so that when Membran_potencial >= -60, it rises to +30 over 0.5 seconds, then decreases to -80 over 0.8 seconds, and then rises again to -70 over 0.2 seconds.
I am still not very familiar with AnyLogic and don’t quite understand how to implement this. I would appreciate your help.