LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

find indicator by typedef scripting

Hello. I was wondering if there was any way to find all instances of a specific type def programmtically using the VI scripting library. Thanks.

 

0 Kudos
Message 1 of 5
(2,224 Views)

Find in memory or in a particular VI?

0 Kudos
Message 2 of 5
(2,216 Views)

In a particular VI

0 Kudos
Message 3 of 5
(2,213 Views)

Two phase process:

 

Traverse the FP for controls (I assume you are familiar with the Traverse for References VI).  Cast the references to Control class, use the TypedefVI property to find the Type Definition.  If it is a valid reference (Not Not-A-Reference), the use the VI Name property to get the TypeDef name, compare to your target.  You can build an array of references this way.

 

Similarly traverse the BD for constants, other than casting to Constant, the rest of the code is the same.

0 Kudos
Message 4 of 5
(2,206 Views)

Edit: I realized my post wasn't totally relavent...so ignore please 🙂

0 Kudos
Message 5 of 5
(2,200 Views)