You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to pause or stop the runtime of a Lava runtime from within a process.
I am currently running the simulation in the RunContinuous() mode with a long sleep function between the start() and stop() functions. As the time of my simulation will be variable, I cannot use the RunSteps() mode and cannot tune the sleep function as the simulation time will vary greatly.
Alternatively, between the start() and stop() functions, can I poll the state of a variable and stop() the simulation based on this? The Monitor class requires that I input a number of time steps to monitor for, this again is variable based on the simulation length.
What I want to do is pause or stop the runtime based on an internal Var within one of the processes, basically using it as a flag to end the runtime when it is set to True.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Is it possible to pause or stop the runtime of a Lava runtime from within a process.
I am currently running the simulation in the RunContinuous() mode with a long sleep function between the start() and stop() functions. As the time of my simulation will be variable, I cannot use the RunSteps() mode and cannot tune the sleep function as the simulation time will vary greatly.
Alternatively, between the start() and stop() functions, can I poll the state of a variable and stop() the simulation based on this? The Monitor class requires that I input a number of time steps to monitor for, this again is variable based on the simulation length.
What I want to do is pause or stop the runtime based on an internal Var within one of the processes, basically using it as a flag to end the runtime when it is set to True.
Any help on this would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions