LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search Hierarchy for All Enumerated Types

I have inherited a large hierarchy of code (about 1200 VI's) and am in the process of modifying it.  Unfortunately the previous developers who have worked on the code either did not know about Type Definitions or chose not to use them for the challenge.  I have updated an enumerated type and after poking around have found that there are many others like it peppered throughout the hierarchy that also need updating.  Their names are similar but not necessarily the same, close enough that if I could search over all enumerated types in the hierarchy I chould most likely pick out the ones I need and dare I say replace them all with a single type defined enumeration.  The problem is that I dont know how to search a hierarchy for all enumerated types, I see an option to search for all front panel terminals but the search quits after finding 2000 (not to mention that this enumeration will exist as control, constant or indicator).  Anyone have any ideas?
0 Kudos
Message 1 of 5
(2,510 Views)

jmcbee wrote:
...Anyone have any ideas?

After backuing up everything...

 

Make one instance a type-defed enum and then re-name an elements. That should break everything. Then go through and do the replacements and (after a couple of days of that) you are done.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 5
(2,506 Views)
I like your optimism.
0 Kudos
Message 3 of 5
(2,495 Views)

To help you with this, you can programmatically search your VIs to find the number of Enums you have in each. That might at least help you keep track of your changes. You could even make all of them blink so they are easy to find. For details on how to do this, see the following thread:

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=359515&requireLogin=False

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 4 of 5
(2,462 Views)

Will S. wrote:

To help you with this, you can programmatically search your VIs to find the number of Enums you have in each. That might at least help you keep track of your changes. You could even make all of them blink so they are easy to find. For details on how to do this, see the following thread:

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=359515&requireLogin=False


 

That will help you find them on the FP but not the block diagram.

 

For the BD this should work.

 

 

 

Just select the enum constant for the numeric palette.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 5
(2,455 Views)