01-03-2008 08:37 AM
01-03-2008 01:36 PM
Hello Wormwood,
In the Simulation - Cascade and Feedforward Surge Tank Level.vi example (Help>>Find Examples>>Browse according to Directory Structure>>control>>pid>>prctrlex.llb), the deadtime is accounted for in the Simulation Loop inside the Plant Simulator.vi. You can double-click on this VI to see that the deadtime is specifically handled through a VI called Shift Register Delay.vi. You could copy this VI and use it in your application.
There is no VI that just handles a first-order lag. The PID Lead-Lag.vi is your best bet, as demonstrated in the Simulation - Cascade and Feedforward Surge Tank Level.vi example. For more information on PID control in LabVIEW, you may want to look at the following resources:
LabVIEW PID Control Toolkit User Manual
PID Theory Explained
PID Control
Best Regards,
T. McCarty
Applications Engineering
01-04-2008 09:23 AM
Wormwood,
The Advanced Control VIs (vi.lib>>Addons>>Control>>Advanced), although are available with the PID Control Toolkit, are deprecated VIs that are shipping with this toolkit to allow back compatibility with previous code. You should use the Control Design and Simulation (CD&SIM) Module 8.5 (Or the Simulation Module 8.2, if you do not have the latest version) to have this capability. You can use those functions for now, but it is not guarantee that they will be support in future versions.
To implement first order transfer function with delay, you can easily implement that with CD&SIM, using the Time Delay in series with a transfer function with first order. That would be the recommended way to implement those functions. Again, notice that the Advanced Control VIs have Transfer Function and Time Delay that you could use, if you can't purchase the CD&SIM module, but they are much difficult to use (you need to wire "initialization" and "dT" signals everywhere in the VI).
Please let me know if you have more questions. I hope this helps!
01-05-2008 06:43 PM
01-07-2008 06:50 PM
01-07-2008 06:51 PM
01-08-2008 04:38 PM