Modelica output file during simulation

487 Views Asked by At

I am making simulations for long times and I need to check the output when the simulation is continuing. Another reason is that I am doing real-time simulation so I want to see the output in real-time as well.

That would be perfect if OpenModelica creates an output file during the simulation so that I can read and plot it using 3rd party tools, maybe Python.

So far as I know, OpenModelica creates output file only at the end of the simulation. Is there a way to create an output file using a Modelica function? Assuming something like this:

when sample(0,100) then
  writeOutput();
end when;
0

There are 0 best solutions below