LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rentialize to Default Control

Hi ,

i want to set Control to it is default value in this program.

Thank you.

 

0 Kudos
Message 1 of 4
(2,269 Views)

Read all about it here.

Certified LabVIEW Architect
0 Kudos
Message 2 of 4
(2,245 Views)

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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 3 of 4
(2,209 Views)

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?

0 Kudos
Message 4 of 4
(2,193 Views)