LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Correct use of LabVIEW 8 with Visual Source Safe

I have LabVIEW 8.0 and Microsoft Visual Source Safe 6 (VSS) installed and was looking for help with the correct way to integrate the two environments.  This will be used in a team environment and code modules will be shared between team members.  I have used and understand the new project manager with it's virtual directory structure.  I have also used and understand VSS and its abilities to share and branch vis or project folders. 
 
When you share an item in VSS, the vi is available for use in both projects and physically resides in both projects within your working directory.  If I were just using VSS, this is the method I would use (and what is recommended in the VSS documentation).  This way an entire project contains all the files and can be retrieved all at once. 
 
When you use the LabVIEW 8 project manager, it appears that the intent is to only have the code in one location and share it through virtual folders.  This makes sense and works fine until LabVIEW 8 and VSS are both used.  LabVIEW 8 can handle check in/out and adding files to VSS.  A LabVIEW project can even use vis that belong to other LabVIEW projects and other VSS projects.
 
My concern with all this is what happens when a team member wants to bring down code to their working directory or rebuilding my own working directory.  LabVIEW's project manager does not appear to provide a direct view to the VSS database.  I can go into VSS and pull down a LabVIEW project file (lvproj file only) and open it up.  All appears to be fine and all VSS information is intact.  What is not there is any indication of which files actually exist in my working directory or any way to perform a "bulk" retrieval of all the files required in my project.  If all the files reside in a virtual directory, I don't even know where to go get them from.  One solution could be to follow the VSS style and ensure everything is native to a project or at least shared with a project (within VSS).  This may be cumbersome and would not follow the LabVIEW project philosophy.  I may also miss something since LabVIEW "remembers" where stuff is for you.  Following the LabVIEW project method could make it difficult to bring a project back to life and also has the potential to leave some vis out of source code control (sub vis don't have to belong to a LabVIEW project).
 
Does anyone have thoughts on this subject?  What is the most efficient way to ensure that all project items are in source code control and that all projects are retrievable and functional?
 
Thanks,
Greg Cloutier
0 Kudos
Message 1 of 5
(4,701 Views)
Greg,
I'm not a VSS guru but I do know that currently there is no automatic functionality for checking in\out a project and all associated files from LabVIEW.
 
As for finding the location of the vis that have been checked out, LabVIEW can display the full path of a vi from the project explorer. If you right click on a vi and then select properties, the General category will show the full path.
 
There are a number of papers that do relate to using SCC with LabVIEW 8. check out Using Source Control Software with LabVIEW and that will link you to other documents as well.
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 2 of 5
(4,667 Views)
You can't directly pull the whole source tree from within LabVIEW. Use the SourceSafe client instead. Open the context menu of the project you want to check out and select "Get latest version...". If you are interested in a special revision or identifier you have to go over the history dialog. Open that one, select your version and click "Retrieve". If you don't have set a working directory yet, you will be ask for. Than all VIs are stored in your working directory and you can open the project. But remember to set the correct SCC settings within LabVIEW.
0 Kudos
Message 3 of 5
(4,638 Views)
I have the following problem with VSS.  Once the files are checked in, and then checked out, re-enterent vis become unchecked and in addition to that, all files become read-only.  I have looked at the setting in VSS to prevent this, but nothing.  Anyone knows how can I fix this?
0 Kudos
Message 4 of 5
(4,582 Views)
Stecino,
    Unfortunately we here at National Instruments don't provide any direct support for 3rd party SCC programs. As Chris C has said above we support get LabVIEW setup to use your SCC but nothing on the functionality of the particular software. Since this is a microsoft product I would suggest going to this site, and looking at your options. If you do have any questions about intigrating the VSS with LabVIEW please let us know.
 
Regards,
 
Tyler Heikes
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(4,555 Views)