From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-27-2012 06:22 PM
Hi All,
I know how to set values as default on the front panel. However, when I run a VI multiple times without closing it, I need to re-initialize certain front panel values from their value at the end of the last run to the default values used in the next run. Generally speaking, I do this using an "Init" state in a state machine or a first frame of a stacked sequence. In either case, I just create a bunch of local variables and set the values to zero, or whatever other initial value they need.
When I was recently in Core 1 and Core 2 training, the teacher showed us a way to reset all these values without using local variables as described above. But, for the life of me, I cannot remember what he said to do.
Any help jogging my rapidly-aging memory would be much appreciated.
Thanks!
Solved! Go to Solution.
02-27-2012 09:26 PM - edited 02-27-2012 09:26 PM
Invoke Node on the VI to Reinit values to default.
02-28-2012 05:36 AM
02-28-2012 11:38 AM
Thank you, gentlemen!
02-28-2012 12:13 PM
Additional info: if you want to reinitialize only specific controls/indicator, then you can create the corresponding invoke node for that control/indicator (right-click on control/indicator and select Create -> Invoke Node -> Reinitialize to Default).
01-14-2019 04:29 AM
A good reference for this problem can be found in the NI knowledge section:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MoZSAU&l=en-GB