Why do I get a compile error in S-Function?

5 次查看(过去 30 天)
Why do I get the following error in my S-Function after running the Simulink with the S-Function?
An error occurred while running the simulation and the simulation was terminated
Caused by: Input arguments must be fis.
Component:Simulink | Category:Block error
FIS states for Fuzzy inference system.
But I do not have any fuzzy inference system in S-Function und Simulink.

回答(1 个)

Venkat Siddarth
Venkat Siddarth 2023-3-8
The error message suggests that the input arguments to your S-Function or Simulink model are expected to be fuzzy inference systems, but the inputs you are providing are not in the correct format.This error can occur if you have used a fuzzy logic block in your Simulink model, even if you are not explicitly using a fuzzy inference system. It is possible that the fuzzy logic block is expecting inputs in the form of fuzzy sets or fuzzy rules, which are not being provided by the inputs to the block.
To resolve this error, you are required to check the configuration of any fuzzy logic blocks in your model and ensure that the inputs used, are in the correct format. Additionally, you can check the inputs and outputs of your S-Function and make sure they are being passed correctly and in the expected format.
I hope this resolve the issue,
Thanks and regards,
Venkat Siddarth V

类别

Help CenterFile Exchange 中查找有关 Fuzzy Logic in Simulink 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by