12-04-2024 03:34 PM
@paul_a_cardinale wrote:
OK, here's the new and improved version
Place the attached LLB in all of your ...\LabVIEW 20??\project\ folders.
(It's a good idea to mass compile).
Now when you run LabVIEW, you will have two new menu items
Tools -> Retain LV Version - Create Snippet...
Tools -> Retain LV Version - Save VI...
By default, they will save to whichever version of LabVIEW the VI was last saved for (but you can also choose a different version).
Wow, it seems to be working and functional! The only minor issue is that the default version in the list is not the version of the VI that was last saved, but rather the actual version (I checked this for a VI saved in 2023 and opened in 2024 with this tool). And design of the border can be improved, but it's very useful; thank you so much!
12-04-2024 06:36 PM
@Andrey_Dmitriev wrote:
@paul_a_cardinale wrote:
OK, here's the new and improved version
Place the attached LLB in all of your ...\LabVIEW 20??\project\ folders.
(It's a good idea to mass compile).
Now when you run LabVIEW, you will have two new menu items
Tools -> Retain LV Version - Create Snippet...
Tools -> Retain LV Version - Save VI...
By default, they will save to whichever version of LabVIEW the VI was last saved for (but you can also choose a different version).
Wow, it seems to be working and functional! The only minor issue is that the default version in the list is not the version of the VI that was last saved, but rather the actual version (I checked this for a VI saved in 2023 and opened in 2024 with this tool). And design of the border can be improved, but it's very useful; thank you so much!
The defaults work OK for me (although I don't have LV 2024).
12-05-2024 11:49 AM
@Andrey_Dmitriev wrote:
@paul_a_cardinale wrote:
OK, here's the new and improved version
Place the attached LLB in all of your ...\LabVIEW 20??\project\ folders.
(It's a good idea to mass compile).
Now when you run LabVIEW, you will have two new menu items
Tools -> Retain LV Version - Create Snippet...
Tools -> Retain LV Version - Save VI...
By default, they will save to whichever version of LabVIEW the VI was last saved for (but you can also choose a different version).
Wow, it seems to be working and functional! The only minor issue is that the default version in the list is not the version of the VI that was last saved, but rather the actual version (I checked this for a VI saved in 2023 and opened in 2024 with this tool). And design of the border can be improved, but it's very useful; thank you so much!
Open the attached VI with LV 2024 and run it. You should get:
Let me know if you get something different.
12-05-2024 03:42 PM
Yes, in LV2024 I have exactly same output as shown on your screenshot.
But I have one empty VI which is opened in 2024 and "downsaved" to 2023 with this tool, and if I paste your code into it, then it appeared as shown below:
(This VI can be opened in LV 2023 without any problem).
12-05-2024 05:34 PM
@Andrey_Dmitriev wrote:
Yes, in LV2024 I have exactly same output as shown on your screenshot.
But I have one empty VI which is opened in 2024 and "downsaved" to 2023 with this tool, and if I paste your code into it, then it appeared as shown below:
(This VI can be opened in LV 2023 without any problem).
That's an interesting LabVIEW quirk that leads to a bug in my code. My code assumes that the "Saved Version" property is the version that it was saved for; but it's actually the version of LabVIEW that last saved the VI.
I'll have to fix my code.
12-05-2024 05:53 PM
Here is the fixed version (1.01).
Now the defaults should always be correct.
12-24-2024 09:57 AM
New improved version (2.0)
Now is able to save libraries (.lvlib, .lvclass, .lvsc, .xctl, .xnode).