LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving a copy of a vi in labview

I have created a vi in labview  7.1 and saved it.  I then make a copy of that VI and paste it on the same block diagram, the reason I do this is because my original vi works fine and I just want to make changes to the "copied" vi to see if I can make any improvements.  When I save the copied vi to a different name my original vi also changes name and any changes that I do within the "copied" vi it makes the same changes to the  original vi.
 
What am I doing wrong.  Thanks,.
0 Kudos
Message 1 of 6
(3,104 Views)

For pre LV 8.X...

When you save check the box "Save a copy without updating callers"

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(3,099 Views)

I tried doing what you said and it still makes the changes to both the original file and the "copied" file.

 

Luis

0 Kudos
Message 3 of 6
(3,096 Views)

It would be best if you just copied your original vi and paste it using Windows Explorer.  The copy will be renamed to "Copy of ...".  Don't include the original in the block diagram of the copy.  Now you can try things with the copy and the original remains untouched.  You can open both vi's at the same time for copying and pasting items or whatever.

When you like your changes, you can rename your original to something like Vi_old.vi (if you want to save it, if not then delete it) and rename the copy to the original name.

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 6
(3,082 Views)

With the top level VI open,

1) Double-click on the sub-VI icon on your block diagram to open its FP.

2) On the sb-VI FP do File >>> Save As...

3) Enter a new name and make sure the box is checked

Note:

At this time your top level VI is still pointing at the original sub-VI and a copy is on disk where you saved it.

4) go back to the top level VI and drop the NEW sub-VI on your diagram.

At that point you should have both the old and the new sub-VI in the top level VI.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 6
(3,080 Views)

Thanks guys, problem solved.

 

 

0 Kudos
Message 6 of 6
(3,071 Views)