Jump to content
Dan Bookwalter N8DCJ

Hooks into LV Compare

Recommended Posts

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

Share this post


Link to post
Share on other sites

I don't know of any hooks. That's not the same as saying they don't exist.

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

 

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.