10-31-2014 05:21 AM
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.
10-31-2014 05:24 AM
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?
10-31-2014 06:02 AM
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.
11-01-2014 05:24 AM
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.
11-01-2014 10:35 AM
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.
11-01-2014 12:09 PM
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.
11-02-2014 01:40 PM - edited 11-02-2014 01:41 PM
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.
11-02-2014 11:42 PM
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.
11-03-2014 06:51 AM
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.
11-03-2014 09:10 AM
Here is a link to some help on the different design patterns in LabVIEW .
That is a must starting point for CLD.