Enhanced Icon Editor

Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.
Highlighted

Icon Editor Source Files for LabVIEW 2012

Attached is the source code and project to create the LabVIEW 2012 icon editor.  To install the code, do the following:

  1. Rename <LabVIEW2012>\resource\plugins\lv_icon.lvlibp, the shipping icon editor, to lv_icon.lvlibp.ship to "hide" it.
  2. Archive <LabVIEW2012>\vi.lib\LabVIEW Icon API to preserve the shipping copy.  Use your archive program of choice (e.g. 7-Zip).
  3. Open the attached ZIP file and copy the two directories into your <LabVIEW2012> directory.  This installs the code into <LabVIEW2012>\resource\plugins\lv_icon.vi with associated support files.

Note that in LabVIEW 2012, an API was introduced to allow you to programmatically alter the new, multi-layer LabVIEW icons.  This API is located in <LabVIEW2012>\vi.lib\LabVIEW Icon API.

If you have questions or run into issues, let us know in the comments.

This account is no longer active. Contact ShadesOfGray for current posts and information.
Message 1 of 10
(7,776 Views)
9 REPLIES

Re: Icon Editor Source Files for LabVIEW 2012

Thank you for posting this

Dany Allard

0 Kudos
Message 2 of 10
(2,751 Views)

Re: Icon Editor Source Files for LabVIEW 2012

the LabVIEW Icon API shipped with LabVIEW 2012? Great News!!

0 Kudos
Message 3 of 10
(2,751 Views)

Re: Icon Editor Source Files for LabVIEW 2012

Where do you find the Icon API functions on the LabVIEW 2012 Tool Palettes?  When I opened up the API from vi.lib and found the names of some of the VIs and then did a Search from the Functions palette, none of the VI Icon Palette vis showed up in the search.

Ryan Vallieu
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 4 of 10
(2,751 Views)

Re: Icon Editor Source Files for LabVIEW 2012

They are not in the palettes.

0 Kudos
Message 5 of 10
(2,751 Views)

Re: Icon Editor Source Files for LabVIEW 2012

I should give more complete answer: things in the palettes are VIs we aim to not change/delete between versions of LV. These are seen as more fluid parts of the editor, not stuff that should be part of a user's application for their end users. As such, they don't belong in the palettes until we have had them long enough to be sure the API is organized the way we want. Lots of these editor support functions exist in LV's vi.lib without being in the palettes. Sometimes they change radically between LV versions.

Message 6 of 10
(2,751 Views)

Re: Icon Editor Source Files for LabVIEW 2012

Good enough for me.  I have been building some Scripting Code that other developers utilize to write standardized code while in the LV Development Environment and wanted to incoroporate the functionality of the icon layers into wrapper creation to futher reduce my developers coding time. This is not something that everyone needs access too on the palettes - I just thought it might be exposed similar to the Scripting code, via a setting in Tools>Options>Vi Server.  Thank you for the reply.

Ryan Vallieu
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 7 of 10
(2,751 Views)

Re: Icon Editor Source Files for LabVIEW 2012

I have an application that calls the icon editor called the FP SubVI Fixer found at

http://lavag.org/files/file/128-fp-subvi-fixer-ver-6-lv-2009/

I want to call the icon editor through the development environment so the user will be able to edit the icon via the editor they have set up.

This was acomplished in previous versions by calling the Application Invoke node called "User Interaction: Edit Icon"

This node apparently was deprecated in 2010 but it still worked until 2012.

Is there a way with the new editor vis to replace this functionality?

Mark

0 Kudos
Message 8 of 10
(2,751 Views)

Re: Icon Editor Source Files for LabVIEW 2012

When LabVIEW launches the icon editor, it looks for <LabVIEW2012>\resource\plugins\lv_icon.vi and launches it if present.  If not present or if broken, it launches the old icon editor.  You can put any icon editor you want at <LabVIEW2012>\resource\plugins\lv_icon.vi.  You could dynamically switch things out, if you have directory permissions.  You may want to back things up before doing it.

This account is no longer active. Contact ShadesOfGray for current posts and information.
0 Kudos
Message 9 of 10
(2,751 Views)

Re: Icon Editor Source Files for LabVIEW 2012

My goal is not to use the icon editor that I choose.

It is to use the icon editor that the user of the development environment has chosen. (Standard editor if lv_icon.lvlibp exist, Custom editor if the lvlibp renamed and lv_icon.vi is valid)

I am looking for a VI or Node that does the same thing as double clicking on the icon to open the editor.

As you stated The logic already exist to determinewhich icon editor to call.

How do I call the icon editor through the development environment to get the same functionality programmatically?

0 Kudos
Message 10 of 10
(2,751 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.