LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm trying to use DAQmx for simple event counting using PFI8

Hi,
 
I am presently using Traditional DAQ (Legacy) drivers in my software, however I'm in the process of switching over to DAQmx drivers.  Our systems use an E Series DAQ card: PCI-MIO-16XE-10.
 
I use PFI8 along with Counter 0 to do simple event counting.  The signal is connected to PFI8 and as it changes, my counter output either increase or decreases in value.  The attached vi shows how I've done it in the past using the Legacy drivers (top portion of the vi) and how I'm attempting to do it using the DAQmx drivers.  I've combined both versions on the single vi just for illustration purposes - when I do my testing they are on separate vi's.
 
I'd appreciate it if anyone could help me to figure out why my DAQmx version isn't working properly.  Thank you very much!
 
Steve
0 Kudos
Message 1 of 2
(2,653 Views)
Hey Steve,

The DAQmx driver installs several examples into LabVIEW that demonstrate how to implement various event counting applications.  I recommend you look over these and see if any of them accomplish what you're trying to do.  They're usually very simple to understand and well documented, but I'd be happy to help you out with any of them if you had a particular question. 

You can find them in the Example Finder (Help >> Find Examples) in LabVIEW.  Drill down to the following location in the directories:
Hardware Input and Output >> DAQmx >> Counter Measurements >> Count Digital Events

You'll see a number of examples, but I recommend starting with 'Count Digital Events.vi'

Since PFI8 corresponds to CTR0 SRC, make sure you set it to use counter 0.  This should work correctly.
Elijah Kerry
NI Director, Software Community
0 Kudos
Message 2 of 2
(2,634 Views)