02-12-2018 03:15 AM
Hello,
I have an encoder connected to a DAQ NI 6212 to counter 0. The outputs A and B are connected to PFI8 and PFI10, and GND to D GND and + to +5V. For know I am geeting the position of encoder, so when I rotate the encoder I have the current position(like 90,180,360). My encoder does 15 pulses in a rotation.
How can I measure the period between two points, I think I can measure this by taking the time between two points and reset that timer at every pulse. I am new to labview and I am a little bit confused.
Thank you
02-12-2018 09:10 AM
Period measurement is one of the primary abilities your board can perform in hardware. Here's a basic example that can help get you started.
Because your board has 2 counters, one could measure periods while the other measures position. Getting the 2 tasks sync'ed will require a shared "Arm Start trigger", which you can find more info about here on the site now that you know a term to search for.
-Kevin P