The same computer can do different jobs because they use different programs, which are created by computer programming languages. In just a few decades, many programming languages have appeared, and a common feature of these programming languages is to create programs in the form of text. Text-based programming requires a large number of programmers, which makes computer programming a career that only a few people can engage in.
LabVIEW, an innovative software product of National Instrument Company (NI), allows graphical programming, abandons obscure text codes, and makes computer programming no longer the patent of a few people. The earliest version of LabVIEW was born in 1986, which is almost synchronized with the earliest version of Windows, which determines that LabVIEW is a multi-platform programming language suitable for different operating systems.
In the early 1980s, NI Company was the main supplier of GPIB bus equipment. Its rich hardware experience and strong demand for software development prompted engineers of NI Company to find a development tool to replace the traditional programming language, thus 1986 LabVIEW appeared. LabVIEW is a special programming language developed by test engineers. Therefore, LabVIEW has distinct industry characteristics and was originally used in the field of testing and measurement. NI company initiated the concept of virtual instrument and put forward the concept of "software is instrument", which gradually became the industry standard.
With the continuous development of LabVIEW, a new version will be released almost every one or two years. The application scope of LabVIEW has covered many fields such as industrial automation, test and measurement, embedded application, motion control, image processing, computer simulation, FPGA and so on. With LabVIEW as the core, different special toolkits and unified graphic programming methods can meet the needs of different technical fields.
The main points of this book
The author of this book has been using LabVIEW as the main programming language for many years, so he pays special attention to the specific application of LabVIEW in the industrial field and the practical programming technology of LabVIEW. Chapter *** 17 of this book is divided into introductory chapter, advanced chapter and engineering application chapter.
Chapter 1~5 is the introduction chapter, which introduces the basic concepts, usage of basic functions and common running structures of LabVIEW, and analyzes the basic data structure and file storage mode of LabVIEW in detail.
Chapter 6~ 1 1 is an advanced chapter, which introduces applications, VI, references, attributes and methods of controls, and the application methods of various advanced controls. Chapter 8 introduces the text programming mode of LabVIEW and the interface between DLL and C language. Chapter 9 introduces MathScript programming technology based on Matlab grammar in detail, and chapter 10 introduces the component programming method of LabVIEW.
Chapter 12~ 17 is engineering application, and the LabVIEW programming technology used in actual engineering development is explained in detail. The contents of computer serial port, parallel port and network communication are analyzed in detail, as well as data recording and monitoring toolkit, database connection toolkit, report generation toolkit, state diagram toolkit and FPGA toolkit. Chapters 13 and 14 introduce the basic principles of data acquisition and common programming methods in detail, especially the application of LabVIEW in real-time systems. Chapter 15 explains the development case of LabVIEW real-time system. Chapter 16 describes the development case of LabVIEW data acquisition system. Chapter 17 explains the development case of FPGA, and uses LabVIEW graphical programming to improve the development efficiency.
Readers of this book
This book can be used as a teaching material and reference book for communication, measurement technology, automatic control and other related courses in colleges and universities, and also as a technical manual for relevant engineers and technicians to design and develop instruments or automatic test systems.
The characteristics of this book
The content of this book is very rich, each chapter uses a large number of examples, and puts forward various solutions to the problems encountered in specific programming practice. On the premise of giving consideration to the introduction of basic knowledge, the advanced programming methods and skills of LabVIEW are deeply discussed.
The purpose of this book is as a practical reference book, focusing on first-line cases from engineering practice. In the process of writing, the author has had full communication with many LabVIEW enthusiasts, and summed up the problems often encountered in the programming process, which is an important content of this book.
This book uses a lot of space, focusing on the application of various special toolkits of NI company, which has certain depth and practical value, and is especially suitable for programmers with a certain foundation. In the basic chapter, although a lot of basic knowledge of LabVIEW is introduced, it still focuses on specific applications, and a large number of routines can be directly used in specific projects.
The advanced part mainly introduces the common programming methods of LabVIEW and the application of state diagram toolkit, and introduces the new object-oriented programming method.
Appendix explanation
Version 8.6 is mainly used when writing this book, but the specific content introduced in the book is not limited to a specific version, so there is no version limit. The case files and related courseware of this book can be downloaded from the website, which is convenient for readers to improve their learning efficiency and teachers to teach. In addition, for more important content, in order to impress readers, we present it in the form of "study notes".
Recognition and division of labor
This book was written by two engineers, Chen Shuxue and Liu Xuan. We have a lot of practical development experience of LabVIEW, and it took several years to write this book. In the process of writing this book, Mr. Zhang Guoqiang gave us great support. He provided us with development hardware, which enabled us to write in a real development environment. It should be said that it would be unthinkable to finish this book without his enthusiastic help. In addition, Li Wei, Zhu Cheng, Chen Hongjun, Huang Beijun, Lu, Zhang Hongliang, Zhao Huichun, Yu Song, Zhou Junjie and Chen Jun participated in the compilation of this book. Because the author of this book is an engineer and is not good at writing, mistakes and omissions in the book are inevitable. Please criticize and correct me. It is our greatest wish to contribute to the promotion and use of LabVIEW in China and help the majority of LabVIEW lovers.