Dan Bookwalter N8DCJ Posted April 17, 2019 Report Share Posted April 17, 2019 After much googling I think I know the answer , but , I will ask here... I need to write a utility to compare vi's in a large project , and probably future projects.. Automating the Compare Hierarchy is pretty simple , but , I need to go one step farther and and show the differences circled then saved as a jpeg etc.... As of now there doesn't appear to be a way to automate showing the differences , it will be a real pain to have to do it all manually ... We are currently using LV 2012 , but , will be upgrading to either 18/19 soon... Dan Quote Link to comment
Aristos Queue Posted April 18, 2019 Report Share Posted April 18, 2019 I don't know of any hooks. That's not the same as saying they don't exist. Quote Link to comment
FragRz Posted April 18, 2019 Report Share Posted April 18, 2019 There is a private method called 'User Interaction:Compare VIs XML' which is able to compare VIs and generate an HTML report. I didn't test it too thoroughly but I think it's worth looking at. I currently do not have LabVIEW 2012 and do not know if it is available in this version. Compare_Private_17.vi Compare_Private_12.vi 1 Quote Link to comment
Dan Bookwalter N8DCJ Posted April 18, 2019 Author Report Share Posted April 18, 2019 FragRz I have the evaluation version of 2018 , so i looked into the 'User Interaction:Compare VIs XML and it does just what I need .... I will have to wait until we upgrade to utilize it ... Thanks Dan Quote Link to comment
shoneill Posted April 18, 2019 Report Share Posted April 18, 2019 Did not know about that function. Nice. Quote Link to comment
Aristos Queue Posted April 18, 2019 Report Share Posted April 18, 2019 Likewise -- I never heard of it; seems useful. Quote Link to comment
Dan Bookwalter N8DCJ Posted April 19, 2019 Author Report Share Posted April 19, 2019 Well , since I installed the evaluation version of LV2018 i played around with the Compare VI Hierarchies tool , it actually does everything I need ... But , be cautious using it at first when Creating a Report , it did the webpage report just fine , when I tried to create a Word Doc it failed , AND , deleted everything in the directory it was supposed to save the Word doc in , luckily I was using the Temp directory so it wasn't a big issue , in fact on a second try at it , it deleted the Temp directory too , not just the contents... As I said I am using the evaluation version , so , maybe something is wrong with my install. Dan Quote Link to comment
FragRz Posted April 19, 2019 Report Share Posted April 19, 2019 Sorry, I should have explained more clearly what it means that the method is private. In short, private methods are not officially supported - they may not have documentation, they may not work, or they may even have unexpected side effects - just like in your case. Quote Link to comment
Dan Bookwalter N8DCJ Posted April 19, 2019 Author Report Share Posted April 19, 2019 25 minutes ago, FragRz said: Sorry, I should have explained more clearly what it means that the method is private. In short, private methods are not officially supported - they may not have documentation, they may not work, or they may even have unexpected side effects - just like in your case. FragRz I didn't mean the private Method you referred to , I was talking about the when you have LV open and go to Tools -> Compare -> Compare VI Hierarchies... Dan Quote Link to comment
Aristos Queue Posted April 24, 2019 Report Share Posted April 24, 2019 On 4/19/2019 at 8:13 AM, Dan Bookwalter N8DCJ said: Well , since I installed the evaluation version of LV2018 i played around with the Compare VI Hierarchies tool , it actually does everything I need ... But , be cautious using it at first when Creating a Report , it did the webpage report just fine , when I tried to create a Word Doc it failed , AND , deleted everything in the directory it was supposed to save the Word doc in , luckily I was using the Temp directory so it wasn't a big issue , in fact on a second try at it , it deleted the Temp directory too , not just the contents... As I said I am using the evaluation version , so , maybe something is wrong with my install. Dan I got a PSE to work on this for a while this week. We couldn’t replicate the issue. It’s a pretty bad bug — wiping out the whole directory. If you have more explicit steps to reproduce, please consider filing a bug report with NI. Quote Link to comment
Dan Bookwalter N8DCJ Posted April 25, 2019 Author Report Share Posted April 25, 2019 15 hours ago, Aristos Queue said: I got a PSE to work on this for a while this week. We couldn’t replicate the issue. It’s a pretty bad bug — wiping out the whole directory. If you have more explicit steps to reproduce, please consider filing a bug report with NI. AQ I will try again today and see if i can replicate it.... Dan Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.