LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LED Button Question

Dear tst
your post No 15:
 
1. Open the control you want to change and a square LED and a square OK button.  DONE
2. Customize the LED. In this screen you have a button with an icon of a wrench.      DONE
3. This allows you to edit individual parts of each control. If you right click on the LED, you can copy the image to the clipboard. DONE
4. Now, close this control and customize your control.  DONE
5. Click the wrence again and you can import the picture of the square LED you copied into the clipboard.  HOW ???
I tired several way. It either creates Decoration graphics or changes the graphics of the button itself. So my button looks like LED. I can not add additional graphics.
Am I missing something?
 
Thank you
0 Kudos
Message 31 of 41
(1,784 Views)

The trick is in the second part of step 5. After you click the wrench, you can right click any image and (if you have an image in the clipboard), replace it with the one from the clipboard (import...).

Like I said, since there is a way to customize 2 controls at the same time, step 4 is unnecessary.


___________________
Try to take over the world!
0 Kudos
Message 32 of 41
(1,780 Views)

Dear tst,

>The trick is in the second part of step 5. After you click the wrench, you can right click any image and (if you have an image in the clipboard), replace it with the one from the clipboard (import...).

I do exactly step by step you described however all what it does is just creating a decoration image which doesn't have several states and is not changing when I press button.

i do:

1. place OK button and LED on my VI
2. Advanced->Customize separately them
3. LED in Edit Mode, right click on image and Copy to Clipboard
4. OK button in Edit Mode, Right Click ->Import Picture. This changes on of the pictures of the button itself. if I just Edit->Paste it inserts just decoration.

What is wrong in my steps?

 

0 Kudos
Message 33 of 41
(1,776 Views)
Each face of the button is a single graphic image, but you possibilities are endless. You can freely determine what is on that image.
 
Once face could contain an image of a green LED + some text + the picture of an elephant, all in a single picture. The other face could have a picture of a red LED + some different text + the picture of a crocodile.
 
Get the picture ;)?
0 Kudos
Message 34 of 41
(1,775 Views)
 
To altenbach,
 
>Once face could contain an image of a green LED + some text + the picture of an elephant, all in a single picture. The other face could have a picture of a red LED + some different text + the picture of a
>crocodile.
 
Sorry but I do not what this. I whant to have separate Multiple Dependent Graphics as in example: button.ctl
 
Thanks
 
0 Kudos
Message 35 of 41
(1,776 Views)

I think I understand.

In this case, the trick is once again in right clicking the image. When you do, you will see a menu option called Picture Item. Each element in a boolean actually has four images (the last two are for transition states where you hold the mouse down). What you need to do is to select and replace each image individually. Replace the first one (import...), then go to the third and replace it as well. Then copy the False image and replace the second and fourth.


___________________
Try to take over the world!
0 Kudos
Message 36 of 41
(1,766 Views)

To tst

>In this case, the trick is once again in right clicking the image. When you do, you will see a menu option called Picture Item.

This is the main problem... I do not have image there.... in my Button control I have only one image... it is button itself.
How can I add second image there, with Picture Item? All what I can do it is to add image but without Picture Item, like decoration.

 

 

0 Kudos
Message 37 of 41
(1,759 Views)

That's what I said earlier - You can't.

What I did was to customize the button which already has the LED inside it, not the regular OK button. Other booleans have other parts. You can scroll through them by selecting Window>>Show Parts Window. Note that some boolean parts have different behavior (like the decal on a LED).


___________________
Try to take over the world!
0 Kudos
Message 38 of 41
(1,755 Views)

to tst....

Now I understand. I thought that you know how to make Button with LED... That was my original question. How to make button with LED? Where have you got that button from?

0 Kudos
Message 39 of 41
(1,754 Views)

It's on the standard boolean palette of every recent LV version I've seen. It's called the Push Button.

Remember that you don't actually need a button with a LED. You could use another boolean with more than one element.


___________________
Try to take over the world!
0 Kudos
Message 40 of 41
(1,750 Views)