07-17-2015 04:28 PM
Getting the error: Case Structure: Selector values are not unique...
Using Producer-Consumer architecture w/ queue comms and SW-Events. DevSuite - LV2014
My consumer loop is using a typedef to control case selection. The typedef is an enum and has text names for each value. All my cases are in quotes and there are no duplicates in the typedef or the case structure.
Help
JF
Solved! Go to Solution.
07-17-2015 04:34 PM
Can you post your case structure as a snippet or VI?
07-17-2015 04:36 PM
07-17-2015 04:40 PM
Jeff.F a écrit :
Getting the error: Case Structure: Selector values are not unique...
Using Producer-Consumer architecture w/ queue comms and SW-Events. DevSuite - LV2014
My consumer loop is using a typedef to control case selection. The typedef is an enum and has text names for each value. All my cases are in quotes and there are no duplicates in the typedef or the case structure.
Help
JF
I don't know what you're doing exactly so I will guess. Do not write text between quotes for the case values. Wire the enum to the case selector, right click on the case structure and select "add case for every value".
It might be a little different as i'm teliing it from memory.
Ben64
07-17-2015 04:41 PM
Just to leave no stone unturned... 😄
I am assuming that you are double-clicking the error text and it brings you to the case structure that you already think has the error. Could it be there is another case structure hidden elsewhere which actually has the problem?
07-17-2015 04:43 PM
Do you have a non-typedef constant wired to the state wire somewhere?
Lynn
07-17-2015 04:57 PM - edited 07-17-2015 04:57 PM
You sure it's a typedef enum and not a typedef ring? Not sure if this could cause duplicates, but maybe?
07-17-2015 04:58 PM
I never type with quotations. I rely on the system to add the quotes. Good question. Check that one off.
JF
@ben64 wrote:
Jeff.F a écrit :
Getting the error: Case Structure: Selector values are not unique...
Using Producer-Consumer architecture w/ queue comms and SW-Events. DevSuite - LV2014
My consumer loop is using a typedef to control case selection. The typedef is an enum and has text names for each value. All my cases are in quotes and there are no duplicates in the typedef or the case structure.
Help
JF
I don't know what you're doing exactly so I will guess. Do not write text between quotes for the case values. Wire the enum to the case selector, right click on the case structure and select "add case for every value".
It might be a little different as i'm teliing it from memory.
Ben64
07-17-2015 05:01 PM
There are other case structures but clicking on the "Go To Error" button takes me to this case structure. It also doesn't change the case to any offending case. Just where-ever case was already up. Another good Q. Check that one off.
@altenbach wrote:
Just to leave no stone unturned... 😄
I am assuming that you are double-clicking the error text and it brings you to the case structure that you already think has the error. Could it be there is another case structure hidden elsewhere which actually has the problem?
07-17-2015 05:01 PM