LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Intaris

Digital Display option for Enum case selectors

Status: New

I have a habit of putting an enum with a digital display visible in each of my case structure frames controlled via enum.

 

It has become second nature already. Today I stopped and wondered why we can't simply include a digital representation as an "[X]" appended in the visible selector.

 

So here I am asking for it.

 

Intaris_0-1728572984028.png

 

7 Comments
OneOfTheDans
Active Participant

How should this look when there are multiple enums for one case? Is it just appended, like "Frequency [1]", "Amplitude[2]"?

Intaris
Proven Zealot

Yes, exactly

Intaris
Proven Zealot

I would slightly change the example of OneOfTheDans....

I would suggest "Frequency" [1] rather than "Frequency [1]" as this makes it unclear whether the [1] is actually part of the enum entry or the index being displayed..... The content within the "" should properly match the actual enum string representation. The [x] should then be clearly not part of the...

 

Small point, but I think it's important.

wiebe@CARYA
Knight of NI

Scripting case structures would become an even bigger hell, as the only way to get info about the case statement criteria is (AFAIK) by the case strings.

 

Scripting case structures is already horrifying as different data types behave differently, e.g. numerics are [n,m], strings are ["n", "m").

 

Not that scripting should prevent evolution, but it's a factor to consider... Existing tools might stop working.

 

Maybe there's a way to get the info without touching the string?

 

Intaris
Proven Zealot

I would not add the addition of the Index to the string, so that the string (i.e. what's between the "") would not change with this. It would be a purely cosmetic addition on the BD, not of the actual underlying object.

 

If you squint your eyes, it's compatible with my last post....

wiebe@CARYA
Knight of NI

>If you squint your eyes, it's compatible with my last post....

 

And even the arrow in the OP points outside the string 😁 !  +1

Intaris_0-1728572984028

Intaris
Proven Zealot

Yeah, I totally did that on purpose.  🤔