np wrote:
> I am currently doing a PID controller program to control a motor.
>
> the program is supposed to acquire and output data from either a
> pci-mio-16e-4 or daq card 1200.
>
> it has 3 main parts:
> 1.the input will be either the function generator VI or just a normal
> setpoint.Then the card will acquire data as feedback(this is connected
> to a tacho).the difference will be the error.
> 2.then the signal will go thru a P,I,D process and the variables are
> changeable.
> 3.then the process signal will output through the card and give
> voltage to the motor.
>
> at the same time there will be a graph and the process goes on and on
> until stop
>
> the problem is the the integral and derivative part doesnt work and
> the program has some bugs that i canno
t figure out.
>
> please help!
> urgent!
>
> regards,
> grays
>
> ------------------------------------------------------------------------
Hi grays,
didn't have to much time, studying your VI. But there are 2 main things you may think about.
Fist, your shift Register isn't initialized, that means the initial condition is not set. If you have a
high power motor and your VI would work mainly, this could be very harmful.
Second, look for PID in help or the examples. There are some different ones, the work and the use basic
funktions. I allready used them successfully.
Rainer