01-08-2015 12:32 AM
Hi All,
I am using NI 7851-R FPGA card for simulating the linear incremental encoder. I want to generate the A and B pulse from the card to simulate the Linear incremental encoder functionality according to distance.
I don't know how to do that so please help me for the same.
Solved! Go to Solution.
01-08-2015 11:25 AM
Have you tried writing any code yet? Why not start by generating just the A channel? This is a matter of turning a digital channel on and off at regular intervals - a PWM with 50% duty cycle. I think you can find examples of PWM generation either included with LabVIEW, or on this forum. Then, to generate the B channel, you need the same code, but with the starting point offset by 1/4 of the period. Once that works, you simply need to limit the number of periods output based on the "distance" traveled.
Look through the examples, write some code, and see how far you can get. When you get stuck, post the code you've written in this thread, and explain the problem you encountered.