NI產品與技術 討論區

cancel
Showing results for 
Search instead for 
Did you mean: 

如何偵測鍵盤的按鍵

請問如何偵測鍵盤的按鍵
 
因為我想做個小東西~想要利用labview7.1偵測鍵盤的按鍵
 
請幫忙一下~謝謝!!!
0 Kudos
Message 1 of 9
(7,417 Views)
Use Initialize Keyboard, Acquire Input Data and Close Input Device found under Functions Palette > Advanced > Input Device Control
 
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 9
(7,411 Views)
謝謝您了!!!我試試!!!
0 Kudos
Message 3 of 9
(7,408 Views)
請問~如果是偵測abcd此類的按鍵~也是如此使用嗎?
0 Kudos
Message 4 of 9
(7,407 Views)

tcvsie 您好,

 

您可以使用 NI Example Finder (Help-> Find Examples...) 來尋找相關的範例

將頁面選擇到"Search"

"Enter keyword(s)" 處請輸入keyboard 即可找到相關的範例

建議您可以先參考 "Basic Input Demo.vi"

這個範例程式介紹了如何偵測搖桿.鍵盤與滑鼠 方法是透過 Call Library (dll)

您可以把鍵盤的那一部份結合至您的程式內

 

以上資訊提供您參考

若有任何問題 歡迎再進一步提出討論

謝謝

Jimmy Ko
0 Kudos
Message 5 of 9
(7,406 Views)

Yes. It should works the same. If you click on any of the elements (in the array of enum), you will see the available keys for detection.

The simpler way is to just index (0) the Acquired Input Data.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 6 of 9
(7,402 Views)
謝謝各位的指點!!!
0 Kudos
Message 7 of 9
(7,396 Views)

請問各位,他是擷取內碼嗎??

還是???

我想知道他是利用什麼方法擷取的

謝謝各位的回答

 

因為我看他有如附件這個,我不知這是幹麻用的

因為也沒看到他也連接線

只是參考表嗎?

0 Kudos
Message 8 of 9
(7,382 Views)
問題已解決,謝謝各位的幫忙‧
0 Kudos
Message 9 of 9
(7,376 Views)