Hi,
I'm trying to read the pulse width (PW) from my magnetic encoder. The position of the magnet is translated into a pulse with a variable pulse width, ranging from 1 microsecond to 4097 microseconds. To read the position, i wanted to read the pulse width and convert this into rotation in degrees.
As hardware, I use a cDAQ 9172 station with a 9401 in slot 5. As I understand correctly, the clock of the cDAQ 9172 is used as source, and I connected my signal to pin 16 (Ctr 0 Gate) and I'm trying to measure the PW.
I found an example of a VI that is able to measure the pulse width. I attached a oscilloscope to investigate the signal, and I can read the signal and see it variating when I rotate the magnet in the encoder. However, when I measure the pulse width in the VI, it is always around 2 microseconds, independent of the rotation of the magnet.
I attached the VI which I used. What am I doing wrong?