labview 7.1 寒假短期教學課程
DESCRIPTION
LabVIEW 7.1 寒假短期教學課程. 歐陽丞修. 2006/02/06. LabVIEW 簡介. LabVIEW (Laboratory Virtural Instrument Engineering Workbench ) 虛擬儀表 (VI,Virtual Instrument) 量測 、 呈現與分析資料 G 語言 (Graphic Language). 虛擬儀表 (Virtual Instrument). Virtual instrument has all main properties of the real one, - PowerPoint PPT PresentationTRANSCRIPT
寒假短期訓練課程Lab 303
2
LabVIEW 7.1
LabVIEW 簡介
LabVIEW (Laboratory Virtural Instrument Engineering Workbench )
虛擬儀表 (VI,Virtual Instrument) 量測、呈現與分析資料 G 語言 (Graphic Language)
寒假短期訓練課程Lab 303
3
LabVIEW 7.1
虛擬儀表 (Virtual Instrument)• Virtual instrument has all main properties of the real one, being „only” computer program.
寒假短期訓練課程Lab 303
9
LabVIEW 7.1
Operating Tool
Positioning/Resizing Tool
Labeling Tool
Wiring Tool
Shortcut Menu Tool
• Floating Palette• Used to operate and modify
front panel and block diagram objects.
Scrolling Tool
Breakpoint Tool
Probe Tool
Color Copy Tool
Coloring Tool
工具面版
Automatic Selection Tool
寒假短期訓練課程Lab 303
10
LabVIEW 7.1
Run Button
Continuous Run Button
Abort Execution
Pause/Continue Button
Text Settings
Align Objects
Distribute Objects
Reorder
Resize front panel objects
Execution Highlighting Button Step Into Button
Step Over Button
Step Out Button
Additional Buttons on the Diagram Toolbar
狀態面版
寒假短期訓練課程Lab 303
13
LabVIEW 7.1
程式方塊之接線型式
Floating-point Number
橘色
Interger Number 藍色
Boolean 綠色
String 粉紅色
寒假短期訓練課程Lab 303
14
LabVIEW 7.1
Wiring Tips – Block Diagram
Wiring “Hot Spot”
Clean Up Wiring
Use Automatic Wire Routing
Click To Select Wires
寒假短期訓練課程Lab 303
20
LabVIEW 7.1
建立子程式 (SubVIs)
A SubVI is a VI that can be used within another VI
Similar to a subroutine Advantages
Modular Easier to debug Don’t have to recreate code Require less memory
寒假短期訓練課程Lab 303
21
LabVIEW 7.1
Steps to Create a SubVI
Create the Icon Create the Connector Assign Terminals Save the VI Insert the VI into a Top Level VI
寒假短期訓練課程Lab 303
28
LabVIEW 7.1
迴圈種類 C語言 for (i=0;i<10;i++)
{
…
}
i=0; while (i<10) { … i++; }
For Loop While Loop
i=0; do { … i++; } while (i<10)
Do … While Loop
寒假短期訓練課程Lab 303
34
LabVIEW 7.1
While Loopi=0; while (i<10) { … i++; }
i=-1; do { … i++; } while (i<10)
寒假短期訓練課程Lab 303
44
LabVIEW 7.1
Case structure
if (Number >= 0) then Square Root Value= SQRT (Number)else Square Root Value = -99999 Display Error Messageend if
寒假短期訓練課程Lab 303
50
LabVIEW 7.1
Sequence Structure
Stacked Sequence Structure Flat Sequence Structure
寒假短期訓練課程Lab 303
55
LabVIEW 7.1
Adding an ArrayFrom the Controls >> All Controls >> Array and
Cluster subpalette, select the Array Shell
Drop it on the screen.
寒假短期訓練課程Lab 303
56
LabVIEW 7.1
Adding an Array (cont.)
Place data object into shell (i.e. Numeric Control)