Structure of the case: selector values are not unique

Get the error: case Structure: selector values are not unique...

With the help of producer-consumer architecture w / SW-events and comms of queue.  DevSuite - LV2014

My loop of consumers use a typedef for case selection control.  The typedef is an enum and the names of text for each value.  All my files are in quotes and there are no duplicates in the typedef or structure of the case.

Help

JF

Jeff.F wrote:

Get the error: case Structure: selector values are not unique...

With the help of producer-consumer architecture w / SW-events and comms of queue.  DevSuite - LV2014

My loop of consumers use a typedef for case selection control.  The typedef is an enum and the names of text for each value.  All my files are in quotes and there are no duplicates in the typedef or structure of the case.

Help

JF

I don't know what you're doing exactly what I think. Do not write text in quotes for values box. Wire the enum in the switch case, right-click on the structure of the case and select "add a case for each value.

It might be a little different because I'm teliing memory.

Ben64

Tags: NI Software

Similar Questions

  • Problem with the Structure of the case

    Hello

    I added a new structure of matter in my VI. However, once added, there is an error that I have really no idea how fix it.

    The error message:

    "Business Structure: selector values are not unique.

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

    Could someone help me please.

    Thank you.

    Floret

    Please your zip code as an attachment. See your code will make it much easier for us to understand your problem.

    The error relates to the distinction between each image of the structure of your business. You can have two business executives who launch for the same input selector case.

    For example, if I had three managers of cases that have been '0..', '1', 'Default', then frame 1 & 2 times would launch if the entry is 1 (this is not allowed). Check you definitions of statement.

  • How can I sort the selector non-unique values and make them unique in the structure of the case?

    I want to clarify 3 ranges as breeders of the case.  For example, I am able mV and I want 0.10, 10.20 and 20.30, but, when I enter them in this way, I get an error that says that the selection values are not unique.

    I want case to answer when the input is greater than 0 but less than 10.

    I want the second case to react when the input is greater than 10, but less than 20.

    I want the third case to react when the input is higher than 20, but less than 30.

    And there is the case by default, 0.  The case structure think my default is bunk with my case?  How a list correctly these ranges in the Tag Chooser structure cases to avoid the error?

    Also, I plugged in my blood "to LONG integer" and then to the Terminal case structure to convert entire for the entry of case structure (blue wire).  Is it the right thing to do, because my values of tension will certainly be decimal numbers, not integers.

    Before converting in I32, for example, use "turn to + inf" and settle the case accordingly.

    (A plain to_I32 rounds to the nearest integer, making it impossible to meet limits).

  • Value of cluster lost when you leave the structure of the case

    Hi all

    I'm having a problem with a particular VI I'm working. (FYI it's in Labview 8.0)

    The VI is set to run a current source, voltmeter and thermometer, then recording and graph the data in various ways that can be selected by the user.

    Everything seems to work fine except a particular graphic method. When I try to graph current compared to the tension, the current value is lost estates. In a case the current and voltage are combined to form a cluster, and then leave the case structure to be later appended to a table of cluster.

    However, the value of the cluster is lost when the chart is set for the voltage vs. Any other method and it works correctly.

    I can't understand why this is happening as it does not make much sense than other methods of work charts, but this one isn't when it is coded the same exact other than having the different variables.

    I have attached the VI with added indicators showing that the value of cluster is lost once he leaves the box structure. Any help would be appreciated.

    Thank you very much and I apologize for my extremely messy VI.

    -Nathan Cernetic

    You really need to boil this down to something we can run and reproduce the problem.

    Have you tried to break a few relevant connections and rewire? Something is possibly corrupt.

    Besides being a mess, your VI has quite a few glaring errors.

    Let's take a look at the structures at the top right:

    • 90% of the code is the same in all the structures of three cases, so all that needs to be inside the structure is the small part where you built the table 2D. All the rest is outside of the case.
    • The structure of the sequence has no useful function.
    • Why do you need to reverse the table with each iteration of the small loop FOR? Once before the loop would be sufficient. Right?
    • Why you use table built inside the small loop FOR, but no autoindex on the edge of the loop? All you ever get is an array containing exactly one element, no matter how the loop runs. Seems unnecessary! (see below for an alternative image).
    • You wouldn't even need to reverse if you want to use "built the table" instead of "insert into the table at position 0" in the central part.

    Other: You constantly hammer all nodes of your property. The only need that will be called when things change. Again, you have far too many cases. For example, in the structure of the case where you are having problems, the same nodes of property exist in all cases. A single instance of the property node belong outside the case and only the string inside each case constants. Whenever the code is the same in all cases a case structure, which code belongs to the outside!

  • RandomGen elements, case structure nothing if it's false, while the loop passes iterations, can not get the values in table outside the structure of the case

    Hello!

    I tried to build a trigger that triggers a true value each 1000 milliseconds (from the first real);

    which real command structure box to a value of the randomNrGen of the sample and place it in a table.

    but I would like to USE this table and I can't do this beacause I can not get out of the structure of the case.

    AND:

    the while loop ignores samples; If you run the vi and look at the speed at which the table fills, ypu notice it is not periodic: the first few items are inserted at 1 second interval, but then it jumps one;

    would it be because of the wait time 1ms?

    1. How can I create a structure that does this:

    If set to True, it samples a value from Genesis at random and places it in the table

    OTHERWISE, it does NOTHING, without zeros sent to the table just waiting for the next true and only the values sampled at True remain in the table?

    2. How can I stop it pop samples (multiples of 1000 in my case)?

    In conclusion: I need to be able to take samples on the sample generator and store them in an array of 3d in a zig - zag (1.jpg) way, but able to think about it, we need to go beyond these two questions.

    Please ignore the meter.

    Please help me!

    TibiG wrote:

    Thanks, Crossrulz!

    This did not omit all values and it works fine.

    Is it possible to get information in a case without making use of the large loop?

    My program will become very complex (I need to synchronize a magnetometer and a stepper motor to make a 3d map of the magnetic field of the magnet) and I want to do everything as simple as possible.

    If there is a way to get information about a case structure, other tnan using registers with shift on the big loop, and you know it, please show me.

    Thank you!

    You could also use a Feedback node, just keep it out of the structure of the case.

  • Not not not in the Structure of the case

    You want to get suggestions on the best way to do it.  In theory, it will be the best if I can create a structure to deal with condition 'no '.  What I mean, it's the entrance to the structure of matter is 3, and I have a case which, with such condition does not (1, 2, 4, 5), the case would run.

    Another example

    If different x of 1, 2, 4, 5, then

    to do this

    Else If x is not equal to 6, 7, 8, 9, and then

    do this

    End

    Yik

    ^ You can also simply make a table with your constant inside and feed to the comparison table, and who publishes an array of bool.

    Another approach would be to wire the digital directly to the structure of the case and type the desired number of a case to represent.  Several case numbers are separated by commas.  A range of numbers can be represented by "..".  for example 6,7,8,9 = 6.9 in the same way... 0 is the range - inf by 0 and 5... is all values greater than or equal to 5.

  • Structure of the case is not updated after changing type "enum".

    Hello

    After changing a type of 'enum', the structure of the case has not been last updated - it still contain 2 States, while after modificatiion, it must contain 4 cases.

    Is this a normal behavior?

    Thank you

    Pavel


  • I want to display strings that are in the structure of the case, in a text area

    Hello

    I write a vi, which has the structure of the event inside that one

    structure of the case.

    I have a problem, I have two cases.

    (1) when the value is true it executes the real deal, first it reads the string constant and second string indicator which is my out is put.

    (2) in the case of false it is pritty much even.

    I want to display the entries and exit puts different situations in the same text box is one for input and one for output.

    Someone can help me.


  • iDRAC error on PowerEdge R720 (SWC0700: iDRAC is not ready.) The configuration values are not available.

    My PowerEdge R720 started with iDRAC Initialization Error as topic above.

    SWC0700: iDRAC is not ready. The configuration values are not available.

    Noise of FAN after pressing F1 to continue. Please what can I do? It's my edge transport server and it is now off to find out what needs to be done. Please notify.

    Been,

    Network administrator,

    ExecuJet Aviation Nigeria.

    Hello, I'll email you to ask for the serial number. Thanks Marco

  • structure of the case of base enum

    I inherited code that extensively uses enums (typedef) as the selector of the case. There are usually 2 or three separate cases, all enum items are grouped together functionally. Enums are listed in the individual case structure (if they are not contiguous) or they are grouped together in the ranks in the tag selector. The "range" is the thing that gives me headaches.

    In order to change the code, I need to add items to the typedef enum. Depending on where I add the point, different actions may occur. If I add a component between two consecutive elements, it creates a range (no broken arrow) and uses this case. If it is placed within an existing range, it also uses this case to the beach (no broken arrow). I can add to the 'end' of the list without any problems until the customer wants choices sorted differently. Even after obtaining the program be effective, new sorting of enum causes the case structures recalculate the lines. This can break the code, or it can use an unexpected case "range". It's a nightmare to debug.

    I searched the forum and the only solution I found is to have a case for each enum item (this by definition would imply no. VARIED). It seems exaggerated, especially if I have 20 items or more in the enum and there are really only two choices in the structure of the case. For any small change in the code, I have to edit each individual case (probably easier create a Subvi and change that). It has to be a simple solution. If I could select explicitly enum items rather than to have LabVIEW automatically generate a range, my problem would be solved. Is there a property to stop the creation of these darn ranges? Any help would be greatly appreciated.

    Use a ring of text instead of an enum.  The enum changes the values to be sequential.  A ring of text will allow no sequential values.  When using a ring of non-sequential text, the value assigned to a specific item moves with him.

  • Difficulties related to the Structure of the case

    Using a structure of the case, I had a problem with the structure of the case. I need the case structure to change a vlue as the case of entry provided.

    However, the entries of cases (boolean) I want to give the structure of the case are '<0' ,="" '="0'," '="">0' here I can provide only structure dealing with > 0 or<>

    How can I include the condition ' = 0' in the case of entry so that the structure of the case ".

    1 decreases the value of the parameter if the case is '<0' >

    2 does not change the value of the parameter if the case is '0',

    3 increases the value of the parameter if the case is ' > 0.

    I've included the VI that I work as an illustration.

    PS - the VI has a selector to change the input variable and has a digital indicator to display the output of the structure of the case variable. Thus, the digital indicator must be constant, if the input variable is not changed.

    Thank you in advance.

    As others have said, you can connect the digital directly to the switch case and create ranges.  Since you'll get weird rounded when using floating point data types, use the function Sign (in the digital palette) to convert your difference in [-1.0.1] and then use this result to the structure of the case.

  • How to stop queuing in the structure of the case

    I'm trying to find the Summit and the Valley of the signal. I'm able to find it, but I don't want to make the zero with the pic. I just want to get the value of Ridge and Valley. Is it possible to stop queuing the values in the structure of the case? As I have a several signals which peak/Valley must be found that I can't use the library functions.

    Kanye wrote:

    I'm trying to find the Summit and the Valley of the signal. I'm able to find it, but I don't want to make the zero with the pic.

    First of all, and more which has been mentioned, there are serious shortcomings, making the Subvi is not very universal.

    • Your Subvi does NOT export the correct value of the Ridge (or Valley), but the value just after (which is more a peak or a Valley!)

    • Your Subvi is only the positive peaks and valleys negative. This seems very restrictive. In general, you could easily have a Valley even if all the data is positive. Right? (With the exception of the Valley of death for example, most of the valleys are above sea level, for example )

    • Your code is extremely complicated, with two sets of structures of the case, each stacked three deep, four change records and tons of comparisons. Here is a simpler version. (To imitate your outings, place a statement select after each comparison and output the value or zero depending on the result of the comparison).

  • Help with the Structures of the case

    I have a problem switching between the true and false cases between the structures of the case. I'm writing a VI that generates a random number between 0 and 10 once every 0.5 seconds, and then adds the numbers until the total reaches or exceeds 100. At that time, it should start to subtract the number generated at random until it reaches 0, then switch again adding etc.

    I have a problem switching to the case of 'false' once the sum exceeds 100. If anyone can help with that would be great!

    To make things more simple exchange the Boolean value for an enumeration with only two values you can call "Count Up" and "Count Down".

    Create a second shift register to hold the enumerated value specifying whether to "Count Up" or "Count Down". Initialize the new register shift to count up, and in the case of "Count Up" in the structure of the case, increment the value of data and test to see if it is greater than 100. If this is not the case, do not change the value in the registry to shift direction. If data has exceeded the limit, change the values in the shift of direction register account to "Count Down".

    In the case of 'Count Down', decrement the value of data and test a value less than 0. When the value of the data is less than the lower limit, change the values in the change of direction of the County Register to "Count Up" and you're done.

    Mike...

  • Switch timer within the structure of the case?

    Hello

    I am relatively new to LabVIEW, hoping someone can help me with something that I am trying to solve. I am working on a system for the acquisition of data for a formula SAE car and try to design a VI that will be time how long it takes for the car complete the trial of acceleration of 75 m. The timer will be actvated in now the pedal for 5 seconds and save time for the file when 75 m is complete.

    I've set up a business structure that works in the following order.

    1: Check the brake pressure (if threshold, go to 2)

    2: how long the brake was pressed for time. (If more than 5 seconds switch to 3. If the brake is provided within this period, date back to 1)

    3 whether the movement of the wheel (wheel strats move, go to 4, otherwise, keep control)

    4. begin to measure speed and distance. (once reached, proceed to 5)

    5. replace all over again, save the file (then return to 1)

    I'm pretty happy with everything but part 2. I tried a timer pending within a sequence of flat, check that the pressure is fine, but pedal pulses rather that now he can active it, and using a true/false with the same function case structure waiting does not like LabVIEW bed not true/false value, once within the structure of the case.

    I would be grateful if someone could point me in the right direction!

    Thank you

    Kevin

    get rid of the sequence, here your timer elapsed, also got rid of your case to check brake pressure, do not use ms of waiting for your timing of sequence...

  • With the help of strings concatenated in the Structure of the case

    Hello world

    I'm all new to LabView. Right now, I just trying to build a graphic program of different waves (such as the sine or square) with or without different types of noise. I concatenated two strings and then participating in a housing structure. Nothing graphic when have two concatenated options, but it does not work when it's just the different types of wave are chosen. I think it might have to do with how I'm the each case titration structure option, but I'm not sure. For any help or suggestion is greatly appreciated.

    I would use a sequence of structures of the case. Take it step by step. Use enumerations for readability.

Maybe you are looking for

  • HP ENVY x 360: HP ENVY x 360 Win 8.1 battery plugged not removable, does not support

    HP dear supporters, I have a HP ENVY x 360 laptop with Win 8.1 operating system. He writes that plugged in, not charging. This laptop has a non-removable battery. I read the forums and advice but neither solved my problem. I tried to close, plug off,

  • Satellite A300 - grayish colors on the screen

    Where to play games on my Satellite A300 (PSAGCA-02W010) and looking at photos of all colors seem a bit dull and grayish. When I called they said them it could be "limits the display" and I could have looked but I would be charged $120 if it was beca

  • On Satellite A300D battery problem

    Hello friends! Don't you know that we have guaranteed about the battery? I mean my battery runs for 15 minutes.Can I have another for warranty? 17-F A300D Thank you.

  • Problem with the sensor of pressure and NI 9205 with NI 9263

    I have a bridge pressure sensor based with a range of 0 - 5000 psi and requires a 10 V excitation. The output is 3 mV/V. I plugged on a cDAQ with a NI 9263 providing excitement V 10 and a NI 9205 to read the output values. I would expect a 0-30 mV ou

  • Test bench for myDAQ

    Hi all I'm designing a test bench for myDAQ, I implemented using a test of VI for each function in the model of test bench and in the end, I write all these results in a word file. In fact, there is not any specific problem I want that the community