To count the pulses coming from the flow meter, I am
trying to use the Basic Level Trigger Detection VI. The VI that I have
developed is attached with this post.
I am using a modified version of the Basic Level Trigger Detection VI that I found on this Discussion forum. I tested the VI with a simulated square wave signal and it works very fine. But when I try to read the signal from the flow meter, the trigger count keeps resetting, i.e. I see values like 50, 56, 58, 49, 52, 54, 56, 58, 40 ...etc. I could not find out the reason why this was happening.
My main aim is to read the number pulses coming from the flow meter and calculate the flow rate in grams/min. Any help in achieving this will be greatly appreciated.
The details about the flow meter are as follows:
Manufacturer: DEA Engineering
Web site: www.deaengineering.com
Calibration Factor: 51 pulses per CC.
Thank you very much for your reply.
I am attaching the Detect All trigger VI with this post. Please take a look at it and let me know why it keeps re-setting the count.
Meanwhile I replace the DAQmx Express VI with the individual VIs and see if works better for me.
If the Detect All trigger VI can give me an accurate count of the triggers I will not need the counter that is incremented using the Boolean output of the VI.
I will also make the other changes suggested by you.