LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get encoder two channels pulse/count(FPAG-REAL TIME)

hello to all!

i am new in the FPGA and the Real Time

I am trying to get the number of pulses from my quadrature encoder using a cRIO so I can afterward calculate the number of turns in the motor. I have found some examples but even after applying them, the numbers I get don't seem logic and the calculation of motor turns in Labview doesn't concurs with the actual motor speed. 

 

im uploading the codes

 

Thanks for helping!

Download All
0 Kudos
Message 1 of 2
(2,023 Views)

Hello,

your Timed Loop operates every 1'000 ticks of 1kHz clock which is once per second. Besides, "Close FPGA Ref" function should be executed when you leave the loop. Currently, the FPGA vi is closed after the first iteration.

I would recommend you also looking at the NI examples for FPGA programming, searching for some videos on youtube or taking FPGA training.

Best regards,

Anna

 

0 Kudos
Message 2 of 2
(1,976 Views)