03-17-2009 01:26 PM
03-17-2009 01:36 PM
Dennis,
In my main program where the state machine is there is no enum to select the case. It is simply a shift register that is initialized to 0 and wired to the case selector. It is then incremented to flow to the 9 cases. If the Boolean flag is True it will use a value of 10 that is wired into the state machine from the outside. The output of the triangular select function is wired to the right shift register that sets the case upon the next iteration. None of the cases are set to default.
I was just saying enum because that is what I was using in 5.1.1 to replicate this scenario because when I use an ordinary numeric control it gives me an error that goes away when I set a default case.
03-17-2009 01:50 PM
03-17-2009 01:56 PM
Please post, at the very least, a screen shot of one of the case structures in your main VI. (Actual code would be preferable.) Click on the top of your case structure so that we can see the list of cases contained within that structure. Also be sure to show the triangular case selector, and what is wired to it.
You keep contradicting yourself in your posts...we need to see what's really going on in order to help you further.
Also, why not just specify a default case and be done with it?
03-17-2009 02:00 PM
DianeS wrote:Also, why not just specify a default case and be done with it?
Alas, this has been the crux of the issue in that it's not clear what the OP has, or is doing.
03-17-2009 02:21 PM
03-17-2009 02:27 PM
03-17-2009 02:34 PM - edited 03-17-2009 02:35 PM
Actually, we don't. All that the user has to do is to either
(a) create a blank case item, right-click on the case label box and set that case to be the "Default" case... --OR--
(b) pick one of the cases, right-click on the case label box and set that case to be the "Default" case ...
... to execute if the value fed to the case structure does not match any of the case item values. This is, of course, what "Default case" means, which is different than an enum that has a "default" enumeration item, or a string with the characters "Default".
Of couse, he has been told to do this several times, and it's still not clear what the difficulty is. I had postulated that maybe LabVIEW 5.1 didn't support default cases, but I was only guessing since I don't remember what a program from 10 years ago was capable of doing. Still, this would be documented, and the user, unlike me, would have the documentation.
03-17-2009 02:40 PM
03-17-2009 02:55 PM