How+to+use+LabVIEW.ppt_第1页
How+to+use+LabVIEW.ppt_第2页
How+to+use+LabVIEW.ppt_第3页
How+to+use+LabVIEW.ppt_第4页
How+to+use+LabVIEW.ppt_第5页
已阅读5页,还剩33页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、,How to use LabVIEW,February 2011,Contents,What is LabVIEW? How does LabVIEW work? Block diagram Front panel面板 Palettes调色板 Data flow programming. Functions. LabVIEW Programming Structures (Formula, Case structure ) What is a subVI? Using a VI as a subVI. How to use LabVIEW with data acquisition (DAQ

2、) software Measurements and automation explorer (MAX),I. Korolov: How to use LabVIEW,What is LabVIEW?,I. Korolov: How to use LabVIEW,LabVIEW Laboratory Virtual Instrument Engineering Workbench,is a graphical (visual) programming from National istruments (NI). The purpose is automating the usage of p

3、rocessing and measuring equipment in any laboratory setup. Originally released for the Apple Macintosh in 1986, the graphical language at the heart of LabVIEW is called G.,uses icons instead of lines of text to create programs,Dataflow programming language,C language,Cross-platform,The graphical app

4、roach of LabVIEW allows non-programmers to build programs by dragging and dropping virtual representations of lab equipment with which they are already familiar.,Price,LabVIEW Professional Development System,I. Korolov: How to use LabVIEW,Desktop PC,Laptop,PDA,High-Speed Digitizers,High-Resolution D

5、igitizers and DMMs,Multifunction Data Acquisition,Dynamic Signal Acquisition,Digital I/O,Instrument Control,Counter/ Timers,Machine Vision,Motion Control,Distributed I/O and Embedded Control,Laptop PC,PDA,Desktop PC,PXI Modular Instrumentation,Signal Conditioning and Switching,Unit Under Test,LabVIE

6、W,I. Korolov: How to use LabVIEW,How does LabVIEW work?,I. Korolov: How to use LabVIEW,How does LabVIEW work?,I. Korolov: How to use LabVIEW,How does LabVIEW work?,I. Korolov: How to use LabVIEW,Front panel,Block Diagram,Ctrl+E,Block diagram toolbar,Reorder objects,Run,Continuous run,Pause,Stop,Debu

7、gging features,Clean Up diagram,How does LabVIEW work?,I. Korolov: How to use LabVIEW,LabVIEW Front panel,Used to display Controls or Indicators,How does LabVIEW work?,I. Korolov: How to use LabVIEW,LabVIEW Block Diagram,- Actual program - Invisible to user - Read left to right,Example LP,How does L

8、abVIEW work? Palettes,I. Korolov: How to use LabVIEW,Front panel,Controls palette,Tools palette,Block Diagram,How does LabVIEW work? Tools palette,I. Korolov: How to use LabVIEW,Example,Operating Tool Positioning/Resizing Tool Labeling Tool Wiring Tool Shortcut Menu Tool,Floating Palette Used to ope

9、rate and modify front panel and block diagram objects.,Scrolling Tool Breakpoint Tool Probe Tool Color Copy Tool Coloring Tool,Automatic Selection Tool,Data flow programming,I. Korolov: How to use LabVIEW,Data flow programming,I. Korolov: How to use LabVIEW,If you put a control (or indicator) on the

10、 front panel,LabVIEW automatically creates a corresponding control (or indicator) terminal on theBlock Diagram,Example FP TB,Data flow programming. Functions.,I. Korolov: How to use LabVIEW,View as icon,Click and Ctrl+H,“Add” function,wire,Example2,3,Data flow programming. Functions.,I. Korolov: How

11、 to use LabVIEW,Example,Data flow programming. Wires,I. Korolov: How to use LabVIEW,Some of basic wires used in block diagrams,Broken wires,The wire connects more than one data source,You have connected two terminals of different types,Data flow programming. Functions,I. Korolov: How to use LabVIEW,

12、Example,Data flow programming. Functions,I. Korolov: How to use LabVIEW,Polymorphism,Array Arithmetic Operations,Programming structures,I. Korolov: How to use LabVIEW,LabVIEW Programming Structures,I. Korolov: How to use LabVIEW,For loop,Right click,From 0 to N-1,Example For Loop,LabVIEW Programming

13、 Structures,I. Korolov: How to use LabVIEW,While loop,Repeats the sub diagram inside the loop until the conditional terminal receives a particular Boolean value,Auto-indexed tunnel,Loop tunnel,Shift register,Timed While loop,Example WhileL,LabVIEW Programming Structures,I. Korolov: How to use LabVIE

14、W,Case structure,Example,LabVIEW Programming Structures,I. Korolov: How to use LabVIEW,Flat sequence structure,Stacked sequence structure,1,2,3,1,2,3,4,Sequence structures are used to ensure a subdiagram executes after or before another subdiagram,LabVIEW Programming Structures,I. Korolov: How to us

15、e LabVIEW,Use global variables to access and pass data among several VIs,Use local variables to read or write to one of the controls or indicators on the front panel of a VI.,Local variables,Global variables,Example,LabVIEW: Wait statements,I. Korolov: How to use LabVIEW,Wait Until Next ms Multiple

16、function,Wait (ms) function,Pre-loop code,Loop code,LabVIEW: Graphs,I. Korolov: How to use LabVIEW,Waveform Graph Plot an array of numbers against their indices XY Graph Plot one array against another Digital Waveform Graph Plot bits from binary data,Graph properties,Example Graph,LabVIEW: File I/O,

17、I. Korolov: How to use LabVIEW,Write to a File,Read from a File,Writing to LVM file,Reading from LVM file,Write/Read LabVIEW Measurements file,Example File I/O,SubVI,I. Korolov: How to use LabVIEW,What is a subVI? Using a VI as a subVI.,I. Korolov: How to use LabVIEW,What is a subVI? A SubVi is a st

18、and VI that can be called by other VI and it is similar to an individual function.,Advantages Modular Easier to debug Dont have to recreate code Require less memory,What is a subVI? Using a VI as a subVI.,I. Korolov: How to use LabVIEW,How to create a subVI? A SubVi is a stand VI that can be called

19、by other VI and it is similar to an individual function.,Create/Edit the Icon Create the Connector Assign Terminals to controls and indicators Add description (optional) Save the VI Insert the VI into a Top Level VI,1 Create/Edit the Icon,Right-click on the icon in the block diagram or front panel,W

20、hat is a subVI? Using a VI as a subVI.,I. Korolov: How to use LabVIEW,2 Create the Connector Right click on the icon pane (front panel only),3 Assign Terminals to controls and indicators,r,4 Documentation (VI properties),5. Save the VI 6. Insert the VI into a Top Level VI,Example,Data acquisition,I.

21、 Korolov: How to use LabVIEW,How to use LabVIEW with DAQ software,I. Korolov: How to use LabVIEW,Data acquisition (DAQ) Connecting Signals Simple DAQ application,Sensors,Terminal Block,DAQ device,Fundamental task of a DAQ system is to measure or generate real-world physical signals,Measurements and

22、automation explorer (MAX),I. Korolov: How to use LabVIEW,Measurement & Automation Explorer (MAX) provides access to all your NI DAQ, GPIB, IMAQ, IVI, Motion, VISA, and VXI devices. Here can configure your NI hardware and software, add new channels, interfaces, and virtual instruments, execute system

23、 diagnostics, and view the devices and instruments connected to your system.,Configuration tree,Configuration View,Task list,MAX is the primary configuration and testing utility that is available for the DAQ device,MAX,How to use LabVIEW with DAQ software,I. Korolov: How to use LabVIEW,Traditional NI-DAQ Specific VIs for performing: Analog Input Analog Output Digital I/O Counter operations,NI-DAQmx Next generation driver: VIs

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论