08-27-2008 10:41 AM
Hi, i have facing some problem during i upgrade a project. This project is an opened loop system, it only achieved up to controlling the speed of motor, detecting the speed of motor, and switching the direction of motor while controlling the motor (This motor is a 12 VDC motor).
In order to improve the project, closed-loop dc motor control system will be implemented to correct the error of the motor's speed and maintaining the speed for the initial setting. I would like to use PID control method to do the closed loop system. I already installed the PID toolkit V8.2 and control design toolkit V2.1.2, and i'm using DAQ usb 6221, LabVIEW 8.5
Below is my problem.
http://img177.imageshack.us/my.php?image=howtocreatethesetpointnx2.jpg
question: 1. How to generate a icon for set point? my setpoint is duty cycle...
2. How to feedback the output duty cycle to summing junction?
below this is my basic concept
http://img237.imageshack.us/my.php?image=closedloopbz5.jpg
Problem 2:
http://img357.imageshack.us/my.php?image=problem1yk2.jpg
question: Why PID toolkit icon cannot wire to cd series.vi?
Below is my original program...
http://rapidshare.com/files/140538836/pwm_generate-final_PSMII.vi.html
08-28-2008 06:47 PM
Hi Cyrus
Have you had the opportunity to see our developer zone site on the PID toolkit? This article also has sample code at the bottom that may help you in developing your application. I have also linked below knowledge bases regarding setting a point profile and generating a PWM from a digital output line.
PID toolkit
http://zone.ni.com/devzone/cda/tut/p/id/6440
How to generate a set point profile:
http://digital.ni.com/public.nsf/allkb/125F27AC143B6AFD86256C2B0004A4DC?OpenDocument
How to generate a PWM on a digital output line:
http://digital.ni.com/public.nsf/allkb/1561D31534F07D608625727900391114?OpenDocument
Thank You
Eric Reid
08-29-2008 09:51 AM