LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9401 for measuring flow rate

Solved!
Go to solution

Hello everybody

 

I am here looking for a help. I am a beginner through LabView and DAQ equipment.

 

I have a NI 9401 and a flow meter, they are already wired, and it's already counting the edges.

I have the number of pulses/liter, but I need to get the number of edges that were counted per second as well for each loop, like a frequency, to make the conversion through the equation.

 

I do not know if I am doing this in the better manner, so I accept suggestions.

 

Thank you all in advance

 

Greetings from Germany

 

 

 

0 Kudos
Message 1 of 3
(190 Views)
Solution
Accepted by topic author ViniCampos

Hi (und hallo) Vini,

 


@ViniCampos wrote:

I have the number of pulses/liter, but I need to get the number of edges that were counted per second as well for each loop, like a frequency, to make the conversion through the equation.


  • Let the loop iterate once per second.
  • Keep the last counter value in a shift register.
  • Calculate the difference of current and last counter value to get the number of pulses for the last second.
  • Do your conversion to get the flow rate…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(187 Views)

Thank you...

It worked perfectly.

0 Kudos
Message 3 of 3
(114 Views)