LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

PWM vi in LabVIEW Program goes CRAZY when stoping the loop (Arduino toolkit)

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

0 Kudos
Message 1 of 3
(4,370 Views)

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.

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

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

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