LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fuzzy output always zero if input data is from DAQ, however, wont be zero if I give input variable manually

From picture 1, whenever I run the code, the fuzzy output will always be zero. Then I try to extract the Fuzzy logic part into another new VI, give input value manually and it give me output.

 

So, I assume there is a problem with the DAQ, in picture 2, i replace the daq with one data and run, it works.!!

by the way, the data which is 4 I input is a number that is close to the data that can be output by the daq

 

So, problem with the DAQ, ok, I open it, and run manually, it works , see picture 3.

 

Now, I am confused.my code can work with my manualy input data but cannot work with the data from the DAQ VI?

 

Please help me , big thanks

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

Have you tried adding any probes to the first case where you're seeing the zero value returned? Probing the wire coming out of the DAQ VI, as well as a few going into the fuzzy logic VIs, could help give some more information on where the unexpected data begins to appear.

 

Should you need it, here is some information explaining how to use probes in LabVIEW. Best of luck with your application!

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