09-05-2016 02:10 AM
Thanks again for your response.
This is what i posted alreay//In my project i am using CRIO 9073 with NI9237,9401 and 9505.
With this setup,i gotta rotate a shaft connected to it. With my code,i am able to rotate the shaft,control the drive direction but i would like to control the PWM as well.//
The AI is from the Force transducers---I think this should be triggered right when the motor rotates.
There is an Encoder which has Phase A,B and Index outputs.I tried tapping these but i see the index always stays zero.It must increment by 1 for each rotation.
I basically want PWM,DUty Cycle,Encoder,POsition controller,DAQ loops...With these,a closed loop with the shaft and the motor is achieved.
09-05-2016 02:56 AM
Hello krupa,
if you want to detect the index or the A or B line you have to implement this on the FPGA in a way like this (not tested)
09-05-2016 03:03 AM
Sure,i will test this.Can i send you a PM pls??
09-05-2016 03:38 AM
09-05-2016 03:48 AM
latest code attached