Enhanced Icon Editor

cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Message 1 of 10
(16,016 Views)

Thank you for posting this

LabVIEW ChampionArchitect
0 Kudos
Message 2 of 10
(10,990 Views)

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

Flo

0 Kudos
Message 3 of 10
(10,991 Views)

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 CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 4 of 10
(10,991 Views)

They are not in the palettes.

0 Kudos
Message 5 of 10
(10,991 Views)

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
(10,991 Views)

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 CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 7 of 10
(10,991 Views)

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
(10,991 Views)

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.

0 Kudos
Message 9 of 10
(10,991 Views)

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
(10,991 Views)