09-23-2021 04:10 AM
I really respect for ur reply..
09-23-2021 06:35 AM
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
09-27-2021 02:32 AM
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
09-27-2021 09:15 AM
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?
09-27-2021 11:36 AM
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
10-04-2021 09:04 AM
Hi Kevin Thank You, I think my sensor was damaged due to over flow.
10-04-2021 09:06 AM
Hi Kevin
I think my sensor was damaged due to over flow, Thank u. Perhaps i'll need ur help later.