Hi,
While executing the attached VI an error appears stating "no case for some selector values".Can any one explain the reason for this.
Solved! Go to Solution.
You did not cover all of the possibilities of the string in the case structure in the bottom loop. Did you make a "Default" case?
yes,I have created a default case.My condition is when I enable a boolean control only that partoicular case should get executed.That is what I have given in my first while loop.
Hi,
In the attached VI,case structure does not execute the case fed to case selector terminal.I am unable to make out the reason for that.If any of you find the solution kindly share with me.
What is it you what to do?
For us to help you, you need to explain your problem in details.
And you need to tell us what the program should do.
How come you attached a VI that looks completely different from the image attached earlier? It is kind of hard to help you solve your problem when the problem changes from one message to the next.
Which case selector? What value?
I am noticing you don't have a "black" case in your consumer loop, but it is a possible value coming from your top loop.
Your cascading of case structures makes it really hard to follow your code. You should use an Event Structure to key off of when your buttons change values. It'll make things a lot easier to read.
Hi,
Hereby I have attached the question and my updated code.I am getting the result for the first tabulation.For the second tabulation I sont know how to implement the concept using event structure.Kindly share your solutions.In case of any clarifications let me know.
You really need to learn the State Machine. That will be the best way to go with any CLD exam. And you will be able to do it all in a single loop.
I would recommend keeping an array and an index in a shift register. This array will tell you which lights turn on for which time iteration.
Here is a link to some help on the different design patterns in LabVIEW .
That is a must starting point for CLD.