background image

 

Important Information

Warranty

The media on which you receive National Instruments software are warranted not to fail to execute programming instructions, due to defects 
in materials and workmanship, for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. National 
Instruments will, at its option, repair or replace software media that do not execute programming instructions if National Instruments receives 
notice of such defects during the warranty period. National Instruments does not warrant that the operation of the software shall be 
uninterrupted or error free.

A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside of the package before any 
equipment will be accepted for warranty work. National Instruments will pay the shipping costs of returning to the owner parts which are covered by 
warranty.

National Instruments believes that the information in this document is accurate. The document has been carefully reviewed for technical accuracy. In 
the event that technical or typographical errors exist, National Instruments reserves the right to make changes to subsequent editions of this document 
without prior notice to holders of this edition. The reader should consult National Instruments if errors are suspected. In no event shall National 
Instruments be liable for any damages arising out of or related to this document or the information contained in it.

E

XCEPT

 

AS

 

SPECIFIED

 

HEREIN

, N

ATIONAL

 I

NSTRUMENTS

 

MAKES

 

NO

 

WARRANTIES

EXPRESS

 

OR

 

IMPLIED

AND

 

SPECIFICALLY

 

DISCLAIMS

 

ANY

 

WARRANTY

 

OF

 

MERCHANTABILITY

 

OR

 

FITNESS

 

FOR

 

A

 

PARTICULAR

 

PURPOSE

. C

USTOMER

S

 

RIGHT

 

TO

 

RECOVER

 

DAMAGES

 

CAUSED

 

BY

 

FAULT

 

OR

 

NEGLIGENCE

 

ON

 

THE

 

PART

 

OF

 N

ATIONAL

 

I

NSTRUMENTS

 

SHALL

 

BE

 

LIMITED

 

TO

 

THE

 

AMOUNT

 

THERETOFORE

 

PAID

 

BY

 

THE

 

CUSTOMER

. N

ATIONAL

 I

NSTRUMENTS

 

WILL

 

NOT

 

BE

 

LIABLE

 

FOR

 

DAMAGES

 

RESULTING

 

FROM

 

LOSS

 

OF

 

DATA

PROFITS

USE

 

OF

 

PRODUCTS

OR

 

INCIDENTAL

 

OR

 

CONSEQUENTIAL

 

DAMAGES

EVEN

 

IF

 

ADVISED

 

OF

 

THE

 

POSSIBILITY

 

THEREOF

. This limitation of 

the liability of National Instruments will apply regardless of the form of action, whether in contract or tort, including negligence. Any action against 
National Instruments must be brought within one year after the cause of action accrues. National Instruments shall not be liable for any delay in 
performance due to causes beyond its reasonable control. The warranty provided herein does not cover damages, defects, malfunctions, or service 
failures caused by owner’s failure to follow the National Instruments installation, operation, or maintenance instructions; owner’s modification of the 
product; owner’s abuse, misuse, or negligent acts; and power failure or surges, fire, flood, accident, actions of third parties, or other events outside 
reasonable control.

Copyright

Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, 
recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of National 
Instruments Corporation.

National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other 
intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only 
to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction.

Trademarks

National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the 

Terms of Use

 section 

on

ni.com/legal

 for more information about National Instruments trademarks.

The mark LabWindows is used under a license from Microsoft Corporation. Windows is a registered trademark of Microsoft Corporation in the United 
States and other countries. Other product and company names mentioned herein are trademarks or trade names of their respective companies.

Patents

For patents covering National Instruments products, refer to the appropriate location: 

Help»Patents

 in your software, the 

patents.txt

 file 

on your media, or 

ni.com/patents

.

WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS

(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL OF 
RELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL COMPONENTS IN 
ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN REASONABLY BE EXPECTED TO CAUSE SIGNIFICANT 
INJURY TO A HUMAN.

(2) IN ANY APPLICATION, INCLUDING THE ABOVE, RELIABILITY OF OPERATION OF THE SOFTWARE PRODUCTS CAN BE 
IMPAIRED BY ADVERSE FACTORS, INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL POWER SUPPLY, 
COMPUTER HARDWARE MALFUNCTIONS, COMPUTER OPERATING SYSTEM SOFTWARE FITNESS, FITNESS OF COMPILERS 
AND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION, INSTALLATION ERRORS, SOFTWARE AND HARDWARE 
COMPATIBILITY PROBLEMS, MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING OR CONTROL DEVICES, 
TRANSIENT FAILURES OF ELECTRONIC SYSTEMS (HARDWARE AND/OR SOFTWARE), UNANTICIPATED USES OR MISUSES, OR 
ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER (ADVERSE FACTORS SUCH AS THESE ARE HEREAFTER 
COLLECTIVELY TERMED “SYSTEM FAILURES”). ANY APPLICATION WHERE A SYSTEM FAILURE WOULD CREATE A RISK OF 
HARM TO PROPERTY OR PERSONS (INCLUDING THE RISK OF BODILY INJURY AND DEATH) SHOULD NOT BE RELIANT SOLELY 
UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM FAILURE. TO AVOID DAMAGE, INJURY, OR DEATH, 
THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TO PROTECT AGAINST SYSTEM FAILURES, 
INCLUDING BUT NOT LIMITED TO BACK-UP OR SHUT DOWN MECHANISMS. BECAUSE EACH END-USER SYSTEM IS 
CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS' TESTING PLATFORMS AND BECAUSE A USER OR APPLICATION 
DESIGNER MAY USE NATIONAL INSTRUMENTS PRODUCTS IN COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT 
EVALUATED OR CONTEMPLATED BY NATIONAL INSTRUMENTS, THE USER OR APPLICATION DESIGNER IS ULTIMATELY 
RESPONSIBLE FOR VERIFYING AND VALIDATING THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER 
NATIONAL INSTRUMENTS PRODUCTS ARE INCORPORATED IN A SYSTEM OR APPLICATION, INCLUDING, WITHOUT 
LIMITATION, THE APPROPRIATE DESIGN, PROCESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.

Содержание LabWindows/CVI

Страница 1: ...LabWindows TM CVI TM PID Control Toolkit User Manual LabWindows CVI PID Control Toolkit User Manual May 2008 371685C 01...

Страница 2: ...ebanon 961 0 1 33 28 28 Malaysia 1800 887710 Mexico 01 800 010 0793 Netherlands 31 0 348 433 466 New Zealand 0800 553 322 Norway 47 0 66 90 76 60 Poland 48 22 3390150 Portugal 351 210 311 210 Russia 7...

Страница 3: ...l Instruments Corporation National Instruments respects the intellectual property of others and we ask our users to do the same NI software is protected by copyright and other intellectual property la...

Страница 4: ...gorithm 2 1 Implementing the PID Algorithm with the PID Functions 2 2 Gain Scheduling 2 3 The Precise PID Algorithm 2 4 Error Calculation 2 4 Proportional Action 2 4 Trapezoidal Integration 2 5 The Au...

Страница 5: ...Manual vi ni com Converting between Percentage of Full Scale and Engineering Units 3 9 Using PID on Real Time RT Targets 3 10 Using PID with DAQ Devices 3 10 Appendix A References Appendix B Technical...

Страница 6: ...mation bold Bold text denotes items that you must select or click in the software such as menu items and dialog box options Bold text also denotes parameter names italic Italic text denotes variables...

Страница 7: ...of the PID Control Toolkit Note When you install the PID Control Toolkit your user account must have administrator privileges Complete the following steps to install the PID Control Toolkit 1 Insert...

Страница 8: ...sary information and click Next 5 Check the option if you would like to receive a confirmation email of your activation and click Next 6 After a brief moment you should receive a message indicating wh...

Страница 9: ...ol Toolkit functions with National Instruments hardware to develop LabWindows CVI control applications Use I O hardware such as DAQ devices FieldPoint I O modules or GPIB boards to connect your PC to...

Страница 10: ...on u t as follows In this equation Kc is the controller gain If the error and the controller output have the same range 100 to 100 controller gain is the reciprocal of proportional band Ti is the inte...

Страница 11: ...error as shown in the following formula Trapezoidal Integration Trapezoidal integration is used to avoid sharp changes in integral action when there is a sudden change in the PV or SP Use nonlinear ad...

Страница 12: ...al engineering units If you use engineering units you must adjust the corresponding ranges accordingly The Ti and Td parameters are specified in minutes In manual mode you can change the manual input...

Страница 13: ...rithm described in the Proportional Action section The formula used to calculate derivative action for the precise PID algorithm is the same formula used to calculate derivative action for the fast PI...

Страница 14: ...ror the smaller the integral action as shown in the following formula and in Figure 2 1 Figure 2 1 Nonlinear Multiple for Integral Action SPrng 100 The Autotuning Algorithm Use autotuning to improve p...

Страница 15: ...ng controller is proportional only the autotuning algorithm identifies the ultimate gain Ku and ultimate period Tu If the existing model is PI or PID the autotuning algorithm identifies the dead time...

Страница 16: ...PI 0 18Ku 0 8Tu PID 0 25Ku 0 5Tu 0 12Tu Table 2 3 Tuning Formula under P Only Control Slow Controller Kc Ti Td P 0 13Ku PI 0 13Ku 0 8Tu PID 0 15Ku 0 5Tu 0 12Tu Table 2 4 Tuning Formula under PI or PI...

Страница 17: ...d loop PID control It is not necessary to switch off the existing controller and perform the experiment under open loop conditions In the setpoint relay experiment the SP signal mirrors the SP for the...

Страница 18: ...rocess For example a time constant of 60 s is typical for a temperature control loop in a small system In this case a cycle time of 6 s is sufficient Faster cycling offers no improvement in performanc...

Страница 19: ...dures Closed Loop Ultimate Gain Tuning Procedure Although the closed loop ultimate gain tuning procedure is very accurate you must put your process in steady state oscillation and observe the PV on a...

Страница 20: ...set the output to a nominal operating value and allow the PV to settle completely Record the PV and output values 2 Make a step change in the output Record the new output value 3 Wait for the PV to s...

Страница 21: ...n the system 4 Once the control loop ends call PidDiscard to discard the PID controller and free its resources You can call PidSetAttribute with the pidAttrOutputMin and pidAttrOutputMax attributes to...

Страница 22: ...tem Therefore if correctly sampled any frequency components of the measured signal that are greater than one tenth of the sampling frequency are a result of noise in the measured signal Gains in the P...

Страница 23: ...ide the PV to the controller in a loop and obtain the controller output which is again applied on the system 3 While the PID control loop is being run call PidAutotuneShowDialog if you want to use wiz...

Страница 24: ...the pidGSAttrGainScheduleCriteria attribute to set the gain scheduling criteria Call PidSetGainScheduleAttribute and PidGetGainScheduleAttribute to set and get gain scheduling attributes The pidGSAtt...

Страница 25: ...adLagNextOutput to obtain the output This output is either applied to the system or to the controller based on whether the lead lag is being used as an input or an output filter 3 Once the control loo...

Страница 26: ...ll PidSetRampAttribute to set the ramp generator attributes 3 Use PidRampNextOutput to obtain the output of the ramp in a loop 4 Call PidRampDiscard to discard the ramp generator and release its resou...

Страница 27: ...PID with DAQ Devices This section addresses several important issues you might encounter when you use the DAQ APIs to control actual processes Complete the following steps to use the PID Library with...

Страница 28: ...h a timer construct such as a timer control or asynchronous timer or a while loop with a delay or sleep operation at the end Hardware Timed In hardware timed control loops the timing is controlled by...

Страница 29: ...ocess control programming The Corripio 1990 publication is an ISA Independent Learning Module book It is organized as a self study program covering measurement and control techniques selection of cont...

Страница 30: ...r Standard Service Program Membership This program entitles members to direct access to NI Applications Engineers via phone and email for one to one technical support as well as exclusive access to on...

Страница 31: ...answers you need contact your local office or NI corporate headquarters Phone numbers for our worldwide offices are listed at the front of this manual You also can visit the Worldwide Offices section...

Страница 32: ...is feature B bias The offset added to a controller s output bumpless transfer A process in which the next output always increments from the current output regardless of the current controller output v...

Страница 33: ...ch a measured variable is compared to its desired value to produce an actuating error signal that is acted upon in such a way as to reduce the magnitude of the error feedback loop See closed loop G ga...

Страница 34: ...ain Kc Controller gain L lag A lowpass filter or integrating response with respect to time linearity factor A value ranging from 0 to 1 used to specify the linearity of a calculation A value of 1 indi...

Страница 35: ...is applied to the integral of the error signal and a derivative gain D is applied to the derivative of the error signal The controller output is a linear combination of the three resulting values PID...

Страница 36: ...the controlled process variable span The algebraic difference between the upper and lower range values T time constant T In process instrumentation the value T in minutes in an exponential response te...

Страница 37: ...ning procedure 3 2 control strategy designing 3 1 controller action 2 1 gain 2 1 output 2 2 PID 1 3 conventions used in the manual vii Corripio A B A 1 D DAQ devices using PID with 3 10 derivative act...

Страница 38: ...2 1 controller output 2 2 error calculation 2 2 nonlinear adjustment of integral action 2 2 output limiting 2 3 partial derivative action 2 2 proportional action 2 2 trapezoidal integration 2 2 gain...

Страница 39: ...ements 1 1 T technical support B 1 timing information acquiring 3 1 timing setting 3 1 training and certification NI resources B 1 trapezoidal integration 2 2 2 5 troubleshooting NI resources B 1 tuni...

Отзывы: