10-01-2012 02:32 AM
I was wondering if it is possible to assign keys to the Pointer Slider. For example, I am able to assign 2 keys ( CURSOR LEFT and CURSOR RIGHT) to a slider and I control it by clicking left and right and the pointer will move side to side. The gauge will move the same way. If the pointer slider is vertical, the gauge won't move. Here's a picture that i would like it to do:
10-01-2012 04:16 AM
You can use "Key Navigation" to define interaction with your front panel element. But this does not provide access "to any key" like e.g. up- or down-key.
So if you want to use those, you have to implement some code (using event structure) doing so.
Norbert
10-01-2012 08:42 PM
Sorry but is there an example that I can work on ?
10-01-2012 08:54 PM
Go to Help >> Find Examples.. Then search for Events. Look at Event Tracking.vi.
Inside the Type Into Me: Key Down? case expand the Event Data Node to get VKey or ScanCode. Those will allow you to identify the arrow keys. In this example you need to give the string control focus before the event structure will capture the keys.
Lynn
10-01-2012 08:58 PM
Also, you can Add a VI KeyDown? event that will work anywhere on the front panel.
Lynn