01-26-2022 02:32 PM
Hi,
Hoping to get help with an issue I'm having. I'm a labview beginner and I'm trying to get flow readings from an RS 257-133 flow meter through a myRIO. I have created a VI that measures the pulses from the turbine through an encoder by counting them. I need to convert this to an outputted flow rate in labview, so I need to measure the frequency. I built on an existing myrio encoder VI from the "myRIO project essentials guide" and I thought maybe inputting the count from the encoder into the express vi "timing and transition measurements" might do it but it does not. Like I said I'm a beginner so have just been trying different things in the hope I get lucky. I've attached the VI I'm working on. Would anyone know how to do this? Thanks
Solved! Go to Solution.
01-26-2022 02:51 PM - edited 01-26-2022 02:53 PM
Hi johnlr,
@johnlr wrote:
I thought maybe inputting the count from the encoder into the express vi "timing and transition measurements" might do it but it does not. Like I said I'm a beginner so have just been trying different things in the hope I get lucky.
To know a pulse frequency you need to know the number of pulse measured within a period of time.
Your loop is already set to iterate at a certain period of time. Now all you need is the number of pulse within that time: it's the difference between previous count and actual count!
Like this:
Edit: there's a small bug, you need to divide that "10ms" by 1000 instead of multiplying to get "0.01s"…
01-27-2022 08:46 AM
Hi GerdW,
Thank you so much for your help. Your solution got me the pulse frequency and then I managed to convert that to a flow rate. I now have the Labview reading the flow meter and giving a calculated flow rate.
Thank you very much again!
johnlr
07-06-2023 06:55 AM - edited 07-06-2023 06:56 AM