LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving projects

I'm not a CVI guru by any means.  In fact I was never trained at all in it and unfortunately have inherited this project.  Most of my exposure has been to tweak other peoples code, so forgive me if this question seems simplistic.  Is there a simple way to save an entire project (including all source code) into a new directory as a new revision.  I am working on an older project written by someone who has not been with the company for years.  I want to make extensive modifications to the source code and do not want to affect the original version.  Everytime I try to "Save As", to a new directory, only the project and workspace files appear in the new directory.  I guess I just don't understand revision control in CVI.
 
Thanks for your help in advance.
0 Kudos
Message 1 of 6
(4,301 Views)

Can you not simply use Windows to copy the entire original working directory contents (.c, .h, .uir, .prj, .cws, .lib, .fp etc files) into a Winzip (or equivalent) archive and put it somewhere safe? Then use CVI to edit the original project to your heart's content, secure in the knowledge that you can always revert to the original files in case of disaster.

JR

Message 2 of 6
(4,293 Views)

Yes,  I always knew that was an option.  I just though that perhaps there was a way to programatically save the entire project for archival administration while moving on to new revisions.

Thanks for the prompt response.

0 Kudos
Message 3 of 6
(4,290 Views)

JRs method is the same as I use for archiving, works great.  But if you do want to create a copy of the project in another directory it is also pretty simple.  Again just copy the entire project folder to folder with another name.  Delete the directory in the folder named cvibuild.[your project name].   Load the project file and CVI will "fixup" the directories to point to the new folder (as much as it can.) 

By making a copy of a folder and renaming a project file and cws file you can also for the most part migrate an entire project to a completely new application.  Keeping the cws(workspace) with the .prj is optional, sometimes it makes sense to remove the cws as well.  You can rename your main .c file, uir.c and .h etc, then load the new project.   Some things in the project will not be found, and CVI will highlight/mark them in the project file view window.   For things that for some reason can not be found simply right click on the filename and use the "Replace File in Project" option to correct the path or filename.

Message 4 of 6
(4,264 Views)
I have a simple method to save the project .
1)copy all necessary files listed in the old project  into a new folder .
2)you can create an new project in the workspace ;
3)then you can seclect the "add file"menu item in the  popup menu appeared by right_click  the project name  to add all necessary files listed in the old project  into the new project .
4)save the new project  and give the project a name .It will be ok.
   
Message 5 of 6
(4,125 Views)
All responses helped. 
0 Kudos
Message 6 of 6
(4,113 Views)