08-21-2006 02:10 PM
08-22-2006 10:38 AM
08-22-2006 01:28 PM
Thank you for your interest in helping me. Let me explain what it is I am trying to do. I have a differential encoder that has and A, B and Z (index) with 9000 line counts. I need to run it in quadrature mode, which will give me a 36000 count per revolution. I am using this encoder (a reference encoder if you will) to measure the accuracy of a manufactured magnetic encoder (manufactured encoder) with 88 poles for example. Traditionally, I would do this by making manufactured encoder (88 pole) the gate and the reference encoder (36000 count) the source and do period measuraments of the 88 pole manufactured encoder. To do this I have to convert the reference ecoder to a quadrature TTL pulse train. This has to be done outside of LAB VIEW environment. I am trying to bring this function in to LAB VIEW. When I use LAB VIEW quadrature vi, I no longer get a TTL pulse train, get a count.
So, the way I see it there are two ways to acomplish what I need to do. One, when the manufactured encoder switches from high to low, I can record the count (or position) of the reference encoder. I'm not sure how accurate this will be. Two, I can convert the count (position) of the encoder to a pulse train and use the gate source method to do period measurament.
To answer your other questions, I do not care about direction, idealy I would go through a period every encoder count, I need to run the ecoder in X4 mode.
Thank you,
I've been working on this for some time with no luck.
08-22-2006 02:05 PM
Over the years there have been a lot of threads looking for a way to capture data on every quadrature state change, and it's only recently become convenient as of DAQmx 8.0
Also, there was recently a long thread here about a similar app. The consensus was that the best platform would be an M-series board that's configured to capture on digital state changes. This allows the hardware boards to capture true position from the reference encoder on each transition of the test device. It's sort of like time-stamping the state transitions but is actually position-stamping them. Here's a link.
An alternative using only the 6602 might be to create an external quadrature decode circuit that can be used as a sampling clock. Look for chips with #'s like LS-7083 / LS-7084 I think, or their replacement if they've gone obsolete. The difficulty with using only the 6602 is that you don't get to perform hardware-timed capture of the test devices bits.
-Kevin P.
08-22-2006 03:14 PM
The thread you referenced was not much help. It sounds like I'm further along in doing what he is trying to do. I am using an external quadrature decode circit now (LS7184) with a differential receiver. I am having noise issues and using NI devices seems to take care of that. That is why I am still pursuing this fix. Plus, it is a much cleaner set up and allows me do achive a much higher frequency (I need 3.6 MHz) and the quad chips are not able to handle that kind of frequency.
It sounds like there is no way to prduce a pulse train with the encoder count as the timebase. Is this correct?
I have a M-series card (PCI 6022). Is it capable of doing what I need to do? I am not clear on what my aproach should be. Can you explain in general terms what I'm trying to accomplish with the M-series device. I've been using traditional DAQ and am not too familiar with DAQmx.
08-22-2006 08:14 PM