-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-simulate interactive simulations (enhancement proposal) #8303
Comments
@adeas31 is off, he'll have a look next year. |
Any news on this? If this is true, it is very fast to fix it. |
@adeas31 is this an easy fix? Thanks! |
Has anyone had a look at this? |
@adeas31 can you please have a look once the 1.19.0 release is done? Thanks! |
How do you want re-simulation to work in this case? Since interactive simulation keeps the process running so if we want to do re-simulation then we need to run another instance of the simulation executable which can cause issues because of sharing the same resources (e.g., reading/writing to the same files). So maybe we can allow re-simulation only when the user stops the interactive simulation. |
yes, I mean restarting a simuation after a stop. As I mentioned in the ticket description, this makes sense since a lot of things can make the new run different from the previous when we use Modelica_DeviceDrivers, and therefore our modelica interferes with the external world. Now, instead we have to create the new executable again and again, which is annoying, especially when you have several other constraints coming from the presence of interacting hardware. |
PR #11670 should allow re-simulation of interactive simulations. The only annoying thing is that whenever you try to re-simulate then the already plotted curves are removed. That is because there is no way to preserve the state of the server. We start the interactive simulation again on re-simulate. |
Description
I see that interactive simulations do not allow re-simulating from OMEdit.
I don't understand the difficulties of allowing this. Maybe because all parameters are structural for interactive simulations?
Re-simulating may be useful for interactive simulations because if the simulation interacts with the external world through Modelica_DeviceDrivers (interaction with the user through keyboard or joystick, with the computers via serial or UDP communication, etc), each simulation is different from another. And this without having to change any model parameter.
In case allowing re-simulation also for interactive simulations is easy to implement, I would be glad to have it.
Steps to Reproduce
Expected Behavior
This is an enhancement suggestion, not a bug report. What I expect is to be able to re-simulate interactive simulations from OMEdit
Screenshots
Version and OS
OM 1.18.0, Win10 64 bit
omc --version
orHelp->About OMEdit
from OMEdit]Additional Context
The text was updated successfully, but these errors were encountered: