Dear all,
I am currently trying to figure out how to timestamp each rising edge of a TTL signal. I have a magnetic rotary encoder with 1024pulses per revolution, outputting 2 TTL signals and a reference pulse once every revolution. My measurement setup consists of PXI with a NI6608 card. I have wired the TTL signals to the CTR0 Gate and CTR1 Gate (PFI38 and PFI34).
My main task is to measure the rotational speed with the best possible accuracy, and hence I would like to "timestamp" each rising edge based on the 80Mhz Clock, although I still have no idea how to do this. I currently imagine the solution being:
-create a counter based on the 80Mhz clock
-write counter to buffer for each rising edge
-output & clear buffer each 10ms
The maximum frequency of my TTL signal will be ~110kHz. Looking forward to your help!
With best regards,
Ben