05-29-2013 12:06 AM
Hi there,
Is there any way to reset all controls to default? I search it here and someone suggest to use the "Reinitialize Values to Default" in the Edit menu, it works for the value field. But to some control like Case Structure, it doesn't work. Any other suggestion (without any programming)? Thanks
Solved! Go to Solution.
05-29-2013 12:12 AM
A case structure is not a control.
To reset a VI to the way it is stored on the disk, you could try a "menu..file..revert..." (of course if you did not edit anything yet, it might be greyed out).
05-29-2013 12:18 AM
@dragondriver wrote:
Hi there,
Is there any way to reset all controls to default? I search it here and someone suggest to use the "Reinitialize Values to Default" in the Edit menu, it works for the value field. But to some control like Case Structure, it doesn't work. Any other suggestion (without any programming)? Thanks
You can also do it programmatically using Default Values:Reinitialize All To Default Method as shown below...!!
And Case Structure is not a Control... its, obviously, a Structure... and every time it will execute based on the value tied to its Case Selector terminal..
in order to execute its default (or any other specific) frame, you need to control the value tied to its Case Selector terminal.
05-29-2013 12:48 AM - edited 05-29-2013 12:48 AM
@moderator1983 wrote:
And Case Structure is not a Control... its, obviously, a Structure... and every time it will execute based on the value tied to its Case Selector terminal.. in order to execute its default (or any other specific) frame, you need to control the value tied to its Case Selector terminal.
I was under the impression that he wants (in edit mode!) to have the visible cases the same as they were when first loaded, even after some manual flipping to other cases during editing.
05-29-2013 12:49 AM
@moderator1983 wrote:
@dragondriver wrote:
Hi there,
Is there any way to reset all controls to default? I search it here and someone suggest to use the "Reinitialize Values to Default" in the Edit menu, it works for the value field. But to some control like Case Structure, it doesn't work. Any other suggestion (without any programming)? Thanks
You can also do it programmatically using Default Values:Reinitialize All To Default Method as shown below...!!
And Case Structure is not a Control... its, obviously, a Structure... and every time it will execute based on the value tied to its Case Selector terminal..
in order to execute its default (or any other specific) frame, you need to control the value tied to its Case Selector terminal.
Thanks a lot. Could you please tell me where to call out the Invoke Node block? I only see one under [Programming]->[Application Control]->[Invoke Node] but there is no such item "Default Values".
05-29-2013 12:59 AM
Place the very same invoke node on the block digram, right click it and select Select Method >> VI Server >> VI >> VI.
After that again right click it and select Select Method >> Defailt Values >> Reinitialize All To Default.
05-29-2013 01:01 AM - edited 05-29-2013 01:02 AM
05-29-2013 01:05 AM
@altenbach wrote:
You need to first select the right class:
(EDIT: mod was faster ;))
once in blue moon...