Modelica - Dymola Python interface: Set output format to textual

和自甴很熟 提交于 2019-12-07 19:54:55

问题


I am running Modelica simulations with Dymola via the Dymola Python interface. My aim is to have the result file written to textual output (i.e. to a .txt file). Even though my model contains the annotation __Dymola_experimentSetupOutput(textual=true, events=false), the output is written to a .mat file. Unfortunately, when I type find() into the Dymola command line, I cannot find a suitable flag for setting the output format via dymola.ExecuteCommand().

Is there a possibility to set the output format to textual via the Python interface? Thanks!


回答1:


You can set textual output in the python interface with

dymola.experimentSetupOutput(textual=True)


来源:https://stackoverflow.com/questions/48202469/modelica-dymola-python-interface-set-output-format-to-textual

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