LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search for enum constants with same value (state machine)

Hi All,
 
 
I got an unknown state machine vi. The state machine is controlled by an enum (typedef). I have to modify this vi, adding new states. Is there any way to find all instances (constants) of this enum with a specified value? 
 
I can find all instances (more than 30) but a cannot specify a value related filter and then I have to check the values step by step by hand. 
 
 
0 Kudos
Message 1 of 11
(3,956 Views)

Hi

If this enum is not a strict typedef (where all instances are updated automatically if something changes), you can perform a text-search for a specific value.

Hope this helps.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 11
(3,953 Views)

Hi, did I get the answer from in-house  APM ?

I've already tried to use the text search but didn't work. I will try again...

The enum is just type Def. but the automatic update of states and enum constants works. I asked it for map a state machine...

Thanks

 

0 Kudos
Message 3 of 11
(3,947 Views)

APM??

Now I understand - I did not think enough after reading your post the first time. I don't know of a way to do what you want. I'd do either a text or an object search and then look at each hit.

Very uncomfortable but the only way I know.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 11
(3,940 Views)

What is "APM"?

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 11
(3,911 Views)

 

Hi, APM means Automotive Playback Modules (in the Philips World) . We develop mainly Optical Storage Devices (CD /DVD) for car applications. 

0 Kudos
Message 6 of 11
(3,908 Views)

Hmm....

Where is the link between me and APM???

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 7 of 11
(3,905 Views)

Thank you.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 11
(3,901 Views)
Hi, I read NI forum often. In the past one topic was really siimilar to our problem. Your notes caused the feeling that you work for APM.  So I just guessed (but looks wrongly) .....
 
 
0 Kudos
Message 9 of 11
(3,896 Views)
If you have an enum with the values "Monday", "Tuesday", and "Wednesday", for example, and you search for "Monday", by default you will find ALL instances of the enum, no matter what they are set to. Some of them will show up as hidden text, some as plain text.

If you want to find ONLY the ones that are SET to "Monday", then look under MORE OPTIONS, and UNCHECK the HIDDEN and DESCRIPTION boxes.

Then you will only find the ones that are SET to "Monday".

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 10 of 11
(3,884 Views)