LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure for specific key combos

I am interested in placing a subVI in an event structure. The subVI will allow a user to change specific control setpoints for a seperate application I am running on a cRIO. I do not want to use a button, because these control setpoints should only be changed by specific people. I am interested in doing a CTRL+Button(a)+Button(b) that will register as a user event and execute the subVI. Is this possible. 

 

I have a computer that communates with the cRIO and will be the computer monitoring for the event described. I have everything ready to go. As soon as the subVI is completed, the program will reconnect to the cRIO and load the new information. I really just dont want to use a button.... Smiley Sad

 

Windows 7, LV2011....if that matters. 

0 Kudos
Message 1 of 5
(2,965 Views)

I'm confused. You said you don't want to use a button, but you want to do a CTRL+Button(a)+Button(b). ummm... could you clarify?

0 Kudos
Message 2 of 5
(2,956 Views)
I want a computer keyboard combo similar to ctrl +alt+del. Not a LV button that would be clicked on the FP. I want lv to register a keyboard combo similar to how windows would recognize the combo listed above.
0 Kudos
Message 3 of 5
(2,951 Views)

I think there is an easier way to do this. If someone has a better way I am sure they will reply.

 

But basically it boils down to keeping track of which keys are down.

 

Example_VI_BD.png

=====================
LabVIEW 2012


Message 4 of 5
(2,950 Views)

Thanks Steve! Your example got me going in the right direction. 

 

I used CTRL+ALT+H as my combo. The attached code is how simple it can get. Not sure there is a better way than what I did Smiley Very Happy

0 Kudos
Message 5 of 5
(2,930 Views)