05-18-2011 10:17 AM
Hello,
We are now working with a NI USB-6211. We are using it to measure the flow coming from a pomp we've created. The flowmeter gives a square signal between 4 and 0 volts. To measure the flow we have simply counted the number of square signals in our oscilloscope.
The point is that, when we use Labview, in addition of the normal peaks it counts also the noise at the top of the peak (if we introduce a perfect square signal from a signal generator it works perfectly). Is there a way to tell Labview to count only the peaks between, for example, 2 and 3 volts and avoid the noise counting?
Thanks in advance,
Eduardo
05-18-2011 12:14 PM
I think I would use the Threshold VI and make sure that the window size is wide enough so that you only catch the voltage changes
05-18-2011 02:12 PM
Do you have data that I can see so that I could tune something for you?
05-18-2011 05:21 PM
Hello,
I'm not quite sure if the Threshold VI will be useful because all the flutuations (noise) that labview counts are over a value. The Threshold VI counts every peak over the value or only counts one when we go over the threshold value?
Anyway I send you tomorrow what we have implemented so you can take a look.
Thanks,
Eduardo
05-19-2011 04:18 AM
Hello,
I attach you what we have implemented to count the number of square signals. It works properly for perfectly clean signals but counts thousands and thousands when we have some noise. We have already tried to use the Threshold VI but it didn't really work...
Any advice would be really useful.
Thanks,
Eduardo
05-19-2011 06:30 AM
Do you have data that I can use. Something that you have all ready collected so that I can see the noise. I believe that if you set the window width wide enough you should be able to ge tthe threshold vi to only count your peaks.
If this vi generates the data then we are missing the first vi.
05-19-2011 10:21 AM
Hi Dudu07,
First of all, you can activate a Digital Filters with a counter Task (use of PFI lines) on M series Boards. For that i encourage you to read this topic below:
Enabling the Digital Debounce Filters for TIO Devices in NI-DAQmx
http://digital.ni.com/public.nsf/allkb/220083B08217CFD686257131007E5D2C?OpenDocument
Also you can create a lowpass filter to block the transient effects (peak voltage or high frequency), before connecting your signal to the counter input. This allow you to performe better measurement, without counting the transient. You must implement your filter in accordance with the signal being measured.
Best regards,
Rémi D.
National Instruments France