Hi. I just started using LabVIEW and I am currently using NI LabVIEW 2013 to control a quadcopter by using keyboard. I can only use certain buttons on my keyboard to toggle the buttons. Is there a way for me to for example use letters "w/a/s/d" to control my buttons?
Thank you 🙂
Solved! Go to Solution.
Use an event structure to detect the Key down and key up events. Look at what key is pressed by the event data node inside the event case.
Use Raloks event structure, then just add a case structure for the different keys.
Remember chars are: w,s,d,f,g,h,j,k,l...............
vkeys are: Up, Down, Ctrl, Return...............
Please keep timeout for event structure, otherwise when no key is pressed and you try to stop the vi, it will not stop.
Ideally, the Stop button should have a value change event case in the structure to handle that.