The LabVIEW style book.pdf
(
12973 KB
)
Pobierz
172814892 UNPDF
Copyright
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks.
Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have
been printed with initial capital letters or in all capitals.
The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty
of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential
damages in connection with or arising out of the use of the information or programs contained herein.
The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales,
which may include electronic versions and/or custom covers and content particular to your business, training goals,
marketing focus, and branding interests. For more information, please contact:
U.S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com
For sales outside the United States, please contact:
International Sales
international@pearsoned.com
Visit us on the Web:
www.prenhallprofessional.com
Library of Congress Cataloging-in-Publication Data:
Blume, Peter A.
The labVIEW style book / Peter A. Blume.
p. cm.
Includes bibliographical references and index.
ISBN 0-13-145835-3 (hardback : alk. paper) 1. Scientific apparatus and instruments—Computer simulation. 2. LabVI
EW. I.
Title.
Q185.B568 2007
005.4'38—dc22
2006035871
Copyright © 2007 Pearson Education, Inc.
All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission
must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission
in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding
permissions, write to:
1
Pearson Education, Inc.
Rights and Contracts Department
One Lake Street
Upper Saddle River, NJ 07458
Fax (201) 236-3290
Text printed in the United States at RR Donnelly in Crawfordsville, Indiana.
First printing, February 2007
Dedication
To the employees of Bloomy Controls who contributed to the evolution of this topic within our organization. To my wife,
Phia, and daughter, Eva, for their patience, love, and support.
2
Contents
Copyright ................................................................................................................................................................. 1
Dedication ............................................................................................................................................................ 2
Foreword .................................................................................................................................................................. 6
Preface
..................................................................................................................................................................... 7
Intended Reader
.................................................................................................................................................. 7
Organization
........................................................................................................................................................ 7
Endnotes
.............................................................................................................................................................. 8
Acknowledgments ................................................................................................................................................... 9
About the Author ................................................................................................................................................... 11
1. The Significance of Style
................................................................................................................................... 12
1.1. Style Significance
........................................................................................................................................ 12
Theorem 1.1
.................................................................................................................................................. 12
Equation 1.1
.................................................................................................................................................. 22
1.2. Style Versus Time Tradeoff
........................................................................................................................ 27
Definition 1.1
................................................................................................................................................. 27
Theorem 1.2
.................................................................................................................................................. 28
2. Prepare for Good Style
...................................................................................................................................... 29
2.1. Specifications
............................................................................................................................................. 29
Theorem 2.1
.................................................................................................................................................. 30
Theorem 2.2
.................................................................................................................................................. 30
2.2. Design
......................................................................................................................................................... 36
2.3. Configure the LabVIEW Environment
........................................................................................................ 39
2.4. Project Organization, File Naming, and Control
........................................................................................ 46
Endnotes
............................................................................................................................................................ 54
3. Front Panel Style
............................................................................................................................................... 56
3.1. Layout
......................................................................................................................................................... 57
3.2. Text
............................................................................................................................................................. 70
3.3. Color
........................................................................................................................................................... 78
3.4. GUI Navigation
........................................................................................................................................... 80
Theorem 3.1
.................................................................................................................................................. 80
3.5. Examples
.................................................................................................................................................... 84
Endnotes
............................................................................................................................................................ 94
4. Block Diagram
................................................................................................................................................... 95
Theorem 4.1
.................................................................................................................................................. 95
4.1. Layout
......................................................................................................................................................... 95
Cohesion Test
................................................................................................................................................ 98
4.2. Wiring
....................................................................................................................................................... 100
4.3. Data Flow
.................................................................................................................................................. 108
4.4. Examples
.................................................................................................................................................. 122
Endnotes
.......................................................................................................................................................... 132
5. Icon and Connector
......................................................................................................................................... 133
5.1. Icon
........................................................................................................................................................... 135
3
5.2. Connector Pane
........................................................................................................................................ 143
5.3. Examples
.................................................................................................................................................. 149
Endnotes
.......................................................................................................................................................... 159
6. Data Structures
................................................................................................................................................ 160
Theorem 6‐1
................................................................................................................................................ 160
6.1. Data Structure Design Methodology
....................................................................................................... 160
6.2. Simple Data Types
.................................................................................................................................... 174
6.3. Data Constructs
........................................................................................................................................ 183
6.4. Examples
.................................................................................................................................................. 195
Endnotes
.......................................................................................................................................................... 203
7. Error Handling
................................................................................................................................................. 204
Theorem 7.1
................................................................................................................................................ 204
7.1. Error Handling Basics
............................................................................................................................... 204
7.2. SubVI Error Handling
................................................................................................................................ 218
7.3. Prioritizing Errors
..................................................................................................................................... 222
7.4. Error Handling Tips
................................................................................................................................... 226
7.5. Examples
.................................................................................................................................................. 230
Endnotes
.......................................................................................................................................................... 238
8. Design Patterns
............................................................................................................................................... 239
8.1. Simple Design Patterns
............................................................................................................................ 241
8.2. State Machines
......................................................................................................................................... 254
8.3. Compound Design Patterns
..................................................................................................................... 266
8.4. Complex Application Frameworks
........................................................................................................... 271
8.5. Examples
.................................................................................................................................................. 284
Endnotes
.......................................................................................................................................................... 294
9. Documentation
............................................................................................................................................... 296
Myth 9.1
...................................................................................................................................................... 296
Theorem 9.1
................................................................................................................................................ 296
9.1. Front Panel Documentation
..................................................................................................................... 297
9.2. Block Diagram
.......................................................................................................................................... 301
9.3. Icon and VI Description
............................................................................................................................ 308
9.4. Online Documentation
............................................................................................................................. 309
9.5. Examples
.................................................................................................................................................. 312
Endnotes
.......................................................................................................................................................... 315
10. Code Reviews
................................................................................................................................................ 316
10.1. Self‐Reviews
........................................................................................................................................... 316
10.2. Peer Reviews
.......................................................................................................................................... 332
Theorem 10.1
.............................................................................................................................................. 332
Endnotes
.......................................................................................................................................................... 336
A. Glossary
........................................................................................................................................................... 338
B. Style Rules Summary
...................................................................................................................................... 354
Chapter 2
......................................................................................................................................................... 354
Chapter 3
......................................................................................................................................................... 354
Chapter 4
......................................................................................................................................................... 356
4
Plik z chomika:
maro.04
Inne pliki z tego folderu:
This Is Marketing by Seth Godin.epub
(2321 KB)
ZRÓWNOWAŻONA KARTA WYNIKÓW.pdf
(356 KB)
dieta dr Grażyna Pająk.pdf
(541 KB)
Michał Pauli - 12 x śmierć(1).pdf
(4034 KB)
Cyceron Marek Tulliusz - Mowy.pdf
(1416 KB)
Inne foldery tego chomika:
Bitcoin
Gry
instrukcje SAP ERP
Lil Peep
Muzyka
Zgłoś jeśli
naruszono regulamin