LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fuzzy logic cant display output

Solved!
Go to solution

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?

0 Kudos
Message 11 of 13
(522 Views)
Solution
Accepted by topic author mamprat

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.

AeroSoul_0-1629379412558.png----> NO rule covering these 3 values, even though they are all in range

AeroSoul_1-1629379464462.png----> 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.

 

 

0 Kudos
Message 12 of 13
(513 Views)

now I understand what is the source of the problem, thank you for the help it really helped me sir

0 Kudos
Message 13 of 13
(510 Views)