Lukas738 / SimulinkMATPOWER

A Simulink to MATPOWER interface
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Failed to load library 'SimMATPOWERbase' in installation example.slx #3

Open PonySubway opened 12 months ago

PonySubway commented 12 months ago

Currently, I have added SimulinkMATPOWER folder to MATLAB path, and ran the “ac_testbed_setup.m” file. However, when running the “example.slx”, it fails to load library. Error message shown below, and the blocks can’t be found in simulink library.

Error:Failed to load library 'SimMATPOWERbase' referenced by 'example/MATPOWER in Simulink/Solve Power Flow/ACPF'.

Could you please provide more information on how to install this useful tool? I suspect that I didn’t install it properly.

Lukas738 commented 12 months ago

Have you read the read-me file and followed the instruction? Please double check. Also the error message says that SimulinkMATPOWERbase.slx cannot be found. Make sure that this file is on the Matlab path.

PonySubway commented 12 months ago

I have add this on MATLAB path, and replaced the existing blocks with ones in "SimulinkMATPOWERbase.slx". There is a new error message about the block itself.


Error:Simulink cannot determine sizes and/or types of the outputs for block 'example/MATPOWER in Simulink/Extracting Power Flow Results/get_tap_ratios1' due to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs.

Lukas738 commented 12 months ago

There was a broken reference. I fixed the bug and pushed a new version. Please download a clean new version and try it again. Please provide feedback whether it now works or not.