LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

arrow key function in front panel

Solved!
Go to solution

Hi guys,

 

I want to have a arrow key in the front panel to control the running of a number.

Meaning;

 

If i press the left arrow key, the number decreases and the right arrow key, the opposite happens.

 

I found a arrow design under decorations but unable to edit anything with it.

 

Basically, the arrow key just have to act like a boolean switch.

Once pressed, it lights up and the number runs accordingly and stops when let go.

 

I want to have the arrow keys to make the front panel look more presentable.

Pls do advice me.

 

PLs Note: I'm not using the keyboard to simulate on the front panel. It's purely on front panel.

 

Thks N Rdgs

 

Titano

0 Kudos
Message 1 of 67
(6,310 Views)

So the "arrow keys" you are talking about aren't the arrow keys on the keyboard, but boolean buttons on the front panel?  Then obviously you'll use boolean buttons.  If you want the arrow to appear on them, then you will need to customize the boolean button and apply the arrow image to the button

 

Set up the button action to be "switched while pressed".  If the "left" button is true, then decrement your counter.  If the "right" button is true, the increment your counter.  You'll probably have to play with the speed of your while loop so that the counter changes at the speed you want.  That counter then just feeds an indicator inside the loop.

0 Kudos
Message 2 of 67
(6,301 Views)

Hi,

 

Thx for the reply.

 

I am using boolean switches. BUt I cant seem to customize them.

As per ur reply, I need to import arrow images and place them into the front panel.

HOw about the arrow lighting up when pressed?

Do i probably have to serach for .gif images and place them into the front panel?

 

PLs advice.

 

Thks N Rdgs

 

Titano

0 Kudos
Message 3 of 67
(6,298 Views)

see this.

 

customize the buttons

Somil Gautam
Think Weird
0 Kudos
Message 4 of 67
(6,291 Views)

Hi Somil,

 

Thx for ur reply.

Actually I'm facing difficulties customiizing a button of my preference to act as a boolean switch.

 

I'm having this particular arrow.jpg imported into my front panel. 

Now my concerns for this arrow,

 

1. How to make it work like a boolean switch?

   

    1.1 It lights up when pressed ,runs the command appropriately and does vice versa when let go.

 

I've attached a sample arrow .jpg.

 

Thx N Rdgs

 

Titano 

0 Kudos
Message 5 of 67
(6,284 Views)

Sori, the arrow  image is attched here.

 

 

0 Kudos
Message 6 of 67
(6,281 Views)
i guess you forgot to attach the jpg
Somil Gautam
Think Weird
0 Kudos
Message 7 of 67
(6,280 Views)

Hi Somil,

 

I 've attached  a pic of how i want my arrows to be on the front panel.

Pls do take a look.

 

Thks N Rdgs

 

0 Kudos
Message 8 of 67
(6,274 Views)
Solution
Accepted by topic author Titano

one thing you can do. i should work

 

1. right click the increase button in the VI and select advanced>>customize

2. next a window appears where you can customize the button.

3. right click the button and select import a picture from clipboard>>decal

4. this should look like this (attached)

Somil Gautam
Think Weird
Message 9 of 67
(6,270 Views)


i should work

 


it should workSmiley Wink
Somil Gautam
Think Weird
0 Kudos
Message 10 of 67
(6,268 Views)