LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TO rotate a shaft

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.

0 Kudos
Message 11 of 15
(1,226 Views)

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)

sample.png

best regards
Alexander
0 Kudos
Message 12 of 15
(1,220 Views)

Sure,i will test this.Can i send you a PM pls??

0 Kudos
Message 13 of 15
(1,218 Views)

Hello krupa,

yes.

best regards
Alexander
0 Kudos
Message 14 of 15
(1,214 Views)

latest code attached

0 Kudos
Message 15 of 15
(1,208 Views)