LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tuning PID - Temperature


Hi all i've been woking on a temperature PID controller in order to cool/thermal box a through a fan(controls air flow of a compressor) and a peltier element

Before the actual control my box drives off unwanted moisture and volatiles( "inicio" and "defrost" process)

 

the peltier element has a fixed power within a temperature range

from -10 up to 0 ---- 2.4V .

From 0 up to 35 --- 5.5V

and above 35 degress --- 8V

 

i recorded temperature deviation on manual mode setting  99% PWM output at a 445ms per sample . Afterwards i removed the offset data and i used PID tuning . Allthough it's identified a first order model ,PID gains are so low compared to what it has to be. why?

 

 

0 Kudos
Message 1 of 4
(2,315 Views)

Hi Luiz,

 

your two Matlab/Simulink images show a very different time scale: one is in ms, the other in s. When x axis is in s then you get very low Kp and high Ti values…

 

In your Excel sheet you forgot to include units at all, so it will be of no help either!

 

On your VI: it greatly improves after using AutoCleanup. Why don't you use Autocleanup?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,280 Views)

Hi GerdW! thanks for answering. 

Infact time scale was wrong! Now step response actually meets what was on excel data. 

even so I'm still getting low gain values . I wonder why...

 

what I am trying to do is run the analysis of the system plan by raising the response curves for PWM 99% 80% and 60% to perform a mean between the plants and verify the best gain for the system. PID controls the fan while peliter maintain its power fixed on different ranges of temperature

 

 

 i'll make sure to use autocleaner afterwards... 

Download All
0 Kudos
Message 3 of 4
(2,261 Views)

Hi Luiz,

 

even so I'm still getting low gain values . I wonder why...

Kp is the relation between change of PID output value and corresponding change of pv: both changes are rather small in your image…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,241 Views)