09-29-2012 08:37 AM
Hi everyone,
There's a program which when you press the right arrow key on the keyboard, I should get a one; and when you press the left arrow key, I should get a -1. I cannot figure out how to use keyboard in labVIEW and also, how to convert the output of the keys pressed.
Any helps appreciated since I have a little time for doing this.Thanks.
09-29-2012 08:44 AM
Look in the examples for event structure. You can use the Key Down or Key Up event, depending on what you're trying to do. The VKey and Char are available to you to tell you what key was pressed.
09-29-2012 08:46 AM
Thanks for your reply.
This may be a stupid question, but since I'm new here, I dont know what you mean by "event structure"
09-29-2012 08:51 AM
Have you done any of the LabVIEW tutorials? To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. There are also several Technical Resources. You can also take the online courses for free.
With respect to event structures: http://www.ni.com/white-paper/3331/en
09-29-2012 01:43 PM
If you only have an older version of LabVIEW base, you won't have the event structure. You need LabVIEW full or higher.
(LabVIEW 2012 is the first version that includes the events structure in the base version.).