问题描述
我正在通过Dymola Python界面使用Dymola运行Modelica仿真.我的目标是将结果文件写入文本输出(即到.txt
文件).即使我的模型包含注释__Dymola_experimentSetupOutput(textual=true, events=false)
,输出也会写入.mat
文件.不幸的是,当我在Dymola命令行中键入find()
时,找不到适合通过dymola.ExecuteCommand()
设置输出格式的标志.
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()
.
是否可以通过Python界面将输出格式设置为文本格式?谢谢!
Is there a possibility to set the output format to textual via the Python interface? Thanks!
推荐答案
您可以使用
dymola.experimentSetupOutput(textual=True)
这篇关于Modelica-Dymola Python界面:将输出格式设置为文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!