LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fuzzy logic question

Hi , I have built a system where I collect data through Serial VISA block into Labview from sensors that are wired up to my Arduino UNO.

I am building a simple Fuzzy controller that is suppose to control a pump dosing time for the watering of a potted houseplant. When I receive soil Moisture measurements from the soil moisture sensor in the pot the moisture % is used to classify which rule in the fuzzy system is to be used thereby setting the time for how long which the pump is suppose to run.The less percentage that is measured in the pot the longer the pump is going to deliver water to the pot.

I have already built a fuzzy system using National Instrument Guide for Fuzzy systems but I get only zero at the output of the Fuzzy controller block.Please view the attached VI.

I would really appreciate some help and tips. 

Thanks in advance.

 

0 Kudos
Message 1 of 2
(2,710 Views)

 

Is the VISA device an Arduino UNO?  I have done work with LabVIEW and Arduino, but I don't use VISA to talk to it. I use an Arduino toolkit for LabVIEW, which you can find here: https://www.ni.com/en/support/downloads/tools-network/download.labview-hobbyist-toolkit.html

 

 

 

When you run the portion of the code you posted, what happens? Do you get any data back?

0 Kudos
Message 2 of 2
(2,625 Views)