LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

motor control using pwm,pid

Hi all,

 

Can anyone help with this please.

 

I have a counting circuit from a hall effect sensor and am controlling a motor using a PWM.I am controlling the speed of the motor varying the duty cycle and the motor is wired via solid state relay.these run fine.

What i am trying to do now is connect through a pid as to control the speed of the motor.

My understaning is that the set point is from the duty cycle, the process variable is the feed back from the sensor (rev per min) and the output is back to the motor to increase or decrease speed.

Is this the correct understanding? and if so can you help with setting up.

Attached is my vi.

 

Regards Anthony

 

 

0 Kudos
Message 1 of 2
(3,269 Views)

Continued from here: http://forums.ni.com/t5/LabVIEW/Error-200290-when-running-a-pulse-count-and-pwm-program-together/m-p...

Please look at what I wrote there. You need only one loop. The PID and Counter Write functions should all be inside that same loop, along with the measurement. The PID will do nothing useful outside a loop.

0 Kudos
Message 2 of 2
(3,264 Views)