Hi all.
I have a motor whereby i need to test its torque and its rotation. The basic operation is that when the motor starts running, the torque transducer and encoder starts measuring together, and when the encoder detects a full rev, everything stops.
For the rotary encoder, i need to read its direction and stop acquisition where it completes a full revolution. I do not have any hardware for me to test yet but i would like to start with the programming of LV first due to timing constraints. I've been reading relevant posts here and examples in LV and i've attached the screenshot of my VI and the task setting in MAX. What i've done is that i've created a task that will read the Ch A, Ch B and Ch I from my encoder. Based on what's depicted in MAX, it seems like i can connect A to the PFI8, pin B to PFI10 pin and I to PFI9 pin.
How should i set:
1) Phase for Z index?
(If i got this correctly from the datasheet of the encoder Ch I would be high for every 1/4 of rev, thus for 1 full rev i should get 4 counts at Ch I right? Based on page 2-93 on the encoder datasheet A and B would be low when I is HIGH, but how do i accomplish detecting a full rev?)
2) Clock settings?
(I guessing it should be referenced to the frequency of the A, B and I signals but i can't seem to find these data from the datasheet)
3) Advanced clock settings?
And for the VI, did i set it up right? I realise the output from the DAQmx READ vi is a dbl array, would that be the position of the encoder or angle in degrees?