LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PIID Auto tuning

Hi GerdW

Thank you for the reply. 

 

Yes i am aware of the polymorphic vi functions, are all the PID vis polymorphic? I have tried to wire my arrays into the auto-tune vis but this did not work. 

0 Kudos
Message 11 of 17
(730 Views)

Hi Andrew,

 

the AutotunePID apparently does not support an array of inputs.

But once you determined your PID gains you can use just one AdvancedPID for your 4 control loops…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 17
(727 Views)

Hi GerdW

 

My system is as follows

 

1) Setpoint is read 

2) Camera takes X and Y centroids (process variable)

3) All variables go into the PID 

4) Output is prouced

5) Output goes to picomotors (in a vector calculation)

6) Mirrors move

7) Repeat 1-6. 

 

In How can I be sure that i am tuning this correctly. I have plotted the setpoint vs the process variable.  

 

Does the Advanced PID vi compare to the others?

0 Kudos
Message 13 of 17
(715 Views)

Hi Andrew,

 


@AndrewIons01 wrote:

My system is as follows

1) Setpoint is read 

2) Camera takes X and Y centroids (process variable)

3) All variables go into the PID 

4) Output is prouced

5) Output goes to picomotors (in a vector calculation)

6) Mirrors move

7) Repeat 1-6. 


This is called a (simple) control loop…

 


@AndrewIons01 wrote:

In How can I be sure that i am tuning this correctly. I have plotted the setpoint vs the process variable.


The tuning is "correct" when your PID loop works as expected ("within expectations and requirements")…

Where did you "plot sp vs pv"?

(You did not provide any code or data so far!)

 


@AndrewIons01 wrote:

Does the Advanced PID vi compare to the others?


Compare to which "others"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 17
(710 Views)

Hi GerdW 

 

I was planning to use the plots as way to visualize the PID performance. I can try (once again to attach the VI)

 

I mean, how does the advanced PID vi compare to the AutotunePID vi and the regular manual control PIDvi.

 

Here is the IV I am working on 

0 Kudos
Message 15 of 17
(701 Views)

Hi Andrew,

 

wow, what a mess…

Have you heard about subVIs and any kind of project structure before?

 

That case structure might look like this:

Much more readable! (Still room for improvements…)

 


@AndrewIons01 wrote:

I was planning to use the plots as way to visualize the PID performance. I can try (once again to attach the VI)

I mean, how does the advanced PID vi compare to the AutotunePID vi and the regular manual control PIDvi.


There are no data in your charts. It would also make sense to plot PID output vs. process value…

 

The AdvancedPID offers more options than the default PID function. Read the help for all its options…

The AutoTunePID has that Autotuning feature built in: it may be useful, but I had never any good results when I tried to use it with our real-life control loops…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 17
(689 Views)

Hi GerdW

 

Thank you for the reply. 

 

I know...…I know..... I know... its a mess and I apologize.

 

Yes i have heard of sub VIs, this would have probably been a better way of going about it while still achieving the same functionality.  

 

Anyway, as for the PID i will tidy up my code and make this much nicer and more readable. 

 

Ok, i will then use use either one of those vis in the code.

 

I do have another question for you, If i get closer to a tuned PID (the pv becomes equal to the setpoint. should the output become closer to 0). 

 

Best Wishes 

Andrew 

 

 

0 Kudos
Message 17 of 17
(678 Views)