"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?"
226 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Avadhoot
2024-3-20
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fuzzy Logic Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!