This repo contains the source files and automated build tools for the LabVIEW icon editor. You can use this code as a starting point for creating a custom icon editor. Refer to the CONTRIBUTING document for information about submitting changes for inclusion with future versions of LabVIEW.
LabVIEW source is saved in (LabVIEW 2021 SP1) format. Either LabVIEW 2021 or LabVIEW 2024 can be used to do development work, as long as the source remains saved on LabVIEW 2021
Because the icon editor is part of the LabVIEW development environment, you need to make changes to installed files before editing this project.
Complete the following steps to edit this project:
- Clone this repo into a development location (e.g., C:\dev).
- Run Tooling\Prepare LV to Use Icon Editor Source.vi.
This will perform the following steps, which you can alternatively perform manually:
- Delete <LabVIEW>\resource\plugins\lv_icon.lvlibp
- Delete <LabVIEW>\vi.lib\LabVIEW Icon API
- Set LocalHost.LibraryPaths in your labview.ini file to the location of this project. For example:*
- LocalHost.LibraryPaths="C:\labview-icon-editor"
- Open lv_icon_editor.lvproj in LabVIEW.
- The top-level VI is in the Project Explorer at My Computer » resource/plugins » lv_icon.lvlib » lv_icon.vi.
This process accomplishes the same as the manual process, but it only uses a powershell command to set labview 32 and 64 bits into editing mode.
Before following this process, create a backup of the following files and folder:
- <LabVIEW>\resource\plugins\lv_icon.lvlibp
- <LabVIEW>\vi.lib\LabVIEW Icon API\*
Clone the repo into C:, and apply the dependencies located on Tooling\deployment\Dependencies.vipc to LabVIEW 2021 32 and 64 bits, follow this process to use the automation layer.
- Open Powershell in Admin mode and navigate to .pipeline\scripts from your github repo.
- Modify the following command to point to your github repo and run it:
.\DevelopmentMode.ps1 -RelativePath "C:\labview-icon-editor"
- Open lv_icon_editor.lvproj in LabVIEW.
- The top-level VI is in the Project Explorer at My Computer » resource/plugins » lv_icon.lvlib » lv_icon.vi.
Complete the following steps to distribute your custom icon editor to another machine.
First, build the Editor Packed Library build specification in the project to create lv_icon.lvlibp.
Then, on the machine where you want to install your custom icon editor:
- Rename <LabVIEW>\resource\plugins\lv_icon.lvlibp, the shipping icon editor, to lv_icon.lvlibp.ship to "hide" it.
- Archive <LabVIEW>\vi.lib\LabVIEW Icon API to preserve the shipping copy. Use your archive program of choice (e.g. 7-Zip).
- Copy the packed library and support files that you developed with this project into the <LabVIEW> directory:
- <LabVIEW>\resource\plugins\lv_icon.lvlibp
- <LabVIEW>\vi.lib\LabVIEW Icon API\*
First step before modifying the icon editor source, is to ensure that your build tools work, since those same tools are the ones that will run on the build agent.
See a video on how to do it from scratch following the process described below
2025-03-04_17-02-43.mp4
Follow these steps to ensure your system is ready to edit the source.
Step 1: Apply dependencies
- Open VIPM, switch to 2021 32-bit and apply \Tooling\deployment\dependencies.vipc
- Switch VIPM to LabVIEW 2021 64-bit and apply the VIPC again
Step 2: Disable security warnings for "Run When Opened" VIs
The alternative to this step is to wait for the popup to occurr, and acknowledge it, this way it gets added to the list of "allowed" VIs. Although this would require you to manually acknowledge the process initially for the VIs to be added to the AllowedList.
In order to disable the warning, enable the following option on both 32 and 64-bit LV2021:
Tools/Options/Security/Run VI without warning
Step 3: Open latest pwsh (Powershell) in admin mode, and navigate to
\labview-icon-editor\pipeline\scripts\
Step 4: Copy the following command into Powershell:
.\Build.ps1 -RelativePath "C:\labview-icon-editor" -AbsolutePathScripts "C:\labview-icon-editor\pipeline\scripts"
Note: Before pressing enter, make sure that you closed LabVIEW and VI Package manager.
A VI package will be created on the builds folder. Please note that you need to open VI Package manager on Admin mode in order to install the package. A VI package named ni_icon_editor-x.x.x.x will be built on builds\VI Package. You can now install this VI package on any LabVIEW version after 2020.
Step 5: Now that you have a working set of build tools, you can run the script that enables you to edit the source
.\Set_Development_Mode.ps1 -RelativePath "C:\labview-icon-editor"
Once you are done with your change, run the build tools from step 4 again and install the VI package in order to verify that your change was effective.