05-30-2013 12:04 PM
Dear members,
for my final project i am making a PID control for a plant.
I am now testing the PWM on the motor 0-255 duty cycle.
Now when I press the stop button which switches when pressed, the program goes crazy.
The motor starts to spin super fast one moment and slow the other moment.. 0-255-0-255-0-255-0.... I expect it is doing?!
Can anyone help me?
You can see the block diagram here:
http://img545.imageshack.us/img545/8666/stopfo.jpg>
Best regards,
Robin
06-01-2013 02:42 PM
What motor controller are you using? Have you checked to see what PWM is being output by the Arduino when you stop the VI?
Give us as much information as you can.
06-06-2013 12:41 PM
dear friend watching your chart, these increasing speed value Knob control, it changes its value at intervals of 1 so your method of control is incremental basic P+I, as surerencia out of the control loop would have to do reset to variable speed control, links of interest attached
http://www.ni.com/pdf/manuals/322192a.pdf
http://www.ni.com/white-paper/3782/en
http://forums.ni.com/t5/LabVIEW/How-to-build-a-PID-controller/td-p/608537