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.

Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem resetting CW PID control

I have been using Component Works Autotuning PID control for a temperature
control mechanism. After setting up the control with the appropriate parameters,
calling the control's Reset() method causes an exception to be generated
that reads "Value out of range". It appears to be associated with changing
the minimum setpoint value of the control. This behavior can be reproduced
by modifying the AutotunePID sample that comes with the control. Create a
new method call which first sets an arbitrary new minimum setpoint and then
calls reset as demonstrated below.

m_cCWPID1.SetSetpointMin(5);
m_cCWPID1.Reset();
0 Kudos
Message 1 of 3
(3,642 Views)
Hi Matt,

We have verified this bug and are working on a fix for it. Please reply
directly to me and let me know how critical this fix is to you so I can advise
you on your options.

Best Regards,

Chris Matthews
Measurement Studio PSE

"Matt Flinders" wrote:
>>I have been using Component Works Autotuning PID control for a temperature>control
mechanism. After setting up the control with the appropriate parameters,>calling
the control's Reset() method causes an exception to be generated>that reads
"Value out of range". It appears to be associated with changing>the minimum
setpoint value of the control. This behavior can be reproduced>by modifying
the AutotunePID sample that comes with the control. Create a>new method call
which first se
ts an arbitrary new minimum setpoint and then>calls reset as
demonstrated below. >>m_cCWPID1.SetSetpointMin(5);>m_cCWPID1.Reset();
0 Kudos
Message 2 of 3
(3,642 Views)
The way I've attempted to work around this is by first setting the minimum
setpoint to zero, calling Reset(), and then setting the minimum setpoint
back to what it should be. I'm not sure how the control responds to having
the minimum setpoint changed during cycling (and after calling Reset). I've
also noticed that after calling Reset() the setpoint used by the control
is automatically set to zero.

"Chris Matthews" wrote:
>>Hi Matt,>>We have verified this bug and are working on a fix for it. Please
reply>directly to me and let me know how critical this fix is to you so I
can advise>you on your options.>>Best Regards,>>Chris Matthews>Measurement
Studio PSE>>"Matt Flinders" wrote:>>>I have been
using Comp
onent Works Autotuning PID control for a temperature>control>mechanism.
After setting up the control with the appropriate parameters,>calling>the
control's Reset() method causes an exception to be generated>that reads>"Value
out of range". It appears to be associated with changing>the minimum>setpoint
value of the control. This behavior can be reproduced>by modifying>the AutotunePID
sample that comes with the control. Create a>new method call>which first
sets an arbitrary new minimum setpoint and then>calls reset as>demonstrated
below. >>m_cCWPID1.SetSetpointMin(5);>m_cCWPID1.Reset();
0 Kudos
Message 3 of 3
(3,642 Views)