Modelica output file during simulation

 ̄綄美尐妖づ 提交于 2019-12-11 01:19:23

问题


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;

来源:https://stackoverflow.com/questions/46221933/modelica-output-file-during-simulation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!