Open Blitzy20 opened 3 years ago
This sounds like fmipp is not installed properly. Which version of Python are you using?
Hi, Sorry for the late reply.
I am using python 3.8.5
It says that fmipp was successfully installed
There seem to be 2 issues:
pip
with the extra argument --prefer-binary
:
pip install fmipp --prefer-binary
I tried the first step but I got the same error. Maybe it's the second issue. Please let me know what I can do to fix it
I tried going through the procedure using python 2.7.14. Now, I'm getting a new error. Can you help me out with this.
The problem is that libmx.dll
, a library from MATLAB/Simulink, cannot be found and then loaded at run-time. You need to add the directory containing this library (it is a sub-directory of your local MATLAB installation) to the system path.
You can find instructions on how to edit the Windows system path for instance here: https://de.mathworks.com/matlabcentral/answers/94933-how-do-i-edit-my-system-path-in-windows
Hi, I'm still getting the same error even after adding the directory to the path variable and restarting the pc. Is there something else I'm missing ? Is there something I need to open in MATLAB or PSCAD before running master.py (other than the PSCAD library and the example case mentioned in the instructions) ? PS: I'm using matlab 2020b and libmx.dll is in bin/win64
In principle, this co-simulation setup can be implemented in various ways. However, the resources available in this repository have been compiled to work specifically with the toolchain mentioned in the documentation:
- Python (tested with Python 2.7 32-bit) with packages matplotlib and fmipp installed
- PowerFactory (tested with PowerFactory 2017 SP3 x86) and the FMI++ PowerFactory FMU Export Utility
- MATLAB/Simulink (tested with MATLAB R2014b 32-bit) and the FMI Kit for Simulink
- add the PowerFactory and MATLAB binary directories to the PATH variable
The documentation says "tested with ...", but what it really means is "very likely will not work with any other version than ...". The reason is that the interfaces of these software tools typically change (at least slightly) with each version. I will add a note in the documentation to emphasize this point.
It is also very important to be consistent in using either 32-bit applications or 64-bit applications:
ATTENTION: The co-simulation toolchain needs to be completely in either 32-bit or 64-bit. For TC1 it was decided to use consistently 32-bit for Windows setups. Therefore, be sure to install 32-bit versions of all tools (Python, PowerFactory, MATLAB/Simulink)!
I'm getting the above errror when trying to run the master.py file. I have installed the fmipp package and followed the other steps before running Master.py