LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure: Selector values are not unique

Solved!
Go to solution

It's an enum, not a ring.


@GregFreeman wrote:

You sure it's a typedef enum and not a typedef ring? Not sure if this could cause duplicates, but maybe?


 

0 Kudos
Message 11 of 17
(2,605 Views)
Solution
Accepted by topic author Jeff.F

I have had this happen twice before. To fix it, I have had to unwire the enum from the case structure selector and wire a numeric constant instead. This will change all of the case structure enum values to numbers. I then check for a repeated number, which gives me an indication of where the problem is. After fixing the error, re-wire the enum and all of your case names will come back.

 

The last time this happened, after wiring the numeric to the case structure selector I immediately deleted the numeric and re-wired the enum back to the case selector. Then I checked the case values, and sure enough one of the enum definitions was repeated. This has happened so infrequently that it has been hard to pin down the exact sequence of events that causes this to occur, but it seems like the case structure occasional doesn't update when a change is made to the typedef'd enum.

 

Give it a shot and see if this helps you find your error.

Message 12 of 17
(2,599 Views)

Yes.  Checked em all.  They were fine.

0 Kudos
Message 13 of 17
(2,590 Views)

Wow.  What the heck.  When I did this it:

It added ...

 

Nevermind.  It was a dupe that I missed.  Coulda swore!  Ah well...move on.

 

Thanks all for your support!  You were actually faster than Premier NI Support.

 

Best,

Jeff Francis

Message 14 of 17
(2,582 Views)
Can you take print screen and post it here?
0 Kudos
Message 15 of 17
(2,535 Views)
Screen shot of what?  The problem is solved.  It was just a dupelicate case.  I just could have swore I checked all cases several times and saw no duplicate cases.  I pulled a previouse version out of the repository and in that version there was a dupe.  Senior moment maybe...?
@Bhagya wrote:
Can you take print screen and post it here?

 

0 Kudos
Message 16 of 17
(2,452 Views)

This sounds close to what I saw.  I'll accept this because I was starting to think I was crazy.  Especially after I checked the case states 4 times.  I hope NI addresses this.  Some software bug causing gnashing of teeth and pulling of hair.

 

Best,

Jeff F.

0 Kudos
Message 17 of 17
(2,448 Views)