08-19-2021 07:37 AM
So in this case, why can't the result be displayed because the input from the sensor is still an error and the fuzzy rule has an error? is that right sir?
08-19-2021 08:30 AM
The VI itself works.
What i'm saying is that you either have wrong inputs to the system or badly designed system.
Your input 1 accepts range of values from 0 to 50 ... the value you are feeding it is -127 ---> out of range
Your input 2 accepts range of values from 0 to 14, you are inserting 15.45 ---> out of range
Your input 3 accepts range of values from 0 to 70, your value is 68.05 BUT there is no rule covering these values so the output is 0.
You have 3 inputs, each made from 3 membership functions, but only 9 rules. You need 27 rules to cover all the possibilities.
----> NO rule covering these 3 values, even though they are all in range
----> all values are in range and a rule covers them, so output is not 0
Again, use Test System feature of Fuzzy System Designer to check how your values interact with system and then either change the system or fix arduino so it outputs proper values.
08-19-2021 08:41 AM
now I understand what is the source of the problem, thank you for the help it really helped me sir