Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Value to 0

Hello LabVIEW users..
I'm measuring flow using a flowmeter sensor and NI 6212. The flowmeter I use is a digital sensor type with a hall effect concept as shown in the attached picture. Everything is ok when the measurement is done, but when there is no flow through the sensor my indicator on the front panel shows the last number when measuring (latching), how do I reset the value to 0, if there is no flow through the sensor?
The code that I made is like the attached image.
Anwar05_2-1632388111653.pngAnwar05_3-1632388139099.pngAnwar05_4-1632388169935.png

I really respect for ur reply..

0 Kudos
Message 1 of 7
(2,303 Views)

Start by asking this question - how can I detect a no-flow condition, such that I'll know if and when I should set the measurement to 0?

 

And here's my answer:  the call to DAQmx Read will return with a timeout error if no pulses are seen in the allotted time.  If you use a *reasonable* timeout error (instead of the 100 seconds you appear to be using now), you can detect it and react appropriately.   Say for example 2 seconds.  If you get an error back, check the error code and if it's a timeout error, you can set your flow rate to 0.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy coming to an end (finally!). Permanent license pricing remains WIP. Tread carefully.
0 Kudos
Message 2 of 7
(2,273 Views)

Hi Kevin
Yes I mean how to detect no flow condition. I've changed the VI by removing the DAQ mx Start and Stop from the While loop. Unfortunately I had a problem with my sensor, now it can't read at all.
I'll let you know the progress, thank you

0 Kudos
Message 3 of 7
(2,249 Views)

I have a flowmeter from Shanghai JSN with type CX-M2, every time we try the VI I made, I blow the flowmeter sensor from the inlet. Yesterday it was still running fine, but when I tried it today it can't work, I don't know what happened even though it didn't fall or anything. I have checked the signal output using an oscilloscope, it is always active high even though the sensor type is hall effect. Any solution for me?

0 Kudos
Message 4 of 7
(2,242 Views)

No, sorry, I'm unfamiliar with the sensor and all the rest of what you're doing.  I only know about the data acq side of things, using NI's counters under DAQmx.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy coming to an end (finally!). Permanent license pricing remains WIP. Tread carefully.
0 Kudos
Message 5 of 7
(2,238 Views)

Hi Kevin Thank You, I think my sensor was damaged due to over flow. 

0 Kudos
Message 6 of 7
(2,216 Views)

Hi Kevin
I think my sensor was damaged due to over flow, Thank u. Perhaps i'll need ur help later.

0 Kudos
Message 7 of 7
(2,216 Views)