From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

I there a way to find deprecated property/invoke node calls?

Hi all,

I'm upgrading a large app from LV 7.1 to LV2010 and it turns out that more than just a few VIs are calling property/invoke node that are now deprecated (they appear in red instead of yellow).

When I come across one one them I modify the node to use the corresponding new property/method but I could easily miss some of them.

So is there a way of getting the list of all calls to deprecated property/invoke nodes?

Thanks in advance for any help


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 1 of 16
(14,159 Views)

Check VI Analyzer. If I recall correctly, it has a test for finding deprecated properties/methods. I might be wrong, but I think so.

Message 2 of 16
(5,651 Views)

Indeed! thanks for the pointer!

http://zone.ni.com/reference/en-XX/help/371361G-01/lvvianalyzerhelp/general_tests/

>>

VI Properties

The tests in the following list analyze the overall setup of a VI.

  • Built Application Compatibility—Checks for properties or methods that are not supported in built applications. Run this test on any VIs you want to build into an application to ensure they will function properly.

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 3 of 16
(5,651 Views)

If that fails, let us know.  There are some private methods to determine whether or not a property or method node contains deprecated items.  If you need them, I can track down whether or not I can release VI-wrapped versions of them.

Message 4 of 16
(5,651 Views)

Hi,

It didn't work it only point me to properties that can't go into an exe but it will skip those that are deprecated. For instance in the VI below the report would only point me to the "AssignCtrlToTerm" node and not to the "Create Constant or Control" node (that is now replaced with the "Create form Reference" I assume)

Create VI Reference In on VI_BD.png

Oh, and would that work?

Example_VI_BD_1.png

Cheers


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 5 of 16
(5,651 Views)

I can post VI-wrapped versions of the internal methods.  What version of LabVIEW do you want them in?

0 Kudos
Message 6 of 16
(5,651 Views)

2010, 2011and to 2012b if possible please.

Thnaks a lot!


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 7 of 16
(5,651 Views)

Here you go.  These are written in LabVIEW 2010, and have locked block diagrams, but will upcompile to 2011 and 2012 with no problems.  Let me know if you run into issues.

I would probably use them to find deprecated nodes as follows:

  1. Load your top level VI(s)
  2. For each top-level VI, find all callees using the Get VI Dependencies method (replaces the deprecated Callees property).
  3. On each VI, use Traverse for GObjects.vi to find all the property and method nodes.
  4. For each property and method node, run the appropriate VI below and cache any info of interest.
Message 8 of 16
(5,651 Views)

Thanks a lot, I'll try it out and let you know!


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 9 of 16
(5,651 Views)

Oh.. and one question, what would you use in LV 2010 to replace the VI property node "Callees Paths"?

Show subVIs location_BD.png

thanks in advance


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 10 of 16
(5,651 Views)