我正在尝试在python中使用pyFMI包运行简单的教程示例,但出现错误FMU不包含该平台的二进制文件。试图设置FMULibrary的环境变量,但错误仍然存在。
我将不胜感激。
runfile('C:/Users/NiPap/.spyder-py3/temp.py', wdir='C:/Users/d60378/.spyder-py3')
Could not find RADAR5
Could not find GLIMDA
Traceback (most recent call last):
File "<ipython-input-1-b6c744d814b8>", line 1, in <module>
runfile('C:/Users/NiPap/.spyder-py3/temp.py', wdir='C:/Users/d60378/.spyder-py3')
File "C:\Users\NiPap\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "C:\Users\NiPap\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/NiPap/.spyder-py3/temp.py", line 9, in <module>
fmi_bouncing_ball.run_demo()
File "C:\Users\NiPap\AppData\Local\Continuum\anaconda3\lib\site-packages\pyfmi\examples\fmi_bouncing_ball.py", line 32, in run_demo
model = load_fmu(fmu_name)
File "src\pyfmi\fmi.pyx", line 7157, in pyfmi.fmi.load_fmu (src\pyfmi\fmi.c:82903)
File "src\pyfmi\fmi.pyx", line 2666, in pyfmi.fmi.FMUModelME1.__init__ (src\pyfmi\fmi.c:33458)
File "src\pyfmi\fmi.pyx", line 943, in pyfmi.fmi.FMUModelBase.__init__ (src\pyfmi\fmi.c:14153)
FMUException: The FMU contains no binary for this platform.
最佳答案
示例FMU中没有用于最新版本的PyFMI的64位dll。但是,在以后的版本中将会有。
没有64位dll,就无法在64位环境中模拟FMU。
关于python - pyFMI Modelica:FMU不包含此平台的二进制文件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51265302/