bulebell Posted September 30, 2011 Report Share Posted September 30, 2011 in the attachment,it show aerror,error code is A Case structure must have a case corresponding to every possible value of the selector. An easy way to fill this requirement is to specify a default case or cases whose selector values include ranges to or from infinity. i can't understand where the error occur?thanks! SCRIPT.vi Quote Link to comment
Ton Plomp Posted September 30, 2011 Report Share Posted September 30, 2011 You have one case structure, that has two cases 'write' and 'read'. Both case-names are in red because they don't match the selector data-type (an unconnected selector defaults to boolean allowing 'False' and 'True'). If you want to use a string as selector you need to add a 'default' case (or make one of the two cases default). You could also add a Boolean as selector, making it a read or write boolean. Ton PS if you are in the error dialog (ctrl-L), you can double click on the error and you'll get send to the error. Quote Link to comment
bulebell Posted October 6, 2011 Author Report Share Posted October 6, 2011 You have one case structure, that has two cases 'write' and 'read'. Both case-names are in red because they don't match the selector data-type (an unconnected selector defaults to boolean allowing 'False' and 'True'). If you want to use a string as selector you need to add a 'default' case (or make one of the two cases default). You could also add a Boolean as selector, making it a read or write boolean. Ton PS if you are in the error dialog (ctrl-L), you can double click on the error and you'll get send to the error. thanks a lot. for you information ,i handle with the problem. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.