LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple projects in one workspace

If I create a workspace and put two projects into it, neither of which has the same name as the workspace, why then do I wind up with a .prj file for the workspace name and what's in it?

 

workspace.cws

 

project1.prj

project2.prj

 

but I also get 

 

workspace.prj

 

?

 

Menchar

0 Kudos
Message 1 of 5
(4,025 Views)

Hi Menchar,

 

Can you give us the exact sequence of steps that you used to create your workspace?

 

Thanks,

Luis

0 Kudos
Message 2 of 5
(3,988 Views)

Luis -

 

Well, now I can't replicate the problem Smiley Mad  It did seem to me that the workspace wound up with a non-existent project of the same name as the workspace stuck in it.

 

But I wonder if it is possible to name a workspace file directly? I can't seem to do it.  

 

Thanks.

 

Menchar

0 Kudos
Message 3 of 5
(3,976 Views)
Could you clarify what you mean by "name a workspace file directly"?  Do you want to give the workspace a specific name?

Mark E.
National Instruments

0 Kudos
Message 4 of 5
(3,946 Views)

Hi Menchar (and Mark),

 

CVI doesn't give you a lot of control over naming workspaces. Essentially, there's no "Save As" option for workspaces. When workspaces were introduced in CVI 6.0, they were set up to be as unintrusive as possible, and to not require much thought from users. The most common situation is that users deal only with project names, and workspaces are automatically created and saved with the same name as the first project. The thought was that if someone really wanted to change the name of a workspace, they could simply navigate to the file and rename it (preferably when it's not loaded in CVI at the same time...).

 

Having said that, it is possible to explicitly name a workspace in CVI, at the time that you create it, before you save any projects:

 

1. File>>New>>Workspace

2. move the window, in other to mark the workspace as needing to be saved (yeah, I know, it's a bit hokey...)

3. File>>Save Workspace

 

You can then add as many projects as you like, and name them whatever you like, and it shouldn't change the workspace name.

 

Luis

0 Kudos
Message 5 of 5
(3,937 Views)