LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What I want to do is to move the Slider with for example Cursor Left/Right.

How can I change the keys for moving a slider. Normally you have to push
Cursor Up/Down.
0 Kudos
Message 1 of 7
(2,996 Views)
Hello Emsti

Try to see the enclosed file.

Hope it helps

Pawel
0 Kudos
Message 2 of 7
(2,996 Views)
By default, keys don't move sliders, so you probably want to assign keys to move the slider.

Easiest would be to sense key-down with an event structure. I have attached a very simple demo that moves the slider left and right using the cursor keys.

Another possibility would be to show the digital display of the slide. Once you click inside the digital display, the up/down cursor keys will change the value (no code needed!).
0 Kudos
Message 3 of 7
(2,996 Views)
Thank you for the answer. The problem I have, I'm using the Base of Version 6.0.2.There are no event structures. If I create a vertical slider and it got the focus(e.g. with TAB) I can move them with the cursor Up/Down.I want to change this to cursor Left/Right any ideas??I have no mouse on the target system.Thanks for your ideas.
0 Kudos
Message 4 of 7
(2,996 Views)
Hello

You should say it in the beggining 🙂
Anyways, I gues you need to use a windows-based vi which will tell you what key has been pressed and filter for your keys, running in a loop.
Then use localvariables or property node to change the slider value.

good luck
Pawel
0 Kudos
Message 5 of 7
(2,996 Views)
Thanks for your answer, but I can't open the VI because I'm using 6.0.2. Sorry that was my fault that I don't tell you that in my first posting.
0 Kudos
Message 6 of 7
(2,996 Views)
It does not matter, since I read your other post, where you say you do not have even structure.
According to my last post, try to search for:

LabVIEW Toolbox v1.9
Danny Lauwers
(c) 1994-2000

There is a vi GetKey.vi, which will do what you want.

hope it helps
Pawel
0 Kudos
Message 7 of 7
(2,996 Views)