LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Files by Label with Source Code Control (SCC) VI's

Hi,

 

We have in mind to use the LabVIEW (in Professional from ver. 8.0) SCC toolbox to make an application to retrieve files from our SCC server. But we need the possibility to Get Files by Label Version instead of Get Latest Version.

 

  1. Is it possible?

  2. How?

  3. The SCC Get Latest Version.vi has a variant input for advanced options (is reserved for internal use). What is this for?
  4. Is the possibilities for the advanced options input described anywhere?

  5. Can we use this advanced options input to Get Files by Label?

I’m looking forward to hear from all the experts out there J

 

Best regards,

 

Morten Pedersen

0 Kudos
Message 1 of 7
(3,264 Views)
Morten,
 
I would like to do the same thing as you.  Did you ever get the answer to these questions or figure out the answer yourself?
0 Kudos
Message 2 of 7
(3,191 Views)
There is no native mechanism to get a files's version by label from within LabVIEW. That is considered an advanced operation that needs to be peformed in the provider's client software.

Some providers have advanced options during a Get Latest operation that might allow you to do this, but it is on a provider by provider basis.


Message Edited by gmart on 01-03-2008 12:35 PM
George M
National Instruments
0 Kudos
Message 3 of 7
(3,179 Views)
OK.  Thanks for the information.  I will submit a suggestion that this capability be added to LabVIEW because it is a very important one for automatically deploying LabVIEW code.
0 Kudos
Message 4 of 7
(3,175 Views)

Another bit of information on this topic. It is possible that LabVIEW doesn't provide this capability because it isn't supported by the Microsoft Source-Code Control Interface, but I am not 100% sure.  However, I believe I have found a workaround.  Many, if not all, SCC providers have command line interfaces.  I know that Perforce does and I am using Seapine Software's Surround SCM, which also has a command line interface.  Surround SCM's command line interface allows you to get files recursively and according to label.  This means that I can still get all files from my SCC provider for a given label using LabVIEW, just not through the SCC VIs.  I believe that the way to access your SCC provider's command line interface is by using System Exec.vi.  Check your SCC provider documentation for command line interface descriptions or other available interfaces, such as ActiveX Automation.

0 Kudos
Message 5 of 7
(3,170 Views)
You are correct that most SCC providers have command line interfaces. There is a "Version" input on the SCC Get Latest Version VI for the purpose of supporting providers that have this capability. With the current tools, the only provider that supports this input is the Perforce Command Line SCC provider. In theory if someone wrote a Surround SCM Command Line provider, then it could be possible to support this input as well.

The limitation is indeed the lack of the supported programmatic functionality in the Microsoft SCC Interface.
George M
National Instruments
0 Kudos
Message 6 of 7
(3,156 Views)
Hi Morten,

I think to move yourself on with this question it would help to specify which SCC system you are using and what it is you actually want to achieve, there are quite a lot of limitations with the Microsoft SCC Interface as has been stated

But a great deal can be done by either looking a how you are using your SCC and by using command line calls to you SCC via Labview. My LabVIEW programming is not that great but if you are using ClearCase as I have been a ClearCase Admin for many years, I could point you in the correct direction if you are using ClearCase. In fact the answer to all your questions if you are using ClearCase are based on correct usage of your ClearCase Views and your view configuration specifications.

cheers

Danny
Danny Thomson AshVire Ltd
0 Kudos
Message 7 of 7
(3,141 Views)