10-28-2009 11:55 PM
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
Solved! Go to Solution.
10-29-2009 12:06 AM
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.
10-29-2009 12:31 AM
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
10-29-2009 12:42 AM
see this.
customize the buttons
10-29-2009 12:52 AM
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
10-29-2009 12:54 AM
Sori, the arrow image is attched here.
10-29-2009 12:55 AM
10-29-2009 01:00 AM
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
10-29-2009 01:05 AM
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)
10-29-2009 01:06 AM
i should work