Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Hardware counters/timers on PXI chasis

I am using a PXI 1031 chasis with two 6221 devices in it. I understand that these devices have two hardware counter/timers on them. Hopefully, this is an easy question to answer: How do I use them?
 
I'm trying to write a LabView RT v7.1 program that will count how many times the signal from a digital input goes up or down. I haven't been able to find any helpful examples of this on the boards.
0 Kudos
Message 1 of 3
(3,347 Views)

Hi QXFace,

This shouldn't be a problem for you at all.  The PCI-6221 uses standard DAQmx calls whether you are running LabVIEW RT or LabVIEW for Windows.

When you are in LabVIEW go to Help > Find Examples.  This will open the NI Example Finder.  Then go to Browse > Hardware Input and Output > DAQmx > Counter Measurements > Count Digital Events.  These examples should show you how to easily count your digital lines with your PCI-6221 boards.

Regards,

 
0 Kudos
Message 2 of 3
(3,337 Views)

Otis,

That is exactly the example I was looking for. Thanks for the help.

0 Kudos
Message 3 of 3
(3,335 Views)