From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding librairies (no top vi) in LabView SCC?

Hi LabView developpers!

I would like to add a directory of commonly used VI
in a LabView SCC project (no top VI).
How Can I do it.

In other words:
Do VIs need to be used by a "top one" to be included in a SCC project.

My project uses also vi in directories upper than the one of the top.vi and SCC tool does not want to add them.

Thanks!!!
😉
0 Kudos
Message 1 of 5
(2,659 Views)
.
When a common VI is used in one or many projects, it is controlled by SCC so you do not have to have add it explicitely to SCC. If the VI is not part of any SCC project, there is little need to control this VI...
However, what you can do is to create a VI with all the common VIs on its diagram and make a project with this VI as Top Level.
All VIs controlled by SCC must be in the SCC directory or subdirectories.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 5
(2,659 Views)
You cannot add LLB's to source code control (SCC), except as an "Extra
File" file. However, this is not a very good solution because the
whole library is under SCC, not the individual files. LLB's must be
converted to directories in order to maintain SCC of separate VI's.
0 Kudos
Message 3 of 5
(2,659 Views)
Thanks Tim.
In fact my problem is that my top.vi uses some VIs which are
in ascending directories. It seems that SCC does not want to include them in its database.
How can you declare a directory of VIs as a kind of "library" not in term of LLB but just as "shared VIs".

Do you allways have to use descending directory architecture from "top.vi" to "used.vi" to be abble to use SCC??? It seems way too restricting.
😉
0 Kudos
Message 4 of 5
(2,659 Views)
Two suggestions:
1. Create a 'stub' VI. The block diagram of this VI will contain nothing but icons of your commonly used VI's. Then add this stub VI to SCC as a top level VI. The stub VI and its sub VI's must be in the local SCC working directory or one of its sub directories.

2. It is possible to add a top level VI whose sub VI's are closer to the root directory. However, ALL directories that contain VIs that are to be added to SCC must be in the local SCC directory or one of its sub directories. If a directory is not in the local SCC working directory 'Tree' then SCC will complain.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 5 of 5
(2,659 Views)