10-27-2025 11:30 AM
Thanks for your message.
No, I haven’t heard about Mr. Ziegler and Mr. Nichols. Could you please tell me more about their method for determining PID gains?
10-27-2025 01:35 PM
Hi alhabeeb,
@alhabeeb wrote:
No, I haven’t heard about Mr. Ziegler and Mr. Nichols. Could you please tell me more about their method for determining PID gains?
So you don't have any lessons in control theory? But still want to implement a control algorithm?
Why dont you read a book about control theory? (Or atleast some Wikipedia articles?)
10-28-2025 03:17 AM
Dear GredW,
Thank you for your reminder. I areviewed the Ziegler-Nichols method, but I had forgotten the name—my apologies. I was reviewing the method on the NI website https://www.ni.com/en/shop/labview/pid-theory-explained.html?srsltid=AfmBOoqjPlZgjUta3Q7j0VKTFjCHSV9... .
As you know, it suggests setting the I and D gains to zero and then increasing the P gain until the system oscillates consistently. This point gives the critical gain (Kc) and the oscillation period (Pc).
I have two concerns:
I am worried that my system could become unstable and exceed the control limits, even though I have a hardware safety mechanism in place.
How is Pc determined exactly? Do I need to measure the period directly from the oscillation graph, or is there another way to calculate it?
Thank you for your guidance.
10-28-2025 03:31 AM
11-04-2025 11:29 AM
Dear GerdW,
I am trying to determine Kc and Ti from a step response. I am using an open-loop system, as shown in the attached VI, and have conducted two tests, which are detailed in the attached Excel file.
Based on my review of the method, I can calculate the process gain G and the time constant τ:
G = (T_final - T_initial) / (PI_out_final - PI_out_initial)
τ can be determined from the T vs. t graph.
Then, I should be able to calculate Kp and Ti using the formulas:
Kc = ((2ξωₙτ) - 1) / G
Ti = (G * Kc) / (ωₙ² * τ)
However, I do not have the values for ξ or ωₙ .
Am I on the right track?
11-05-2025 03:48 AM
Hi alhabeeb,
I often used step response to determine P gain and I/D gain values from Tu/Tg as explained in this (German) article…
Most often I achieved quite good estimates with only little adjustments on the final PID gains.
11-13-2025 05:24 AM
Dear GredW,
After some tests I found good Kc=2.725 and Tu=475.
One more question please. Since the heater (5.7 kW) cycles on and off, I would like to know how to calculate the energy it adds to the working fluid. Should I calculate the percentage of time it is in the "on" mode relative to the total time? Or there is another way?
Thanks
11-13-2025 12:48 PM
Hi alhabeeb,
@alhabeeb wrote:
Since the heater (5.7 kW) cycles on and off, I would like to know how to calculate the energy it adds to the working fluid. Should I calculate the percentage of time it is in the "on" mode relative to the total time? Or there is another way?
Use a power meter to measure the UI product! (Aka use external hardware.)
Depending on your accuracy requirements you can also estimate the power by just using the percentage value and the nominal power of your heater…
@alhabeeb wrote:
Dear GredW,
Who is Gred?
11-14-2025 04:34 AM
Thanks GerdW and sorry for the mistake.