LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to simulate Linear incremental encoder from Labview FPGA

Solved!
Go to solution

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.

0 Kudos
Message 1 of 2
(2,683 Views)
Solution
Accepted by topic author Ajeet_Kumar

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.

Message 2 of 2
(2,647 Views)