12-01-2023 06:31 AM
How to clear the previous data which all are stored on indicators.
whenever we run any VI its should be host vi or target vi that clear should clear previous data.
in our case it is not happening.
whenever we run VI it holding previous value untill next command or msg comes.
but what we need is, VI should clear ever run. and make it as default values.
12-01-2023 06:36 AM
Hi Manjula,
@Manjula18 wrote:
but what we need is, VI should clear ever run. and make it as default values.
Then you need to set all indicators as needed upon start of VI.
Btw. there's a method to set all frontpanel elements to their default value…
12-01-2023 06:46 AM
Hi Manjula,
Call VI method "Default Values.Reinitialize All To Default" at the start of your VI:
To obtain it, get the Invoke Node from the Function palette:
Then, right-click on the node and select class "VI":
Then, left-click on "Method":
Select "Default Values -> Reinitialize All To Default":
If you call this node at the start of your VI, it will reinitialize all controls and indicators to their default value.
Regards,
Raphaël.
12-01-2023 07:16 AM
Another way is to set Clear indicators when called in the VI properties (works also when running a top-level VI):