08-16-2021 11:07 AM
hi everyone i have some question. i want to makes fuzzy logic with "mimo". 3 input data send by arduino serial comuniccation the data can be transmit and can display, but i have some problem with the output. why the result cant display ? the output always "0" what happen for this ? thanks for advance.
Solved! Go to Solution.
08-19-2021 04:03 AM - edited 08-19-2021 04:07 AM
Perhaps your fuzzy system is setup wrong, because you are getting an output... it's just 0.
Also if you have 12793 bytes at port when doing a read, chances are you are doing it wrong.
08-19-2021 05:11 AM
Is this due to an error input? Or is it because the output is not legible on the device?
08-19-2021 05:25 AM
Please provide your VI and .fs file you are using for your fuzzy system, it's easier to debug than an image.
08-19-2021 06:06 AM - edited 08-19-2021 06:08 AM
it is vi and .fs file sir
08-19-2021 06:10 AM
Could you save the VI for LV2019? I can't open it.
08-19-2021 06:20 AM - edited 08-19-2021 06:21 AM
Hi mamprat,
there are several problems in your small VI:
Cleanup your code to make it more readable:
08-19-2021 06:22 AM
can you try it sir
08-19-2021 06:30 AM
i expect it consists of 3 inputs and then it produces 3 outputs too. can it be done sir ?
08-19-2021 06:49 AM - edited 08-19-2021 07:08 AM
I checked your fuzzy system a bit... and it works, except that none of the values you feed it are in the range it expects (EDIT: at least not the ones from your first image provided -127 15.25 68.05).
Check if the rules set are correct, because there's one rule that just says "IF THEN" with no inputs or outputs...
Use Test System to check if what you are feeding it actually produces an output you want.
Regarding your code, do what GerdW says.