LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Case Structure

Solved!
Go to solution

Hi,

 

I added a new case structure in my VI. However, after added, there is an error which I really have no idea how to solve it.

The error message :

 "Case Structure: selector values are not unique"

"A selector value is used by more than one case.  It may be in the middle of a range in one of the cases."

 

Anybody could help me please.

 

Thank you.

 

Firdaus 

 

0 Kudos
Message 1 of 7
(5,979 Views)

Hi,

 

It depends of the cases that you use. But the  error it is that you have two case same ( for example 2 times case 'A', or if numeric 2 times '1' ...).

 

U can post also a VI with only your case structure so we will able to answer quickly.

 

Greg

Greg S.
CNRS
LV 7.1 8.2 8.6 2009 2011 2012 2013 2014
LPMC - CNRS
N'oubliez pas de complimenter cela fait toujours plaisir.
Message 2 of 7
(5,972 Views)
can you post piece of your code...did u check all the cases.......This error comes when you have more than one case with the same selector value.......
Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 3 of 7
(5,971 Views)
Solution
Accepted by topic author Fird

Please post your code as an attachment. Seeing your code will make it a lot easier for us to understand your problem.

 

The error relates to the distinction between each frame of your case structure. You might have two case frames which launch for the same case selector input.

For example, if I had three case frames which were "0..", "1", "Default", then frames 1 & 2 would both launch if the input was 1 (this is not allowed). Check you statement definitions carefully.

Message Edited by Thoric on 05-11-2009 02:32 PM
Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 4 of 7
(5,968 Views)

Hi ALL,

 

Please refer to attachment.

 

Thanks.

 

Firdaus

Message Edited by Fird on 05-11-2009 08:34 AM
Message Edited by Fird on 05-11-2009 08:37 AM
0 Kudos
Message 5 of 7
(5,963 Views)
oops.............can u post LabVIEW 8.5 code?..........
Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 6 of 7
(5,958 Views)

Hi ALL

 

I found the mistakes already.

 

I have two same case structure.

 

Thanks a lot for your help.

 

Firdaus

0 Kudos
Message 7 of 7
(5,957 Views)