Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Dodgy counter on 6023E multifunction DAQ card

Hi All.

I think the counters on my 6023E MultiFunction DAQ card are not working correctly. I have a flowmeter, TTL compatible square wave pulsed output from which I want to simply count the number of pulses. But the counter is counting roughly twice the pulses I am expecting, with significant variation. I wired the flowmeter output to the ADC and verified that the signal is approximately 9Hz. But the counter indicates roughly 20Hz. The square wave signal is 0 - 3.14V. I ran the online E series device diagnostic test and failed the single shot pulse width verification, and also failed the buffered analog input test. Does anybody have any ideas what might be my problem? I have attached the report file from the dia
gnostic test.
0 Kudos
Message 1 of 3
(2,581 Views)
Jegga,

Thank you for contacting National Instruments.

The Online E-Series Diagnostic has been known to falsely produce the errors you are experiencing. Further testing of your board's counters is necessary.

If you have not already tried this, launch Measurement Automation Explorer (MAX) to test your card's counters. If you are using Traditional DAQ, open a test panel for your card by right clicking the device and selecting Test Panels. If you are using DAQmx, you will need to create a Counter Input >> Edge Count Task by right clicking Data Neighborhood and selecting Create New.

In the case of Traditional DAQ, select the Counter I/O tab within the test panel. Change the counter mode to Simple Event Counting and select Counter Source Pin as the
Event Source.

In the case of DAQmx, once you have created a Counter Input >> Edge Count Task, set the Active Edge to rising and the Count Direction to Count Up.

In both cases, run the test/task and manually apply pulses to the Counter Source Pin on your DAQ card. Observe the Counter Value in the test panel. It should increment by one for every pulse, in which case, your counters are functioning correctly.

If you determine that your counters are functioning correctly in MAX, check to ensure that you are not counting rising and falling edges in your original application. That may be the reason your counter values are consistently double the number of pulses you apply.

If this does not help or you have any further questions, let me know.

Matthew C
Applications Engineer
National Instruments
Message 2 of 3
(2,581 Views)
Matthew,

Since I posted this message, I have thoroughly tested the counters and verified that they are in fact operating correctly. We now suspect the problem is in fact that the rise time of the signal from the flowmeter is not fast enough. I believe the maximum rise time allowed for a TTL signal is 50ns, however the rise time of our flowmeter signal is more like 300ns. We have ordered a schmitt trigger IC which should hopefully solve this problem.
0 Kudos
Message 3 of 3
(2,581 Views)