LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simulation of keyboard events (eg shortcuts)

Hi, I am not very familiar with labview. but what i am trying to do is this. I want to simulate an event such as CAPS in labview. On clicking the button in labview, i should be able to simulate the event without using the keyboard.This should happen real time. I had done the codes, but i am confused about using what kind of loops would make it works.
 
I have tried using time control loop(but there is delay), however, i need the efftects to be real time. I tired using while loop and true/false loop to no avail. Can some1 help me?
 
I have added an attachment of my vi.(cant work in true/false loop)
 
khsay
 
0 Kudos
Message 1 of 2
(2,547 Views)

Hi khsay!

If you are using Windows as OS you can never get your application to run in realtime, you have to use LV Realtime to do that.
If you use the event structur i a while loop you get as close as possible, i think.

I have modified your caps.vi so it reacts on booth CAPS button and CAPS key on the keyboard.

Hope this helps!

Regards

/Thomas

0 Kudos
Message 2 of 2
(2,520 Views)