1 / 62

LabVIEW 7.1 寒假短期教學課程

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,

kai-clayton
Télécharger la présentation

LabVIEW 7.1 寒假短期教學課程

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LabVIEW 7.1寒假短期教學課程 歐陽丞修 2006/02/06

  2. LabVIEW簡介 • LabVIEW (Laboratory Virtural Instrument Engineering Workbench ) • 虛擬儀表(VI,Virtual Instrument) • 量測、呈現與分析資料 • G 語言(Graphic Language)

  3. 虛擬儀表 (Virtual Instrument) • Virtual instrument has all main properties of the real one, • being „only” computer program.

  4. Virtual Instrumentation With LabVIEW 人機介面 程式方塊

  5. 開啟LabVIEW • 開始=>程式集=>National Instrument LabVIEW 7.1

  6. 開啟新VI

  7. 人機介面 Front Panel 程式方塊圖 Block Diagram

  8. 建立VI程式 狀態面板 工具面板 控制面板

  9. 工具面版 • Floating Palette • Used to operate and modify front panel and block diagram objects. Automatic Selection Tool Scrolling Tool Breakpoint Tool Probe Tool Color Copy Tool Coloring Tool Operating Tool Positioning/Resizing Tool Labeling Tool Wiring Tool Shortcut Menu Tool

  10. 狀態面版 Run Button Continuous Run Button Abort Execution Pause/Continue Button Text Settings Align Objects Distribute Objects Reorder Resize front panel objects Additional Buttons on the Diagram Toolbar Execution Highlighting Button Step Into Button Step Over Button Step Out Button

  11. LabVIEW介面 • 控制元(Input)與顯示元(Output) Front Panel

  12. Block Diagram 控制元接點 接線 節點 顯示元接點

  13. 程式方塊之接線型式

  14. Wiring Tips – Block Diagram Wiring “Hot Spot” Click To Select Wires Clean Up Wiring Use Automatic Wire Routing

  15. 數值運算

  16. 布林運算

  17. 比較運算

  18. 簡易計算機練習

  19. 簡易計算機練習

  20. 建立子程式(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

  21. Steps to Create a SubVI • Create the Icon • Create the Connector • Assign Terminals • Save the VI • Insert the VI into a Top Level VI

  22. 建立子程式(SubVI)

  23. 建立子程式(SubVI)

  24. 呼叫子程式

  25. 呼叫子程式 若為常數有何好處 SubVI 內容

  26. 呼叫子程式

  27. 架構-迴圈控制

  28. 迴圈種類 i=0; do { … i++; } while (i<10) i=0; while (i<10) { … i++; } • C語言 for (i=0;i<10;i++) { … } For Loop While Loop Do … While Loop

  29. For Loop 次數(N) 目前執行完畢的迴圈數

  30. For Loop for (i=0;i<10;i++) { … } 位移暫存器 (0~N-1)

  31. 位移暫存器

  32. For Loop 結果有何差異??

  33. 目前執行的迴圈次數 狀態接點 While Loop

  34. While Loop i=0; while (i<10) { … i++; } i=-1; do { … i++; } while (i<10)

  35. While Loop 錯誤!! 正確!!

  36. While Loop 等效

  37. 圖形函式

  38. For Loop & While Loop練習

  39. For Loop & While Loop練習

  40. 模擬雜訊

  41. 模擬雜訊

  42. Case structure

  43. Case structure

  44. Case structure if (Number >= 0) then Square Root Value= SQRT (Number) else Square Root Value = -99999 Display Error Message end if

  45. Case structure 應用

  46. Case structure 應用

  47. Formula Node

  48. Formula Node

  49. Formula Node

  50. Sequence Structure Stacked Sequence Structure Flat Sequence Structure

More Related