1、外文文献译文设计(论文)题目: 基于LabVIEW综合实验室的设计 专业与班级: 学生姓名: 指导教师: LabVIEW1overviewLabVIEW is a program development environment, by the national instruments (NI) research and development company, similar to the C and BASIC development environment, but with other computer language LabVIEW significant difference is
2、: other computer language is based on the text, and the language code of graphical LabVIEW use scripting language G program, application is in the form of block diagram.A complete, LabVIEW virtual instrument system of open application software development, and use it to form instrument testing syste
3、m and data collecting system can simplify the design procedure. With Visual C+ LabVIEW, Visual Basic,LabWindows/CVI, etc, which adopts different programming language is based on the text language program Code (Code), and abVIEW L is using graphical programming language), Graphic (G instead of the tr
4、aditional diagram of the Code. The Lab VIEW of equipment with the scientists and engineers icon in the habit of basic agreement, this makes the icon programming process and thinking process is very similar.LabVIEW convenient calls Windows DLL and user-defined function in the DLL, LabVIEW also provid
5、es CIN (C) Node with any users can use by C + + language or, if the ANSI C, compiled program modules, makes a open LabVIEW development platform. LabVIEW also directly support dynamic data exchange (DDE), structured query language (SQL), TCP and UDP network protocol. In addition, the LabVIEW also pro
6、vides special used for program development kit, users can easily set breakpoints, dynamic program execution to very intuitive image observation data transmission process, and convenient debug.The operation mechanism is LabVIEW macroeconomic sense is no longer the von neumann traditionally computer s
7、ystem structure of the method. The traditional computer language (such as C) to the order of execution by parallel structure in LabVIEW mechanism; Essentially, it is a kind of control Flow structure with graphical Data Flow pattern (Data Flow Mode), this kind of means to ensure the process of any No
8、de Function in hire those knowledgeable programmers only after all it can only be executed Data.That is to say, in the data flow in the concept of program execution, and it is the data driven by operating system, calculate machine and so on.Since LabVIEW program is data flow driven, data flow design
9、 program, a goal only when its all input can only be effective, And the goal of output only when it is complete. So, in VIEW of the Lab is connected the data flow between nodes function control program execution sequence, and dont like text program execution sequence by rows of constraint. Thus, we
10、can be connected through the rapid development of concise function node applications, even can have multiple data synchronization operation channel, the so-called Multithreading (Multithreading).2Data Storage and Reporting with NI LabVIEWThe continued increase in processing and storage capacity and
11、the decrease of hardware and software costs has resulted in an explosion of collected data being acquired. But while technology is enabling faster and richer data retention, storing, managing, and sharing data remains the real challenge. Traditional software packages tend to take one of two limiting
12、 approaches: 1) they force you into a particular format that is not exchangeable with other applications or users or 2) saving data is left so open ended you waste time trying to determine the best way to organize and save your data to disk so you can share it.NI LabVIEW, designed for the entire eng
13、ineering process, includes built-in functionality to help you easily save data to disk and create professional reports. By providing easy yet robust interfaces for file I/O and reporting, you can make the most of your acquired data to make decisions faster. (1)File I/O Designed Specifically for Engi
14、neering Data Despite the fact that LabVIEW offers a wide variety of file I/O options, these traditional file types rarely meet all the criteria you need in a file format. For example, ASCII files are exchangeable, but are very large and slow to read and write. On the other hand, binary file read and
15、 write speeds can keep up with high-speed hardware, but are difficult to share with others.Because of the drawbacks of traditional file I/O, National Instruments developed the Technical Data Management Streaming (TDMS) file format to meet the specific needs and high demands of engineers and scientis
16、ts. TDMS files are based on the TDM data model for saving well-organized and documented test and measurement data. The TDM data model offers three levels of hierarchy, as shown in Figure 2 file, group, and channel. The file level can contain an unlimited number of groups, and each group can contain
17、and unlimited number of channels. Because of this channel grouping, you can organize your data to make it easier to understand. For example, you may have one group for your raw data and another group for your analyzed data within one file, or you may have multiple groups that correspond to sensor ty
18、pes or locations. DescriptionTitleAuthoretcUUTProcedureNameCommentUnitMax&MinFigure 1. The TDM data model meets the specific requirements of measurement data.Also, you can insert your own custom properties at each of the three levels. Each level accepts an unlimited number of custom-defined attribut
19、es to achieve well-documented and search-ready data files. The descriptive information located in the TDMS file, a key benefit of this model, provides an easy way to document the data much like you would document code. As your documentation requirements increase, you do not have to redesign your app
20、lication, you simply extend the data model to meet your needs.(2)Multiple Easy-to-Use Programming Interfaces Because it was developed to meet the needs of all engineers, TDMS offers ease of use, high-speed streaming, and exchangeability. Like many operations in LabVIEW, you can use multiple interfac
21、es to write TDMS files. You can quickly read and write TDMS files using a virtual instrument (VI) such as the Write To Measurement File Express VI or, for the best performance and customization, use the primitive TDMS VIs from the File I/O palette. Also, when using LabVIEW with NI-DAQmx, you can use
22、 the Configure Logging VI from the DAQ palette or log directly from the NI DAQ Assistant(3)Files Exchangeable with Other Programs such as Microsoft Excel Because you may be required to work in additional applications, TDMS is easily exchangeable across other programs. You can open TDMS files in Micr
23、osoft Excel using the TDM Excel Add-In, which installs with NI software and is available free at . You also can use a C DLL for reading and writing TDMS files in other programming languages. NI is committed to helping you write well-organized and documented data using the TDMS file format, regardles
24、s of which products you use.(4)Custom and Legacy File Format Reading and Writing Although ideally you can choose the file format for each application you work on, you may still be restricted to reading and writing in a custom format due to legacy files or hardware that uses custom formats. Understan
25、ding that many engineers face this challenge, NI developed the DataPlugin technology so that you can use these custom formats in LabVIEW. As seen in Figure 4, a DataPlugin acts as a file parser that tells LabVIEW and other NI software how to read your custom file formats and maps them to the TDM hie
26、rarchy model in memory. Figure 2. Using a DataPlugin, you can map any file format onto the TDM data model.National Instruments provides more than 200 free, downloadable DataPlugins for the most common file formats. For custom formats, you can create your own DataPlugins in LabVIEW and NI DIAdem soft
27、ware using a documented API, or request that an NI expert create a DataPlugin for you. Using DataPlugins, you are no longer limited by custom formats and applications, and have options for how to use your data. 3Organizing and Managing Your Data with DataFinder Technology With many applications, the
28、 amount of data being collected can quickly become overwhelming. Typically, at that point, you might turn to a database to begin storing your data for faster search and trending. National Instruments makes it easy to interact with a database using the LabVIEW Database Connectivity Toolkit by abstrac
29、ting the low-level structured query language (SQL) queries. However, moving your existing data to a database, maintaining the database, and creating applications for accessing data can become extremely costly and time-consuming.In response to this challenge, NI developed NI DataFinder technology, in
30、cluded in the LabVIEW DataFinder Toolkit and DIAdem, for managing test files without the headache and expense of setting up and maintaining a large database. With NI DataFinder, you can perform Internet-like searches across all your data files, regardless of format and location within your company i
31、ntranet. Simply point NI DataFinder to the location of your data files, and within seconds you can search for your files just as you would search for information on the Internet.NI DataFinder automatically builds and maintains an index of all files that meet the file type and location criteria in th
32、e NI DataFinder configuration. You can use properties automatically stored in the NI DataFinder index in query conditions. When a valid data file is created, deleted, or edited, NI DataFinder automatically notices and reindexes the hierarchy and properties of the file. When you save properties not y
33、et in NI DataFinder in a newly created file, these properties are automatically added to the index. NI DataFinder dynamically manages its own data tables and updates them based on file events and the contents of each file. Therefore, unlike many expensive database solutions, you can change and add i
34、nformation as your needs change without redesigning your data management solution. Using the NI DataFinder, you can quickly find trends and correlations in the large amounts of data you have saved during your tests.4.Multiple Programming Approaches in NI LabVIEWNI LabVIEW is a graphical dataflow pro
35、gramming environment. When using dataflow in LabVIEW, you define an execution flow in code by creating diagrams that show how data moves between functions (known as virtual instruments, or VIs). However, with LabVIEW, you can combine multiple programming approaches besides graphical data flow (G) in
36、 a single application. Use this flexibility to select your tool of choice for creating algorithms and solving an infinite variety of engineering problems. (1)Defining Programming Approaches The phrase programming approaches encompasses different languages for programming, models of computation, leve
37、ls of abstraction, methods for interacting with existing code, and ways for representing algorithms. Over the years, National Instruments has added interfaces and methods for communication in LabVIEW to extend the number of approaches that are available.You can write and import multiple approaches i
38、nto the same block diagram as the familiar G dataflow language. LabVIEW compiles all of these approaches for the appropriate hardware target, which can span desktop computers, real-time OSs, field-programmable gate arrays (FPGAs), mobile devices, and embedded processors such as ARM.1(2)Programming i
39、n G Data flow, the fundamental LabVIEW programming method, was the original, and only, programming approach when NI introduced LabVIEW 1.0 in 1986. Unlike sequential-style programming, the flow of data in a dataflow program dictates when, and in what order, operations are executed. In sequential lan
40、guages such as C and C+, the order of the commands in the source code (as opposed to the availability of data) determines the order in which execution will occur.G follows a dataflow model for running functions and primitives, or VIs. A block diagram function or node executes when all its inputs are
41、 available. When a node completes execution, it supplies data to its output terminals and passes the output data to the next node in the dataflow path.Figure 3. A and B are added, and the result is multiplied by C and displayed.The graphical code in Figure 2 shows how a mathematical equation can be
42、represented in G. This diagram consists of two nodes (an add node and a multiply node), and has three numerical inputs (A, B, and C). First, A and B are added. The multiplication node does not execute until both inputs are provided, so it depends on the addition node to complete and provide the resu
43、lt of A + B, at which point it computes the result (A+B)*C.Although it is possible to explicitly define variables in G, one of the most obvious differences between G code and other languages is that the functional equivalent of a traditional variable is a wire. Instead of passing variables between f
44、unctions, wires define the functions to which a value is passed. Other familiar programming concepts such as While Loops, For Loops, conditional code, callback functions, and digital logic are all part of the G dataflow programming language(3)Using Configuration-Based Programming In 2003, National I
45、nstruments released NI LabVIEW 7 Express, which featured Express VIs a new technology designed to further simplify common programming tasks and algorithm creation. Unlike traditional VIs, Express VIs abstracted tasks by offering a configuration-based approach to programming.LabVIEW distinguishes Exp
46、ress VIs with large blue icons. When you place an Express VI on the block diagram, a dialog appears so you can configure how the function executes. After completing the configuration, the LabVIEW development environment writes the necessary code (represented by the Express VI) for you. You can view
47、and modify this code, and you can change the Express VI configuration by simply double-clicking the Express VI icon. Consider the task of reading real-world signals into software for analysis. LabVIEW is designed to make integration with hardware for I/O simple and easy thanks to native drivers and
48、support for thousands of instruments. However, even a task that would otherwise take a handful of VIs to execute can be simplified to a single Express VI. The DAQ Assistance Express VI prompts you to select the channels you want to send and receive I/O to and from, and configure parameters such as s
49、ample rate, terminal configuration, scales, triggering, and synchronization. You also can preview the data within the interface before saving the configuration.Express VIs do not offer the same low-level control as VIs, which is why you may prefer to write the code entirely using VIs. New users interested in learning low-level constructs
版权声明:以上文章中所选用的图片及文字来源于网络以及用户投稿,由于未联系到知识产权人或未发现有关知识产权的登记,如有知识产权人并不愿意我们使用,如有侵权请立即联系:2622162128@qq.com ,我们立即下架或删除。
Copyright© 2022-2024 www.wodocx.com ,All Rights Reserved |陕ICP备19002583号-1
陕公网安备 61072602000132号 违法和不良信息举报:0916-4228922