LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find open type definitions with specific value

Solved!
Go to solution

I have an open-type definition used across my large vi. I want to search and locate the type definitions with a specific value, e.g. "write" or "read". Is it possible?

0 Kudos
Message 1 of 6
(1,285 Views)
Solution
Accepted by topic author Xiang00

Two possible options:

 

  1. Ctrl+F. Search for the text "write". Once you get the results window, you can type to filter the results, so you could type something like "enum cons" to get the just the enum constants.
  2. If that doesn't work, you could enable VI scripting and then write your own search UI: use the Traverse for GObjects VI to find all of the instances and have specific code to find what you want (check if each found object matches the typedef, check if its value matches the value you want, etc.). This is considerably more of a pain, as you need the code to find the objects, as well as the UI and code to go through them.

___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(1,275 Views)

@Xiang00 wrote:

I have an open-type definition used across my large vi. 


What is an "open-type definition"?

0 Kudos
Message 3 of 6
(1,235 Views)

@tst さんは書きました:

Two possible options:

 

  1. Ctrl+F. Search for the text "write". Once you get the results window, you can type to filter the results, so you could type something like "enum cons" to get the just the enum constants.

Thank you! I will try this option. The second one would be a tough work for me.

0 Kudos
Message 4 of 6
(1,217 Views)

@altenbach さんは書きました:
What is an "open-type definition"?

Sorry, I misunderstood the name. It is just a type definition.

0 Kudos
Message 5 of 6
(1,216 Views)

@Xiang00 wrote:

@tst さんは書きました:

Two possible options:

 

  1. Ctrl+F. Search for the text "write". Once you get the results window, you can type to filter the results, so you could type something like "enum cons" to get the just the enum constants.

Thank you! I will try this option. The second one would be a tough work for me.


One important thing I forgot to mention: you will probably need to click the more options button in the find window and configure it at least not search in hidden object data, as I believe that will return results from optional values (like unselected enum values).

 

Just remember that these settings persist for the next time you use the find window, so you might want to change them to something that matches your generic searches after you are done with your search or you might not find things you're looking for in future searches.


___________________
Try to take over the world!
0 Kudos
Message 6 of 6
(1,186 Views)