12-11-2009 11:44 AM
I'm not sure what "use default if unwired" really outputs for custom data types. Is it a good practice to leave my code as it is ("used channels" is set inside "No Error" case) or move "used channel" to outside the case structure and enable "use default if unwired"? I basically want to send the default control value of "used channel" if there is an error.
The code should work fine either way, but I just thought it would look nices if all the outputs were outside the case structure.
12-11-2009 12:06 PM - edited 12-11-2009 12:10 PM
abdel2 wrote:I'm not sure what "use default if unwired" really outputs for custom data types.
My eye sight is not what itused to be (see eye patch on avatar). However, I do not see where you can use the default if unwired. Irregadless, I doubt that it will work for custom data types.
Is it a good practice to leave my code as it is ("used channels" is set inside "No Error" case) or move "used channel" to outside the case structure and enable "use default if unwired"? I basically want to send the default control value of "used channel" if there is an error.
I would leave it inside as you have it now. Unless you set some other value if there was an error.
The code should work fine either way, but I just thought it would look nices if all the outputs were outside the case structure.
Looks are not always important 😉
Instead of using TRUE/FALSE for the Case Statement, why not wire the state directly (ie: Use = None) and select based on the state (enum value by name). It would make reading the code easier and remove the '= to'.
R
Your image shown below: