06-29-2018 06:15 AM
Before I go ahead and create a VI that does this, are there any publically available VIs that traverse through all objects in one hit without filtering by class type and add them to an array. I would like to obtain a reference to every single item in the block diagram or front panel.
Solved! Go to Solution.
06-29-2018 08:15 AM
I haven't done this with Scripting, but I have written VIs that I run when I have a Project loaded that traverse all of the VIs in memory (I run this after I load all of the Project's VIs into memory). Once I have the names of all of the VIs, I can (in a For Loop) interrogate their properties, such as their State, Preferred Execution System, if they are Reentrant, if Debugging is enabled, etc., and can programmatically, or through an "array of indicators" display, turn on or off selected properties.
Bob Schor
06-29-2018 11:38 AM
Specify a class name of 'GObject' when using the Traverse for GObjects.vi. That should do the trick.
Why are you wanting to do this?
07-02-2018 04:18 AM - edited 07-02-2018 04:20 AM
It's related to this: https://forums.ni.com/t5/LabVIEW/Resolve-conflicts-Missing-file-problem/td-p/3811148
I was going to go through every object that can be linked to a type definition, or a VI and check for incorrect paths (after casting it back).
If only there was a right-click plugin that showed the class ID and name of any selected object to make it easier to filter certain types.
07-02-2018 10:48 AM
I think just 3 calls to Traverse for GObjects.vi, one for SubVI, one for Constant, and one for Control, should do the trick. No need to traverse for everything.
12-13-2018 12:31 AM
12-13-2018 01:02 AM