LabVIEW基礎課程(一) 參考書籍: LabVIEW for Everyone (Jeffrey Travis/Jim Kring)
CH3 LabVIEW的環境
CH3 LabVIEW的環境
前面板/圖框 前面板(Front Panel)-放置控制元件 圖框(Diagram) 節點 連線
資料連結線
Project
工具列 函式列
下拉式選單 File Edit
工具列 練習
CH4 LabVIEW基礎 (I) <Numeric Control>
數值表示方式(1)
數值表示方式(2) Representation…
布林控制元件
其它控制元件
練習 4.2 建立一個溫度計
CH5 LabVIEW基礎 (II) 建立一個新VI 建立SubVI(子VI) 練習5.3 求平均值
CH6 使用結構(Structures) For Loop While Loop Iteration terminal Conditional terminal Count terminal Shift register Select function Case Structure Selector terminal Dialog box Wait (ms) Flat Sequence Structure Stacked Sequence Structure Formula Node Expression Node Timed Structure
For Loop For i=0 to N-1 Execute Subdiagram
While Loop Do Execute subdiagram While condition is FALSE (Until condition is TRUE)
While Loop特性
練習6-1 Counting the Loops
Shift Registers(位移暫存器)
A While Loop having one shift register with multiple left terminal elements
(Left) Two separate variables (Left) Two separate variables. (Right) Several loop values of one variable
Shift register and tunnel, two different ways of passing data through the walls of a loop
練習6-2
Two loops showing the difference between shift registers (A) and tunnels(B)
Initializing Shift Registers
The Feedback Node
Converting Tunnels to Shift Registers
Case 結構 輸出入連線 增加分支
對話框
Dialog & User Interface
Display Message Express VI
Prompt User Express VI and its configuration dialog
Standard Dialogs: One, Two, and Three Button Dialogs
練習6-3 平方根
Select Function
Sequence Structure Flat Sequence Structure
Sequence Locals
simple example using a Flat Sequence Structureclean
Stacked Sequence equivalent
Timing
Wait & Wait Until Next ms Multiple
Wait vs Wait Until Next ms Multiple
練習6-4
Express Timing Functions -Time Delay
Elapsed Time Express
Timed Structures
Timed Loop structure
Timed Sequence
Formula Node公式節點
Example if (x >= 0) then y = sqrt(x) else y = -99 end if
練習6-5
Expression Node
While Loop + Case Structure
While Loop + Case Structure
While Loop + Case Structure
While Loop + Case Structure
練習6-6 Equations Y1=x1+X2+5 Y2=(mxX)+b
練習6-7.計算機
練習6-8. For/While