07-19-2005 03:59 AM
07-19-2005 05:23 AM
Hi, again.
I have also two PXI-6025E Multifunction I/O -cards which would maybe more useful with counter outputs.
- Santtu
07-20-2005
03:05 PM
- last edited on
11-17-2025
10:30 AM
by
Content Cleaner
Hi Santtu,
It sounds a lot like you are trying to do something similar to measuring a Quadrature Encoder. When you use a quadrature encoder you actually do something quite similar where you have one signal gate the other signal. What this ultimately means is that you can count the directions that your counts are going in.
Below I've found a few KnowledgeBases and Tutorials that I think might prove helpful. You can always search for more by going to ni.com and using the search field.
Tutorial: Quadrature Encoder / Position Measurement
KnowledgeBase: How Do I Use a Quadrature Encoder with My Data Acquisition Board?
I've also attached an image that shows how to write an application that reads a quadrature encoder or similar object.
Hope this helps you out,
07-21-2005 12:05 AM
07-22-2005
02:10 PM
- last edited on
11-17-2025
10:30 AM
by
Content Cleaner
Hi Santtu,
I think I understand what you are trying to do. Essentially you have two counters, but you want to be able to control their phase relationship to one another. This is definitely possible to do; however, there are not many examples dealing with it.
I did find one Traditional DAQ Example (non- M-Series) that might help you out with this: Twin Pulse Train Generation with Variable Phase Shift Control
Traditional DAQ uses an older API, so I would recommend you look at the attached example over this example. Just wanted to give you more than one option.
As far as it 'counting' up or down, that really would have to be done by a counter input task. Since the input would be the same as that for a quadrature encoder, then you would use the methods described in my previous post. As the output it will simply look like two different counters.
For the best solution though, I went ahead and created an example for you. It shows how to generate 2 different counter pulses that are out of phase with one another by a specified amount of time.
Hope this helps,
06-01-2006 09:59 AM