02-20-2013 04:45 PM
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
02-20-2013 05:05 PM
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.