01-26-2010 01:43 PM
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!
01-27-2010 04:32 AM
Hi,
take a look in the LabVIEW Help. The CI Angular Encoder has several inputs for the z index:
So you have fully control when to reset the counter by the index Z.
A good example is "Measure Angular Position.vi".
Cheers,
Cheggers
01-28-2010 07:54 AM
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!
01-29-2010 09:12 AM
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