I've simulated a model in open modelica, now is it possible to get values of all variables that they had during the simulation? If yes, how can I get them?
2 Answers
When you simulate you can give outputFormat="csv" and then you get a result file Model_res.csv containing all variable values for all the time steps. You can then open this file in Excel if you want. https://build.openmodelica.org/Documentation/OpenModelica.Scripting.simulate.html
In OpenModelica Connection Editor (OMEdit) you go to Simulation->Simulation Setup, tab Output and select csv.
2 Comments
Salman Azmat
thanks, I got output result through OMShell but in OMEdit I dont seem to have simulation setup under the simulation tab, !OMEdit Window
Adrian Pop
Not under the Simulation tab. Select Simulation from the menu, then Simulation Setup, then the Output tab.