"How to resolve 'Failed to evaluate mask initialization commands' error in MATLAB Simulink when opening/running a model due to inability to open 'mppt1.fis' file?"
92 views (last 30 days)
Show older comments
Warning:Error evaluating 'PostLoadFcn' callback of block_diagram 'FLC_For_S'.
Callback string is 'fuzzyLogicDesigner('mppt1')'
Caused by:
Unable to open file 'mppt1.fis'.
Here FLC_For_S.slx is the simulink model and mppt1.fis is the fuzzy inference system
My model is A Fuzzy Logic-Based MPPT Controller for Photovoltaic Systems
0 Comments
Answers (1)
Avadhoot
on 20 Mar 2024
From the error description it seems like MATLAB is not able to open the "mppt1.fis" file. This can be handled in two ways as follows:
1) First load the .fis file into the MATLAB base workspace using the "readfis" function. Then pass it to the "fuzzyLogicDesigner". You can refer the below code for this
fis = readfis("mppt1.fis");
fuzzyLogicDesigner(fis);
2) Directly mention the filepath as a parameter to the "fuzzyLogicDesigner" function. Make sure that the .fis file is on the MATLAB path
fuzzyLogicDesigner("mppt1.fis");
Mention the filename with its extension in the fuzzyLogicDesigner parameter so that the file can be read. Ensure that the file is on the MATLAB path and has appropriate permissions to access it.
For more information on the "readfis" function refer to the below documentation:
I hope it helps.
0 Comments
See Also
Categories
Find more on Fuzzy Logic in Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!