Dennis Knutson wrote:
No, you don't understand. A single default case will handle all numeric values that are not currently defined. You've got cases for 0,1,2,3. If you have another case with a value of -1and made that the default, that will handle all values that are less than 0 and all values that are greater than 3. You don't have to use -1. I'm not sure it would make better sense but if you defined a case 4 and made that the default, it too would handle all values less that 0 and all values greater than 3. Sometimes you don't want the default case to throw an error. for example, you might have one case that is normally run and set to default and you would have a couple of special cases.
Ah - my bad! Makes sense, really. I'm tired and my brain started along the wrong thought channel and refused to budge! 😉
Thanks for the help everyone. Nice to have a quick response.
By the way, has anyone had a chance to look at this VI at all? It's had a bit more done to it since I made the thread, but it's still nice to know if I've done anything in a 'bad' or overly long-winded way.
Never say "Oops." Always say "Ah, interesting!"