10-03-2025 01:48 AM - edited 10-03-2025 02:09 AM
I have created a LabVIEW api in a library, which I developed in the <labview>\vi.lib\addons directory. I want to save it for a previous version of LabVIEW but am having problems doing so.
Here's what I've tried:
I guess the next thing I'd try would be to go through all VIs and make their subVIs point to the files in the new directory rather than the original <labview>\vi.lib\addons api directory, but that seems quite a lot of effort, so think there must surely be a better solution. I did see a "Resolve Conflicts" option under the project menu, which I thought might be useful, but it is disabled.
Can anyone please enlighten me how to best solve this problem?
Solved! Go to Solution.
10-03-2025 02:23 PM - edited 10-03-2025 02:24 PM
Check out these resources:
https://www.youtube.com/watch?v=pb9SeYZAbVs (see ~17:20)
which is also referenced in this previous forum post:
https://forums.ni.com/t5/LabVIEW/LabVIEW-LVAddons-Help-LabVIEW-Reuse-Shared-Between-Versions/td-p/43...
summary:
LabVIEW let's you save your addon VIs in LVAddons. Also, you can configure your LabVIEW to think that your source control repository is an LVAddons additional location.
10-04-2025 07:29 PM - edited 10-04-2025 07:30 PM
Thanks, Doug.
So, it seems that there is no save for previous version solution when it's stored in <labview>\vi.lib.
In future, I'll use either the <labview>\instr.lib directory or <labview>\user.lib directory, or, if I have LabVIEW 2022 or later, the LVAddons directory.
For my current api, I've moved it to <labview>\user.lib and updated all paths (I'm using LabVIEW 2019, so using the LVAddons directory isn't possible), which allowed the save for previous version to succeed.
10-07-2025 12:40 PM
To be fair, you shouldn't be doing any development in any of the LV folders. You should be developing them in a dev folder and do distributions.
10-15-2025 03:31 AM - edited 10-15-2025 03:34 AM
Yeah, sage advice, Bill. I wasn't developing in the LV folders originally but then moved the project there when I wanted to create the LabVIEW palette, then continued development in the LV folder location.
Once I managed to Save for Previous Version, a further problem I experienced was that all the previous version file paths updated to the previous version save location, and when I then copied the previous version project folder into the user.lib folder of another version of LabVIEW, it was able to automatically fix all paths except for the dir.mnu palette file, which was the library's default palette. Is there a solution for that so that the previous version of LabVIEW isn't required to fix the paths?
I played around a bit, but didn't make any progress, and because of time constraints ended up just installing the older version of LabVIEW and fixing up the path to the dir.mnu file using it.
10-15-2025 08:36 AM
Try these VIs when needing to make bulk edits to palette files: