"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?"

217 vues (au cours des 30 derniers jours)
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

Réponses (1)

Avadhoot
Avadhoot le 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.

Catégories

En savoir plus sur Fuzzy Logic Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by