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.
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.