Closed a3678911 closed 7 months ago
Windows? Linux? 64-bit or 32 bit Python installed? Python available globally? Does the app have it's own Python runtime? etc.
windows 64-bit, and 64-bit 3.8.5 python using anaconda environment. I try to run other python codes in matlab.
How does pythonFMU decide which compliers to use if both MSVC and Mingw are installed in my PC? And where can specify 64-bit or 32-bit?
You mean when compiling the native library from source? That depends how you setup your toolchain. When invoking the build script, however, it should select 64-bit MSVC.
The pre-compiled binary shipped with the pip/conda packages is 64-bit MSVC.
I'm having the same problem. after importing into simulink, the runtime crashed straight away
Unfortunatly, I don't have a solution. Some tools/environments are harder to pinpoint the issue for, and will require debugging expertise.
Unfortunatly, I don't have a solution. Some tools/environments are harder to pinpoint the issue for, and will require debugging expertise.
Everything works fine in FMPy GUI, import to simulink without scope connected, click to run without crashing, connect to scope to run and it crashes. python is already in the environment path.
According to #110 this issue is due to Anaconda PATH not set (fixable).
this is my code, when i use it to generate fmu and run the fmu in matlab or ther software that can support fmi, matlab crashes. Why? ` from pythonfmu import Fmi2Causality, Fmi2Slave, Boolean, Integer, Real, String
class PythonSlave(Fmi2Slave): author = "John Doe" description = "A simple description"
`