"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?"
223 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Avadhoot
am 20 Mär. 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 Kommentare
Siehe auch
Kategorien
Mehr zu Fuzzy Logic Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!