Labview Numeric BooleanComparison Structure Array Cluster 2 Labview


大綱 Labview 環境介紹 數值(Numeric) 布林值(Boolean)與比較(Comparison) 結構(Structure) 陣列(Array) 叢集(Cluster) 2

大綱 Labview 環境介紹 數值(Numeric) 布林值(Boolean)與比較(Comparison) 結構(Structure) 陣列(Array) 叢集(Cluster) 3

結構(Structure) 方塊圖功能區面板 ◦ Structures 4

結構(Structure) 5



結構(Structure) For Loop ◦ Add Shift Register 輸入 暫存器 輸出 暫存器 8

結構(Structure) For Loop ◦ 累加計算 sum=1+2+…+n 9


結構(Structure) For Loop ◦ 開啟平行處理 11


結構(Structure) 13

結構(Structure) 14

結構(Structure) While Loop ◦ Add shift Register 15

結構(Structure) Two loops showing the difference between shift registers (A) and tunnels(B) 16

結構(Structure) Converting Tunnels to Shift Registers 17

結構(Structure) For Loop ◦ 有條件停止 18

結構(Structure) Initializing Shift Registers 19

結構(Structure) The Feedback Node 20

結構(Structure) Sequence Structure ◦ Stacked ◦ Flat Stacked Flat 21

結構(Structure) Stacked Sequence Structure ◦ 一連串 作以串連方式表示 22

結構(Structure) Stacked Sequence Structure 23

結構(Structure) Flat Sequence Structure ◦ 一連串 作以平面表示 24


結構(Structure) Case (條件控制)物件 26

結構(Structure) 練習 While/For Loop 27


結構(Structure) Event架構 編輯觸發事件 新增case 複製case 刪除case 29


結構(Structure) Event 結構 31

結構(Structure) Formula Node (程式連結點)物件 32

結構(Structure) Formula Node (程式連結點)物件 33

結構(Structure) if (x >= 0) then y = sqrt(x) else y = -99 end if 34


- Slides: 36