Error in Error in 'HPW/HPW/VSC1 Control/Current Regulator/Fuzzy Logic Controller with Ruleviewer/Fuzzy Logic Controller': Failed to evaluate mask initialization commands. Ca
5 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1590371/image.png)
1 件のコメント
Walter Roberson
2024 年 1 月 14 日
編集済み: Walter Roberson
2024 年 1 月 14 日
I get a different error:
Error evaluating parameter 'fismatrix' in 'HPW/HPW/VSC1 Control/Current Regulator/Fuzzy Logic Controller with Ruleviewer'
Caused by:
Unrecognized function or variable 'ig'.
Variable 'ig' does not exist.
I also get two warnings,
Warning: The image file in 'image' drawing commands in block 'HPW/HPW' cannot be found on MATLAB path or has an invalid path.
回答 (1 件)
Sam Chak
2024 年 1 月 15 日
You haven't provided the FIS file for testing. Nonetheless, I generated a dummy FIS file named 'ig.fis' and stored it in the same folder as the Simulink file 'HPW.slx.' In the Simulink model, I replaced the Ruleviewer block with the standard Fuzzy Logic Controller block. If you enter the FIS name as indicated correctly, you should be able to run the Simulink, although there might be some algebraic loop issues, as reported by the Diagnostic Viewer.
Replace the Ruleviewer block
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1590841/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1590846/image.png)
Result as shown in the Scope:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1590851/image.png)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Fuzzy Logic in Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!