LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Up/Down Counter

Does anyone have a sample VI of how to do an up/down counter on a PCI
6023e?

Any help is appreciated,

KS


Sent via Deja.com
http://www.deja.com/
0 Kudos
Message 1 of 3
(2,940 Views)
A little more detail is required, your question leaves some of the task undefined. I will give one possible answer:
If you need to count up/down events, counting UP with edges on one line, and DOWN with events on another line, the easiest way is to configure two counters, connect each of the two signals to the SOURCE pins of the two counters, configure both counters for "simple event counting", read the two values and subtract to obtain the net count.
0 Kudos
Message 2 of 3
(2,940 Views)
If you are trying to use the up/down counter to read a quadrature encoder, the program I've attached will help. You can do this with one counter, connect Phase A to the source pin, and Phase B to the up/down pin (DIO6 for counter 0).
0 Kudos
Message 3 of 3
(2,940 Views)