LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change the Icon in the Blockdiagram of a customize control

I use a customizing control based on the start button
(I only change the graphic inside).
If I use this control in a application the Icon of the control in the blockdiagram is still the start button
How can I change the block diagram icon of a custom control.(LV7.1)
0 Kudos
Message 1 of 6
(3,648 Views)
Hi,

I just tested your control on my PC, and I found the behaviour "inconsistant" and might be a LabVIEW bug or a possible improvement.

The icon of the control in the block diagram shows as the default T/F boolean icon only if I drag and drop the control to the front panel. However if I drag and drop the control to the block diagram directly OR if I add the control from the control palette, then the icon made in your customized control shows up in the block diagram.

Weird uh?

So maybe you can try adding the control to the block diagram or add it from the control palette. Hope it'll work for you.

Cheers,
Dan
0 Kudos
Message 2 of 6
(3,648 Views)
Hello wolfgangk,

I am pretty sure you cant change the appearence of controls on the block diagram. I found th efollowing information:

You can place custom controls and indicators on front panels and block diagrams by dragging them from the Control Editor window or by selecting them on the Controls palette or the Functions palette. Placing a custom control or indicator on a block diagram creates a constant with the same data type as the custom control or indicator. You also can add custom controls and indicators to the Controls and Functions palettes. Refer to the LabVIEW Help for information about creating and editing custom palette views.

Check out:
http://zone.ni.com/devzone/conceptd.nsf/webmain/A9FBCAA7A3D7922186256A3000652B56?opendocument#3
for more
information.

As a workaround you might want to create a subVI, here you can use custom icons, or you can just put decorations on top of your elements. If you choose this workaround you will have to do it every time you insert your control since you can not define or group these elements in the diagram

hope this helps
0 Kudos
Message 3 of 6
(3,647 Views)
Hi nschedlb,

LabVIEW 7.0 and after provide the feature of customized icons for custom controls. Starting from LabVIEW 7, you can right click on controls/indicators and select "View as Icons" in the block diagram. I found the icon view occupies too much space, but it might be handy for custom controls.

Dan
0 Kudos
Message 4 of 6
(3,647 Views)
Hi Dan,

I realize that LV 7 and later offer an Icon view for front panel elements in the block diagram. I could not find any way of customizing the diagram elements. the only option I have found is to customize Front Panel elements, the block diagram icon is always the standard icon for the control modified.

nick
0 Kudos
Message 5 of 6
(3,647 Views)
Hi,

Right click the control, select "Customize Control". Then change the icon
the same way you would change a vi icon (dubble click the icon). Then save
the control to preserve the changes.

Regards,

Wiebe.


"nschedlb" wrote in message
news:50650000000500000086B70100-1079395200000@exchange.ni.com...
> Hi Dan,
>
> I realize that LV 7 and later offer an Icon view for front panel
> elements in the block diagram. I could not find any way of customizing
> the diagram elements. the only option I have found is to customize
> Front Panel elements, the block diagram icon is always the standard
> icon for the control modified.
>
> nick
0 Kudos
Message 6 of 6
(3,648 Views)