I am having troubles measuring the velocity of my linear encoder with PCI-6220 card. I have read examples that used dx/dt, but I cannot seem to get that to wok-- when I wire that output to a gauge, I get "0". I have also tried using shift registers to store previous data for position & time stamp to calculate changing position / changing time, but the problem with that is I get a lot of NaN & inf values randomly occuring admidst getting velocity readings that are appropriate.
Thanks!