Reading/Writing Integral Value


seth

Recommended Posts

Hi,

Is there a way to read or write the integral value in a DAQFactory PID loop? I am looking to reduce large jumps when initializing a PID loop in-situ by setting the I term before beginning the loop but I do not see a way to do that currently.

Thanks!

Link to comment
Share on other sites

You can use the PID's event to manage the loop.  See section 10.4 for more detail.  You can't change the actual accumulated I parameter from script.  You could, however, set the IntLimit parameter to, say, 1e-9 for an iteration or two after starting and that should essentially reset the accumulated I.  Also note that Reset on SP change will cause the accumulated I to reset whenever the SP changes.  You can just tweak the SP by a very small amount and it will reset the accumulated I.  Of course Reset on Start will do this as well whenever you start the PID loop.

 

Link to comment
Share on other sites

I am looking to do the opposite of reset on start, I want to pre-load a value into the integral before starting the PID loop for a smooth transition. I guess specifically what I am looking for is "bumpless transfer", pre-loading the integral value is one way to accomplish this. If there are other ways to accomplish this in DAQFactory please let me know!

 

Thanks!

Link to comment
Share on other sites

Now that we finally have 20.1 out I expect we will do rapid releases, maybe once a month.  The next one should be within a week.  It will likely be numbered 20.11 and it will include access to the PID integral sum under the variable "IntSum".  It is read/write.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.