When you use a case statement, the situation arises where in a particular case there is no need to pass an object to an outbound tunnel, while in other cases you do in fact want to pass an object out the tunnel. To keep Labview happy, you must either provide a bogus item to the tunnel, or you can set the tunnel to "Use Default if Unwired".
I *hate* "Use Default if Unwired" because once set, if you simply forget to wire a tunnel, you will not get an error indication telling you that you screwed up.
I do however have a suggestion for how to resolve this:
1. Rename "Use Default if Unwired" attribute to "Use Default if Unwired (all cases)".
2. Add a new tunnel attribute "Use Default if Unwired (this case)". This will cause the tunnel to pass the default value if a tunnnel is unwired, but only for the case you set it in. In that way you suppress Labview complaints for cases where you explicitly don't CARE what is passed on, and will still get complaints if you forget to wire to the tunnel in one of the other cases.
3. Add a new tunnel graphic for the new "Use Default if Unwired (this case)" attribute to differentiate it on the block diagram. Use the existing graphic for the "Use Default if Unwired (all cases)" option.
4. When you set "Use Default if Unwired (this case)" on a tunnel, Labview should check to see if "Use Default if Unwired (this case)" is set in all other cases for the same tunnel. If so, have a dialog pop up to ask if you want to convert to "Use Default if Unwired (all cases)". But don't set "Use Default if Unwired (all cases)" by default; ask. You might be adding more cases later...
5. The "Use Default if Unwired (all cases)" and "Use Default if Unwired (this case)" attributes are mutually exclusive. If you select one, the following behavior occurs and the other is de-selected:
See the attached picture to see how the current and proposed behavior differs, and to get a look at what the implementation might be.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.