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
Interactive simulation #7477
base: master
Are you sure you want to change the base?
Interactive simulation #7477
Conversation
One button for run and pause of simulation
@lochel now checking/unchecking the variable sends the following json command to the server,
Based on the enabled signals the server should start sending the values. |
@adeas31 I am now sending the time point and all active signals back to OMEdit. Please check if the format is okay, or if I should adjust the messages. |
We used to have interactive simulation as an experimental feature in OMEdit also for OMC (I mean not OMS). It is still mentioned in the OMEdit manual. Interactive simulation is a near-mandatory feature for real-time simulations e.g. using Modelica_DeviceDrivers with RealTimeSynchnonize active: you cannot wait for the real-time session to be ended to look at what's going on, through watching some significant plots. I understand that interactive simulation was dropped some time ago from OMEdit because it did not work as expected. But now it is being considered for OMS: wIll it be restored also for OMEdit? |
I think we still use the (old) interactive simulation for the Petri net simulator (not OMEdit). @cbrinkrolf is that correct? |
The interactive simulation for Modelica models is still there in OMEdit. This one is for SSP models and the idea with this work is also to have a common GUI interface for both Modelica and SSP models interactive simulation. |
Do you mean that it can be used for Modelica simulations? |
https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/omedit.html#interactive-simulation The video in the users guide is bit old. The interactive controls are moved to a new tab in simulation setup dialog. |
WOW! |
@adeas31 how much work is left? |
Not much. I can read the data now. I just need to plot it. |
Purpose
Interactive simulation using OMSimulator.
Approach
Communicate with OMSimulator using zmq for data exchange.