08-10-2015 12:31 AM - edited 08-10-2015 12:55 AM
I created a fuzzy logic design for a set of data (2 inputs). I wanted to plot the resulted graph but it was empty
. I want to convert the results into numbers to plot the result in a graph (Defuzzification) but I dont know how to do that in labview.
I have attahced the VI with the csv file.
I will be gratful if someone can check the problem.
regards
08-17-2015 06:11 PM
The reason your graph is empty is because you are "feeding" only the first element into the function. Also, you have a 'chart' running and it will run out of point after a while, so this would not work too. One last problem was that you were trying to read column 1 and 2, but LabVIEW is 'zero' based... you should have used 0 and 1. In the end, you also forgot to send the '.fs' file with your code, so I can really run and fix your code.
Here is the code with the proposed changes. This below is a snipped and you can just 'drag and drop' on yoru diagram. Also, noticed that the path for the .fs is empty, so you need to fix that too.
Hopefully this helps,