03-04-2013 05:28 PM
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.
03-04-2013 05:52 PM
Find in memory or in a particular VI?
03-04-2013 05:53 PM
In a particular VI
03-04-2013 06:23 PM
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.
03-04-2013 06:37 PM - edited 03-04-2013 06:38 PM
Edit: I realized my post wasn't totally relavent...so ignore please 🙂