LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

triangular select function to select case

Solved!
Go to solution
So does that mean Case 9 is my default case?  Then, why can't I see it marked as default when I right click the case list?
0 Kudos
Message 31 of 35
(917 Views)

It should look like this:

 

default case

 

Message Edited by vt92 on 03-18-2009 07:41 AM
>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 32 of 35
(912 Views)
It definitly does not.  All is has is 0..,1,2,3,4,5,6,7,8,..9
0 Kudos
Message 33 of 35
(906 Views)

BME genuis wrote:
So does that mean Case 9 is my default case?  Then, why can't I see it marked as default when I right click the case list?

No. You have to explicitly select which case is the default case. Look, we're going round and round here. This is explicitly explained in the manual. Have you actually opened it? I dug up the 5.0 manual. Here is the information on page 19-14:

Case structures choose a single subdiagram, or case, to execute based on an
input value, which is called the selector. With Case structures, you can do
the following.

  • Specify lists and ranges of selector values that correspond to a case.
  • Use an integer, a boolean, a string or an enum type as a selector.
  • Specify a default case (or action).
  • Sort cases based on the first selector value

 

 Here is the picture on page 19-17:

 

and here is the text on page 19-18:

The Make This Case Default item in the pop-up menu specifies a
particular case to execute if the selector value is not listed in the Case
structure. The word Default is listed in the selector value at the top of the
Case structure. You must specify a default case for a Case structure if it
does not contain selectors for every possible selector value.

 

I'm sorry if I sound flippant, but I honestly don't know how to make it clearer than that. 

Message Edited by smercurio_fc on 03-18-2009 08:58 AM
0 Kudos
Message 34 of 35
(893 Views)

Great, well you already gave me the right answer. 

 

If the case structure was driven by a numeric value, and you sent a value larger than the largest value, then the last case would be executed. (when there is no default case specified)

 

Thanks so much!

0 Kudos
Message 35 of 35
(889 Views)