Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Encoders On a PCI 6229 Board

Hey everyone,

I am working on a senior design project controlling an inverted pendulum and I have run into a road block. I can read count pulses from my encoder (and display them!!) and on a separate digital channel I can read the directional input (and display it!!) off my decoder. I am currently using the CI CNT EDGE DAQmx VI and it says there is an option for external control of the count direction (up or down). The hardware we are using includes the NI PCI-6229 (M Series) and the SCB-68 connector block. We tried connecting the inputs to the default pins to use for edge counting, according to the LabVIEW Help (Edges: PFI 6, Count Direction: port0/line6), but we haven't been able to change the count direction in this way. Is it possible to use my digital input to tell the software to count up if the digital input is high and count down if it is low????


Eric
EE the way to be.
0 Kudos
Message 1 of 3
(3,469 Views)
Eric,

Try the attached example.

Regards,
Anuj D.
0 Kudos
Message 2 of 3
(3,450 Views)
Hello Eric-

The count direction pin on M Series is different than on E Series. On M Series, the default count direction pin for ctr0 is PFI10 and for ctr1 is PFI11. Can you tell me where in the help it said the count direction should be port0/line6?

I hope this helps!
gus....
0 Kudos
Message 3 of 3
(3,444 Views)