10-12-2018 02:32 PM
Hey guys. So i'm a bit new to using labview and could really use some help fixing my code. So we are trying to get a working code for reading flow rate from a turbine flow meter, that sends pulses. we measured the approximate amount of pulses per second and came up with a k factor of 6.2 for 5 g/min ( this was baseline flow rate for testing). so the count the pulses per second, converts to min and divides by the k factor to give flow readings. An interesting problem that came out of this was that when we had 5 g/min going through the meter our code was showing, 5 g/min. However, when we increased flow rate to about 7 g/min, the code continued to show 5 g/min. I'm pretty sure this had to do with the fact that all our testing was done according the 5 g/min. but even when we ran 7 g/min, we were counting the same number of pulses in 1 minute, but a different k factor ( because we're dividing pulses/min by 7 now). I don't really know how to account for this in the code. it only seems to work when we put in the unique k factor for that flow rate in the code, but we need to see it change according to varying flow rate. Any suggestion would be greatly appreciated. I have attached a picture of the code.
10-12-2018 03:03 PM
It sounds like you are basing your code on the assumption that pulses/sec correlates directly with flow rate because of a single measured value. Is this actually the case? Check the manual for your flow meter. Is the intended dependence truly pulses/sec? pulse amplitude? pulse width? What are the upper and lower operating limits of the flow meter.
Start by verifying that your approach is correct. After that, upload actual code (or example code). Individual pictures rarely help.
Why use a digital input true/false and shift registers? Why not use an analog input and measure the signal directly? you can easily count the number of peaks.
10-12-2018 06:32 PM
the turbine sends out digital pulses and I believe that is the only way to measure flow rate . there is a display attached to the meter so we can see the flow rate, but we need to monitor from a distance on our computers. Plus we would not even have room to measure analog signals as other sensors are taking up the space on our MyRio. The digial pulses is the easiest thing to measure. the manual is a bit vague and confusing, we were dumped on this project and are trying to figure things out. I will do some more testing and try to see what I can do.
10-13-2018 03:04 PM
Presumably your Flow Meter has outputs that you are reading with something. Can you look at the outputs on an oscilloscope? How do the pulses vary as you change the speed of the device? In particular, what is the value when the device is stopped, or moving very slowly? [Not knowing the particulars of your sensor, I could envision a sensor that transmitted rate using a digitally-coded protocol of some sort].
Can you provide a link to the specifications or manual for this sensor?
Bob Schor
10-14-2018 04:18 AM
10-14-2018 09:42 PM
Here's the manual. Maybe I missed something in here.
10-15-2018 01:24 AM
04-06-2022 01:47 PM
Below is how I did it. Using the shift register, I could subtract previous from the last and get it to work.
04-07-2022 03:19 AM
If you get the same number of pulses/min, the flow information can be in the PWM duty cycle or the voltage of the pulse, check the manual.