Reputation: 5612
I have built a fairly complex model using OMEdit. To post-process, I want to generate a set of plots (<5) with a different number of quantities (~5) plotted in each plot.
So far, I did this using the Plotting view in OMEdit. However, doing this time and time again, with the mouse, after every start of OMEdit, gets tedious very quickly, so I want to automate this.
Is there a way to programmatically define (e.g. with an experiment annotation) a set of plots belonging to a certain model, which get generated/refreshed after every simulation of said model, or at least by the click of one button or running of one script? Do I have to write a .mos script, and if yes, how do I best run that from within OMEdit?
Upvotes: 2
Views: 625
Reputation: 587
There is no standard experiment annotation for it but we could have OpenModelica specific annotation to make it work.
But you don't have to select the plots every time. You only need to do it once. - Simulate your model - Select the plots - Update your model - Simulate again - The existing plots will be automatically updated to the new values.
Upvotes: 2