LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect variant type casting

Solved!
Go to solution

I have done a piece of refactoring lately that involved replacing a variant with an object.  Variants being wonderful like they are, any old interface VI which would take a variant input simply casts the object input to a variant.  Is there any way of searching in LabVIEW for this casting action?  I'd prefer not to have to find every module that took the variant/now should take an object, if possible.

0 Kudos
Message 1 of 4
(3,025 Views)
Solution
Accepted by topic author reformedView

Easiest way is to open your project, open a VI that you know has the function, click on the function and hit <ctrl>+f.  The find dialog should already be set to "find objects" with the function already selected.  Set the dropdown to <All VIs in Application instance> and hit Find.

 

You can do it without selecting the function before <ctrl>+f -- you'll just need to a little bit of navigation. 

0 Kudos
Message 2 of 4
(3,013 Views)

Hey, good one.  Silly me 😛  Thanks.

0 Kudos
Message 3 of 4
(3,010 Views)

You are trying to find when the data was just simply coerced into a variant?  Sorry, but there is not any simple way to do that.  You will need to go through each module and find that ones that you changed.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(3,008 Views)