From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peltier control with PID

Solved!
Go to solution

Hello,

 

I have a Keithley 2400 source-meter, and a Keithley 2010 multimeter. I measure temperature of a water loop with a RTD, and I measure its 4W resisitivity with the K2010.

I can cool and also heat this water loop via a Peltier heat-pump. The applicable range is -1Amp < current < +1 Amp. So I use the Keithley source-meter to drive the Peltier in this range. Negative current cools the water, positive current heats.

 

I have the PID tool-kit with LabView 2011.

My only question is that, if I give  +-1 as range input to the PID.vi, is it a proper way to implement this task?

 

Thanks!

0 Kudos
Message 1 of 7
(3,898 Views)
Solution
Accepted by topic author Blokk

Hi blokk,

 

maybe you should set the output range to [-1...+1]?

Best regards,
GerdW


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

thanks, that was the only question, I did not name it properly, so the output range what I need to set to +-1 Ampere. So this PID.vi actually written in a way, it "knows" positive output will increase the process value, and negative will decrease? (this is what I did not know)

0 Kudos
Message 3 of 7
(3,883 Views)

Hi blokk,

 

"it "knows" positive output will increase the process value, and negative will decrease?"

No, it doesn't know that. But you can change the kp (proportional gain) from positive to negative values to change the PID behaviour...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(3,880 Views)
ok. so this is not implemented in the Pid toolkit. So when the PID vi using negative output, I have to set the Kc to negative. Should I alter the pid.vi inside? Because it should change the sign of Kc as early as it switches range polarity continuously. Strange why this is not implemented in the toolkit...
0 Kudos
Message 5 of 7
(3,866 Views)

Hi blokk,

 

"ok. so this is not implemented in the Pid toolkit. So when the PID vi using negative output, I have to set the Kc to negative. ... Because it should change the sign of Kc as early as it switches range polarity continuously."

You don't need to change anything, when the PID control is running. You have to set the Kc once to the correct value, that's it! Kc is describing the PID behaviour in terms of "higher output results in heating up and lower output means cooling mode"...

 

"Should I alter the pid.vi inside?"

Never ever change vi.lib VIs! If you really want to change them (that isn't needed here!), make a copy of the VI and change the copy!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,861 Views)

okey, thanks for lighting up this for me 🙂 I think I overcomplicated the actual problem in my mind a "bit".

0 Kudos
Message 7 of 7
(3,844 Views)