11-18-2009 03:30 PM
Hello everyone,
I have attached a VI called "Buttons.vi" saved as LabVIEW version 8.0. Basically, it contains 6 buttons (up, down, left, right, in, out) that I would like to control with the keyboard's arrows (up, down, left, right) and the Keys "i" and "o" which stand for "in" and "out".
For example, if the user presses the left arrow on the keyboard, I would like the left button to be pressed, etc. I'm using LabVIEW 2009 Student Edition (Mac OS X). PLEASE feel free to modify the attached file or PLEASE give me some advice on how to do it.
Thank you A LOT in advance!!!
11-18-2009 03:35 PM
11-18-2009 03:35 PM
So you basically want us to do all your work for you?
To respond to the keyboard you need to handle the "Key Up"/"Key Down" events. Look up in the Help and the examples on using the Event Structure. Also do a search on this forum, as this question has come up often. That will do exactly what you need. If you get stuck, post back with what you've done and we can provide more assistance.
11-18-2009 04:35 PM
Hint:
Connectivity>Input Device...xxx
Hummer1
11-18-2009 04:48 PM
11-18-2009 05:44 PM
Thank you ALL for your fast reply. I really appreciate it!!!
The problem I have is that I'm using LabVIEW 2009 Student Editions (Mac OS X) and apparently the "Initialize Keyboard.vi"and the "Acquire Input Data.vi" do NOT come standard with the Mac version of LabVIEW 2009. For some reason, some of the VIs and modules ARE supported, but do NOT come standard with the installation DVD. Last week, I contacted NI and they sent me a DVD with the MathScript RT Module (for Mac OS X).It would have been easier to post it online, but they decided to send me a DVD all the way from Ireland (it was free, so I REALLY like NI's customer service).
Is there any other way to capture the keyboard presses without the "Initialize Keyboard.vi"and the "Acquire Input Data.vi" VIs? Can someone PLEASE attach them? I believe LabVIEW is cross-platform so I should be able to use VIs from the Windows version on my Mac as well.
BTW, smercurio_fc I was not expecting for you guys to do all the work. I did see search the forum and found several threads with similar questions, but I guess I did not provide enough details about my situation. I apologize if it sounded like that.
THANKS EVERYONE AGAIN. Support from people like you throughout the last few years has made a HUGE difference!!!