LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving for the Desired Version of LabVIEW

Place the attached VI in all of your  ...\LabVIEW 20??\project\  folders.

(it's a good idea to compile each one in the corresponding version of LV; or just mass compile the folder).

Now when you run LabVIEW, you will have menu item: Tools -> Save - Retain LV Version...

When you select that menu item, it will save the current VI for whichever version of LabVIEW it was last saved for.

Message 1 of 7
(121 Views)

@paul_a_cardinale wrote:

Place the attached VI in all of your  ...\LabVIEW 20??\project\  folders.

(it's a good idea to compile each one in the corresponding version of LV; or just mass compile the folder).

Now when you run LabVIEW, you will have menu item: Tools -> Save - Retain LV Version...

When you select that menu item, it will save the current VI for whichever version of LabVIEW it was last saved for.


I will really appreciate if you will be able to implement the same for LabVIEW Snippets (I mean Edit->Create VI Snippet from Selection - Retain LV Version)...

0 Kudos
Message 2 of 7
(73 Views)

@Andrey_Dmitriev wrote:

@paul_a_cardinale wrote:

Place the attached VI in all of your  ...\LabVIEW 20??\project\  folders.

(it's a good idea to compile each one in the corresponding version of LV; or just mass compile the folder).

Now when you run LabVIEW, you will have menu item: Tools -> Save - Retain LV Version...

When you select that menu item, it will save the current VI for whichever version of LabVIEW it was last saved for.


I will really appreciate if you will be able to implement the same for LabVIEW Snippets (I mean Edit->Create VI Snippet from Selection - Retain LV Version)...


As far as I can tell, there is no way to programmatically create a Snippet.

0 Kudos
Message 3 of 7
(57 Views)

@paul_a_cardinale wrote:

@Andrey_Dmitriev wrote:

@paul_a_cardinale wrote:

Place the attached VI in all of your  ...\LabVIEW 20??\project\  folders.

(it's a good idea to compile each one in the corresponding version of LV; or just mass compile the folder).

Now when you run LabVIEW, you will have menu item: Tools -> Save - Retain LV Version...

When you select that menu item, it will save the current VI for whichever version of LabVIEW it was last saved for.


I will really appreciate if you will be able to implement the same for LabVIEW Snippets (I mean Edit->Create VI Snippet from Selection - Retain LV Version)...


As far as I can tell, there is no way to programmatically create a Snippet.


I will carefully say: "impossible is nothing", the snippet is just regular PNG with VI placed into custom data private chunk, but yes, at least not trivial.

0 Kudos
Message 4 of 7
(51 Views)

@paul_a_cardinale wrote:

@Andrey_Dmitriev wrote:


I will really appreciate if you will be able to implement the same for LabVIEW Snippets (I mean Edit->Create VI Snippet from Selection - Retain LV Version)...


As far as I can tell, there is no way to programmatically create a Snippet.


There is the 'Code Capture Tool' which can create snippets. Not a 'one node' solution, but a starting point.

 

https://lavag.org/files/file/63-code-capture-tool/ 

https://www.vipm.io/package/lava_lib_code_capture_tool/?utm_source=vipm_desktop 

 

0 Kudos
Message 5 of 7
(41 Views)

I downloaded and attempted to open "Save - Retain LV Version.vi" in LabVIEW 2019.  It appeared to "lock" LabVIEW -- the screen flickered briefly, a LabVIEW icon appeared on the Task Bar, but I couldn't open anything, couldn't get LabVIEW to respond, and had to resort to killing LabVIEW.exe.

 

I'm assuming that this is not "protected" code, and isn't supposed to simply hang LabVIEW if opened.  I'll note that I didn't exactly follow your instructions -- I had not put it inside an existing LabVIEW Project, but just tried to open it as though it was a stand-alone VI (still residing in my "Downloads" folder).  I also assumed that since you mentioned "LabVIEW 20??", it should have worked if I opened it with LabVIEW 2019.

 

I look forward to your comments.

 

Bob Schor

0 Kudos
Message 6 of 7
(24 Views)

@Bob_Schor wrote:

I downloaded and attempted to open "Save - Retain LV Version.vi" in LabVIEW 2019.  It appeared to "lock" LabVIEW -- the screen flickered briefly, a LabVIEW icon appeared on the Task Bar, but I couldn't open anything, couldn't get LabVIEW to respond, and had to resort to killing LabVIEW.exe.

 

I'm assuming that this is not "protected" code, and isn't supposed to simply hang LabVIEW if opened.  I'll note that I didn't exactly follow your instructions -- I had not put it inside an existing LabVIEW Project, but just tried to open it as though it was a stand-alone VI (still residing in my "Downloads" folder).  I also assumed that since you mentioned "LabVIEW 20??", it should have worked if I opened it with LabVIEW 2019.

 

I look forward to your comments.

 

Bob Schor


When you open it directly it's supposed to do nothing.  And it doesn't really do anything; but it leaves its FP open and hidden (which seems to be hard to recover from if nothing else is open).

You don't need to put it in a Project, you need to put it in the folder ...\National Instruments\LabVIEW 201xx\project\

Note that 'Run When Opened' has to be set for it to work as a menu item.

Attached is a version that closes its FP even if it's run incorrectly.

It should work in any LV version from 2018 onward.

0 Kudos
Message 7 of 7
(10 Views)