LabVIEW Control Design Toolkit User Manual.pdf

(1217 KB) Pobierz
LabVIEW Control Design Toolkit User Manual
LabVIEW TM
Control Design Toolkit User Manual
Control Design Toolkit User Manual
September 2004 Edition
Part Number 371057B-01
106647607.001.png
Support
Worldwide Technical Support and Product Information
ni.com
National Instruments Corporate Headquarters
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100
Worldwide Offices
Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599,
Canada (Calgary) 403 274 9391, Canada (Ottawa) 613 233 5949, Canada (Québec) 450 510 3055,
Canada (Toronto) 905 785 0085, Canada (Vancouver) 604 685 7530, China 86 21 6555 7838,
Czech Republic 420 224 235 774, Denmark 45 45 76 26 00, Finland 385 0 9 725 725 11,
France 33 0 1 48 14 24 24, Germany 49 0 89 741 31 30, India 91 80 51190000, Israel 972 0 3 6393737,
Italy 39 02 413091, Japan 81 3 5472 2970, Korea 82 02 3451 3400, Malaysia 603 9131 0918,
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 095 783 68 51, Singapore 65 6226 5886,
Slovenia 386 3 425 4200, South Africa 27 0 11 805 8197, Spain 34 91 640 0085, Sweden 46 0 8 587 895 00,
Switzerland 41 56 200 51 51, Taiwan 886 2 2528 7227, Thailand 662 992 7519,
United Kingdom 44 0 1635 523545
For further support information, refer to the Technical Support and Professional Services appendix. To comment
on National Instruments documentation, refer to the National Instruments Web site at ni.com/info and enter
the info code feedback .
© 2004 National Instruments Corporation. All rights reserved.
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.
Trademarks
LabVIEW , National Instruments , National Instruments Alliance Partner , NI , and ni.com are trademarks of National Instruments
Corporation.
Product and company names mentioned herein are trademarks or trade names of their respective companies.
Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have no
agency, partnership, or joint-venture relationship with National Instruments.
Patents
For patents covering National Instruments products, refer to the appropriate location: Help»Patents in your software, the patents.txt file
on your CD, 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.
106647607.002.png
Contents
About This Manual
Conventions ...................................................................................................................xi
Related Documentation..................................................................................................xii
Chapter 1
Introduction to Control Design
Model-Based Control Design Process ...........................................................................1-2
Analyzing and Modeling a Plant .....................................................................1-2
Designing a Controller ....................................................................................1-3
Simulating the Dynamic System .....................................................................1-4
Deploying the Controller .................................................................................1-4
Designing a Controller with the Toolkit ........................................................................1-5
Control Design Assistant .................................................................................1-5
Control Design VIs..........................................................................................1-5
Chapter 2
Creating Dynamic System Models
Introduction to Modeling ...............................................................................................2-2
Linear versus Nonlinear Models .....................................................................2-3
Time-Variant versus Time-Invariant Models ..................................................2-3
Continuous versus Discrete Models ................................................................2-3
LabVIEW Control Design Toolkit Model Representations ............................2-4
RLC Circuit Example ....................................................................................................2-5
Transfer Function Model ...............................................................................................2-5
Creating Transfer Function Models.................................................................2-6
SISO Transfer Function Model.........................................................2-6
MIMO Transfer Function Model ......................................................2-8
Symbolic Transfer Function Model ..................................................2-10
Zero-Pole-Gain Model ...................................................................................................2-11
Creating Zero-Pole-Gain Models ....................................................................2-11
SISO Zero-Pole-Gain Model ............................................................2-12
MIMO Zero-Pole-Gain Model..........................................................2-12
Symbolic Zero-Pole-Gain Model......................................................2-13
© National Instruments Corporation
v
Control Design Toolkit User Manual
106647607.003.png
Contents
State-Space Model......................................................................................................... 2-13
Creating State-Space Models .......................................................................... 2-14
SISO State-Space Model .................................................................. 2-14
MIMO State-Space Model................................................................ 2-15
Symbolic State-Space Model............................................................ 2-16
Model Information......................................................................................................... 2-16
Chapter 3
Model Conversion
Changing System Representation.................................................................................. 3-1
Converting State-Space Models to Transfer Function Models ....................... 3-1
Converting Transfer Function Models to Zero-Pole-Gain Models................. 3-2
Converting Zero-Pole-Gain Models to State-Space Models........................... 3-3
Minimal Realization........................................................................................ 3-4
Converting between Continuous and Discrete Systems ................................................ 3-4
Continuous to Discrete Conversions............................................................... 3-5
Forward Rectangular Method ........................................................... 3-7
Backward Rectangular Method ........................................................ 3-7
Tustin’s Method................................................................................ 3-8
Prewarp Conversion Method ............................................................ 3-9
Zero-Order-Hold and First-Order-Hold Methods............................. 3-10
Z Transform Conversion Method ..................................................... 3-11
Matched Pole Zero Conversion Method........................................... 3-11
Discrete to Continuous Conversions............................................................... 3-11
Discrete to Discrete Conversions .................................................................... 3-12
Chapter 4
Connecting Models
Connecting Models in Series......................................................................................... 4-1
SISO Systems in Series................................................................................... 4-1
MIMO Systems in Series ................................................................................ 4-3
SIMO Systems in Series ................................................................................. 4-4
Appending Models ........................................................................................................ 4-6
Connecting Models in Parallel ...................................................................................... 4-8
Placing Models in a Closed-Loop ................................................................................. 4-11
One Model in a Closed-Loop Configuration .................................................. 4-12
Feedback Connections Undefined .................................................... 4-12
Feedback Connections Defined ........................................................ 4-13
Control Design Toolkit User Manual
vi
ni.com
Zgłoś jeśli naruszono regulamin