Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

newbie needs help on Quad encoder for cRIO 9421

Hi,
 
When using PCI 4451/4452, we can use the GPCTR0_UP_DOWN Signal and input this signal on the DIO6 pin; this general-purpose counter 0 counts down when the pin is at a logic low and counts up when it is at a logic high.
 
If we are now using cRIO 9421, how do we achieve both the count up and count down capability which can be easily done using DAQmx?
 
Thanks thanks!
 
-Mr Bing
0 Kudos
Message 1 of 3
(3,817 Views)
Mr. Bing,
You can do the UP/DOWN counting programatically. You can modify the examples in this folder for your application C:\Program Files\National Instruments\LabVIEW 7.1\examples\FPGA\Counters\Event Counters. To count UP you can increament as you get the events and to count DOWN you can intialize a numeric control and decreament the value as you get the events.

Ame G.
National Instruments
Message 2 of 3
(3,802 Views)
OIC.. THANK YOU! Smiley Surprised
0 Kudos
Message 3 of 3
(3,795 Views)