請問我要如何知到tab頁面下我有哪些變數,我滑鼠點到那個變數,會顯示變數名稱
謝謝
請問我要如何知到tab頁面下我有哪些變數,我滑鼠點到那個變數,會顯示變數名稱
謝謝
方法 1.
Tab Control 按滑鼠右鍵 Create → Property Node → Value
在Property Node → Value輸出端 Create 一個 Numeric Indicator物件
將 Numeric Indicator連接到 Property Node → Value 的輸出端
Indicator 表示 Tab Control 的 Index (Value 輸出也就是顯示Page的 Index)
方法 2.
Tab Control 按滑鼠右鍵 Create → reference
在 reference 物件右邊輸出 按滑鼠右鍵 Create → Property for Tab Control (string) Class → Value
在 Property for Tab Control (string) Class → Value 的輸出端 按滑鼠右鍵 Create 一個 Indicator物件 (Enum)
也就是 顯示 Page Display (Enum 物件)
[QUOTE=black12345]
請問我照你的方式做了一次位什麼資料進不去EVENT裡面,一直search到-1,然後錯誤
[/QUOTE]
1. 你的變數值沒改變 只切換頁面 EVENT 觸發 執行判斷比對變數值時 都一樣所以是 -1
2. 錯誤訊息
是因為在 Tab Control 裡Controls on Page[ ] 變數值物件 的 INDEX 沒有 -1.所以加個 case 判斷處理就可以了.
Search 1D Array 判斷值 = -1 時, 我沒處理所以就出現 Error 1055 Property Node in Tab Control Example.vi
JD41778.3552314815