11-21-2019 04:32 AM
Hi ,
i want to set Control to it is default value in this program.
Thank you.
11-21-2019 05:47 AM
Read all about it here.
11-21-2019 11:52 AM
FYI, I loathe resetting a control to its default value; all that has to happen is to have someone save a new default to the control and you're screwed. IMO, it's better to reinitialize the control to an explicit value.
The problem here is that, unless you get into the guts of the block diagram, you may not realize that the default value is significant to the code, and maybe you save your own default values for troubleshooting or something. BOOM! code broken. On the other hand, if you reinitialize a control to an explicit value, there would have to be specific intent to enter a new "default" value to mess up the functionality of the code.
11-21-2019 04:08 PM
Well, your timeout case never times out, so its contents will never execute. (and if there were a timeout, you probably don't want them to constantly reset without user interaction, so create a button for "reset" to fire that event instead.)
Note that resetting to default will not fire the A,B events, so your indicators will stay as is.
The rest of the code seems quite fragile. What kind of problem are you trying to solve?