Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

incremental encoder: reset counter on pci 6014?

I want to connect an incremental encoder with A, B and Z to a PCI 6014 card. I found some VI's for counting A and B (DAQmx->Counter->Count Digital Events; DAQmx->Counter->Measure Posititon) . However I can't figure out what to do with the Z. Is there a way to reset the counters by Z? (I am using labview 2009)

Thank you very much!

0 Kudos
Message 1 of 4
(6,380 Views)

Hi,

 

take a look in the LabVIEW Help. The CI Angular Encoder has several inputs for the z index: 

CI Angular Encoder.JPG

 

So you have fully control when to reset the counter by the index Z.

 

A good example is "Measure Angular Position.vi".

 

Cheers,

 

Cheggers

Sascha
0 Kudos
Message 2 of 4
(6,366 Views)

Thank you! Unfortunately the VI you suggested ("measure angular position") will not run on the PCI6014 (I can't find the PCI6014 in the list "the following devices can run this example"). So this VI does not work on the PCI6014?

Thank you!

0 Kudos
Message 3 of 4
(6,345 Views)

Sorry, my fault. I didn't see you have an E-Series device.

 

Resetting your counter with a digital trigger is possible for Counter/Timer devices but not for your PCI 6014.

 

You can reset the counter with DAQmx by stopping and starting the task again. You could read your Z index on a digital input, if the input goes high (or low) you could reset the counter.

 

DAQmx: Count Digital Events with Option to Reset Counter

http://decibel.ni.com/content/docs/DOC-6576 

 

I think this is the only way for the PCI 6014. Since you have to go through several software layers, the performance goes down a bit. If it is possible, i would recommend to change to a M-Series device...

 

Cheggers

Sascha
0 Kudos
Message 4 of 4
(6,335 Views)