cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

Keyboard Controls

¡Resuelto!
Ir a solución

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 🙂

0 kudos
Mensaje 1 de 14
6.150 Vistas

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.

0 kudos
Mensaje 2 de 14
6.141 Vistas

Sorry I forgot to attach what I've done

0 kudos
Mensaje 3 de 14
6.137 Vistas
-Also you can try the example provided along with labview for keyboard events.
Go to Help>>Find Examples>>Search for Keyboard.
-Can you post your vi in lv12 (File>>Save for Previous version) because i cannot open your vi.
Thanks
uday
Mensaje 4 de 14
6.117 Vistas

I found the example but I think it wasn't useful for me.. I've attached my vi for lv12. 

 

Thanks! XD

0 kudos
Mensaje 5 de 14
6.104 Vistas
Solución
Aceptado por el autor del tema makewayforkhairil

ASCII from key down.png

 

Example for getting the keys pressed with events.

Mensaje 6 de 14
6.096 Vistas

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...............

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
Mensaje 7 de 14
6.072 Vistas
Please keep timeout for event structure, otherwise when no key is pressed and you try to stop the vi, it will not stop.
Thanks
uday
Mensaje 8 de 14
6.054 Vistas

@udka wrote:
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.

0 kudos
Mensaje 9 de 14
6.033 Vistas

Hey I was wondering where can I get the circled symbol? XD

 

Thank you!original2.PNG

0 kudos
Mensaje 10 de 14
6.003 Vistas