LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control SVN using LabVIEW

Hello All ,

Can you please let me know how to control SVN using LabVIEW . I tried using the comand line argugment ,In this method i dont like the manual intervention to press ok /cancel . Even this I need to control using LabVIEW .

 

I also tried using the TSVN tool kit .This is the Tool kit to control LabVIEW module of it own .

Kindly let me know urgently 

Regards,

Prithviraj

0 Kudos
Message 1 of 9
(4,056 Views)

Hi Padugur,

 

you should tell us what you want to achieve!

 

Do you want to use SVN to control your LabVIEW sources? Then use one of those SVN toolkits available at VIPM!

Or do you want to remote control SVN to have version control of other files?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(4,031 Views)

Yes there are a couple of SVN toolkits, the JKI version isn't free as far as I know but the ViewPoint one is and works pretty well with QuickDrop integration.  They use a DLL and I think .NET to interface with Subversion.  The command line stuff is an option but is a bit clunky and error prone.

Message 3 of 9
(4,027 Views)

I "hacked" getting some SVN Information in order to try to set the SVN Version into the LabVIEW Executable "Build" part of the Version string, as described in this Idea Exchange article here.  What the code posted there does not show is the Hack, which I called "SVN Build".  Here's how it works:

SVN Build.png

  1. If you use Tortoise SVN, you need to install Tortoise with the Command Line option turned on (I think it is the second or third option, off by default).  This lets you issue a System Call to "subwcrev", Subversion Working Copy Revision.
  2. Pass the Project Path (not the Project Rath, stupid typo) in to get the folder holding the Project, which gets passed as a command argument to the "subwcrev" command.
  3. Split the returning Standard Output String (which will have several lines) into an Array, breaking it at the New Line.  There are various ways to do this, I wrote a little sub-VI, you can do the same or be more clever.
  4. If you look at the Standard Output, you'll see you want the last "word" on the second line, which is the last Commit.  Isolate the second Line (second Array entry), split at spaces, and get the last Array entry (= last word), which I do using Delete from Array.  That string should be the Last Commit.

If you need other data, you can use the other Subversion command line functions and parse them in a similar manner.

 

Bob Schor

Message 4 of 9
(3,998 Views)

Hello All,

 

I am looking for method/example code where I can able to  perform all the operations of SVN in LabVIEW .

I am having a repository/project files in SVN . I need to extract/commit the files in the SVN using LabVIEW.

I am looking for hep how to perform this with out any manual intervention .

 

Regards,

Prithviraj

0 Kudos
Message 5 of 9
(3,963 Views)

@Padugur wrote:

Hello All,

 

I am looking for method/example code where I can able to  perform all the operations of SVN in LabVIEW .


Yes we understand and the multiple suggestsions, and toolkits mentioned do that.

0 Kudos
Message 6 of 9
(3,939 Views)

@Padugur wrote:

Hello All ,

Can you please let me know how to control SVN using LabVIEW . I tried using the comand line argugment ,In this method i dont like the manual intervention to press ok /cancel . Even this I need to control using LabVIEW .

 

 

Regards,

Prithviraj


If I understand the highlighted statement correctly, you are expecting some APIs for TSVN in LabVIEW, through which you can programmatically do the check-out/check-in, without any manual intervention whatsoever.

 

That is not possible!

 

Let me know if my understanding is correct or not.

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 7 of 9
(3,634 Views)

@Padugur wrote:

Hello All ,

Can you please let me know how to control SVN using LabVIEW . I tried using the comand line argugment ,In this method i dont like the manual intervention to press ok /cancel . Even this I need to control using LabVIEW .

 

I also tried using the TSVN tool kit .This is the Tool kit to control LabVIEW module of it own .

Kindly let me know urgently 

Regards,

Prithviraj


Do you mean you want to use LabVIEW as an SVN shell like TSVN?  Unless this is just for personal growth in LabVIEW programming, I would just stick to TSVN for your SVN shell.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 9
(3,627 Views)

@billko wrote:


Do you mean you want to use LabVIEW as an SVN shell like TSVN?


I think, no!

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 9 of 9
(3,622 Views)