LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to programmatically get text from an existing vi's icon and programmatically enter text into a new vi icon?

Is there a way to programmatically get text from an existing vi's icon and programmatically enter text into a new vi icon?

0 Kudos
Message 1 of 6
(3,532 Views)

You might want to look at the source for the icon editors here.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 6
(3,530 Views)

Hello Pat,

 

As far as I am aware, there is no way to easily do this programmatically with property/invoke nodes. You could try calling the VI's icon image using an invoke node and use some type of image manipulation to create the text on the icon, then recreate the image using an invoke node. Please let me know if you have any other questions regarding this issue.

 

Doug W

Applications Engineer

Applications Engineer
National Instruments
0 Kudos
Message 3 of 6
(3,475 Views)

there is a little-known Icon API in VI.llb\LabVIEW Icon API. Here is a use example

1!.PNG

 

Used to remove blank banners from a template created project.

 

The same library puts text in banners for projects when desired


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 6
(3,463 Views)

Thank you Jeff, do you know if it gives the icon text as one of the layers?

 

Thank you

0 Kudos
Message 5 of 6
(3,453 Views)

@Pat_H wrote:

Thank you Jeff, do you know if it gives the icon text as one of the layers?

 

Thank you


If text is in a layer the layer should contain text or text lines. I've never dug deeply only under the expert tutaledge of Darren N. to get one feature out of a project template.  The VI documentation should be top notch thoughSmiley Wink  If not.... you could fix it LOL


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 6
(3,437 Views)