Modelica - Dymola Python 界面:将输出格式设置为文本

mar*_*00s 3 python modelica output dymola

我正在通过 Dymola Python 界面使用 Dymola 运行 Modelica 模拟。我的目标是将结果文件写入文本输出(即.txt文件)。即使我的模型包含 annotation __Dymola_experimentSetupOutput(textual=true, events=false),输出也会写入.mat文件。不幸的是,当我输入find()Dymola 命令行时,我找不到合适的标志来通过dymola.ExecuteCommand().

是否可以通过 Python 界面将输出格式设置为文本格式?谢谢!

mar*_*rco 5

您可以在 python 界面中设置文本输出

dymola.experimentSetupOutput(textual=True)
Run Code Online (Sandbox Code Playgroud)