LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fuzzy logic result graph

 

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

 

 

 

Download All
0 Kudos
Message 1 of 2
(3,208 Views)

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. 

 

killmeagain.png

Hopefully this helps,

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 2
(3,046 Views)