04-07-2016 07:58 AM
I have written a tool do do automatic compares between files I have locally and their repository counterparts in a SVN repository.
Due to frequent RT deplays and code re-use over different targets, this causea a LOT of VIs to be marked as changed even though they are logically identical. A problem occurs when trying to batch compare these files with their repository counterparts (LV Compare, not binary compare) with the aim of automatically reverting any VI whose change is not "real". I keep getting "File not found" or other messages meaning I need to essentially sit in front of my PC waiting for it to do this automated work. I could do other things with my time.
Is there a way to completely remove and pop-up dialogs when running LVCompare vir super private methods?
Solved! Go to Solution.
04-07-2016 09:56 AM
If you are talking about the LVCompare EXE then there isn't really anything you can do. If you are calling the LVCompare VIs then you might get away with the Unattended Mode private method, which is supposed to try to suppress dialogs but I don't know what ones exactly it suppressed. Here is a thread were the private method is discussed.
https://lavag.org/topic/17845-silently-close-a-scripted-vi-with-unsaved-changes/
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-07-2016 10:09 AM - edited 04-07-2016 10:11 AM
Cool, that looks just like what the doctor ordered. Yeah, I am doing everything programmatically with the appropriate INI entries. Brown Invoke node and all.
Thanks
BTW, what are these LVCompare VIs you refer to? I'm in LV 2012 at the moment, I don't recall ever seeing those.
04-07-2016 10:49 AM
I managed to do this without any Brown Nose, oops, I mean Brown Node. I don't remember how I originally got it, but I use an App method called UI.Cmp VIs (which has a nice beige/yellow icon). I've not (yet) had this hang on me, but I don't use it directly with SVN repositories -- rather I point it to two folders, say one from Revision 1003 and one from Revision 1015, and say "Have at it". I get four lists -- VIs that are "identical" (meaning either byte-for-byte or, if different, "the same" with LV Compare with Front Panel and Block Diagram options on), VIs in Folder 1 but not 2, VIs in Folder 2 but not 1, and VIs that are different. I've managed to use this same function from at least LabVIEW 2012 on ...
Bob Schor
04-07-2016 11:17 AM
Hmm, true it seems to show up yellow. I really thought it was brown, maybe in older versions of LabVIEW.....
04-15-2016 06:19 AM
The VI posted int he linked conversation on LAVA seems to do (almost) what Ineeded. Just need to make sure I call it only AFTER I've asked the user for the file directory to work on....
Problem is that some VIs I have keep asking for passwords. I don't understand why because I actually add the passwords for all of our VIs upon starting the program but these VIs still cause a pop-up. I think there may be a problem with the VIs.