06-27-2014 01:05 PM
I have many pairs of VIs to compare, and I have their paths ready in a text file. I have to go through LabVIEW's "Tools >> Compare >> Compare..." menu each time to compare a pair, then scroll through the list of VIs in memory to select VIs to compare. That gets old fast.
How can I automate this?
Solved! Go to Solution.
06-27-2014 01:17 PM
Do you use any form of source control?
TortoiseSVN allows you to select LVCompare as your diff viewer for .vi files.
This makes it pretty easy.
VSI's TSVN Toolkit makes it even easier.
06-27-2014 02:39 PM
The setup for SVN is:
"C:\Program Files (x86)\National Instruments\Shared\LabVIEW Compare\LVCompare.exe" %mine %base -nobdcosm -nobdpos
So I imagine (haven't tried it yet) that if you substitute your file paths for %mine and %base, then it should work.
06-27-2014 02:51 PM - edited 06-27-2014 02:57 PM
You could just run the vi
Ah I didn't read that right. Hmm no terminals. that is very sad
Go next door to procmphier.llb and run that compare *(it also compares the file
06-27-2014 03:00 PM
Thanks Taki1999, that worked perfectly the first time!
07-04-2014 12:43 PM - edited 07-04-2014 12:43 PM
Hi,
I was also looking for this same funcionality.
However, I tried to install SVI TSVN Toolkit in VIPM and it says TortoiseSVN needs to be installed first. But where do I install that? I don't see it in the list of packages in VIPM. Where do I get it?
I have LabVIEW 2013 SP1 (the latest version released in Europe) Full Development System.
By the way, I saw the LVCompare in the Shared folder, but I don't see it in the Functions palette to drop it on block diagram. I had to use only the PNG supplied above by Jeff.
And most of all, I don't see "Compare" option in the Tools menu.
Did I miss to install something in my base system?
Thanks ahead!
07-04-2014 01:02 PM
07-04-2014 01:55 PM
@Vaibhav wrote:
Hi,
I was also looking for this same funcionality.
However, I tried to install SVI TSVN Toolkit in VIPM and it says TortoiseSVN needs to be installed first. But where do I install that? I don't see it in the list of packages in VIPM. Where do I get it?
I have LabVIEW 2013 SP1 (the latest version released in Europe) Full Development System.
By the way, I saw the LVCompare in the Shared folder, but I don't see it in the Functions palette to drop it on block diagram. I had to use only the PNG supplied above by Jeff.
And most of all, I don't see "Compare" option in the Tools menu.
Did I miss to install something in my base system?
Thanks ahead!
Tortoise SVN is a source control program. It really has nothing to do with LabVIEW other than the fact that we use TSVN to control our software updates. You can download the installer here:http://tortoisesvn.net/downloads.html
The LVCompare is an executable in the shared folder. And that VI Jeff pulled is not in the palettes. You can use the command line to call it with the parameters to point to your VIs that need compared.
07-04-2014 07:18 PM
@Dennis_Knutson wrote:
Did you Google tortoise? The main page; http://www.ni.com/downloads/instrument-drivers/
The comparison tool comes with the professional version.
Thanks for the reply.
No, I didn't google, because I thought everything LabVIEW is found on the forums. 🙂
So, does it mean my Full Dev. System version cannot have "Tools>Compare" menu item?
07-04-2014 07:21 PM
@crossrulz wrote:
Tortoise SVN is a source control program. It really has nothing to do with LabVIEW other than the fact that we use TSVN to control our software updates. You can download the installer here:http://tortoisesvn.net/downloads.html
The LVCompare is an executable in the shared folder. And that VI Jeff pulled is not in the palettes. You can use the command line to call it with the parameters to point to your VIs that need compared.
Thanks for the link. I installed tortoisesvn and also I could install the SVI TSVN Toolkit. But that doesn't change anything. I still don't see how I can compare the two VIs.
I have seen that LVCompare in the shared folder. Do I only have to do it from the command prompt? Tried but doesn't look like the solution.