08-21-2014 08:54 AM
Hi everyone, I know I can re-initialize "all" controls to their default values using an Invoke Mode. How do I re-initialize only specific controls I want to re-initialize to their default value? Basically, I want to re-initialize all the controls except for one control. I want to do this during run-time of the VI.
Thanks so much!
08-21-2014 08:56 AM
Right click on the control in the block diagram -> create invoke node -> Reinit to Default. Repeat for each one you want to do.
Alternatively, if you only have one that you don't want to reinit, you could read the value from that, then reinit all, then write the value you read back to the one you don't want to reinit.
08-21-2014 08:58 AM
In your situation, I would probably just reinitialize all and then immediately set the value of that one control. Your alternative is to use the Reinitialize Value method for each and every control except that one. You could do this in a FOR loop easily enough.
08-21-2014 09:04 AM
Crossrulz, how do I know what control reference is the reference to the control I do NOT want to reinitialize? Thanks!
08-21-2014 09:44 AM