LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset values during a VI execution??

Greetings. I am new to Labview.  I would like to reset the indicator and control values during execution with a push of button whenever I  see my "x or y" indicator is turnd on in  the VI.  I know how to initialize the value after stopping VI. But I have to initialize the values without stopping VI.

 

Any help much appreciated

0 Kudos
Message 1 of 6
(3,519 Views)

Hi surabhihere,

You can local variables of the respective controls in your VI and set to initial value as per your logic.

Please go to LabVIEW help and learn more about them.

 

Regards,

SrikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 6
(3,513 Views)

Thank you SrikrishnaNF

 

I found the solution.

 

 

0 Kudos
Message 3 of 6
(3,496 Views)

Still not able to reset the indicator. Though I have use local variable of indicator too. I don't know where i am wrong.

0 Kudos
Message 4 of 6
(3,476 Views)

Hi,

 

You need to update indicator also when initializing.

 

reinitialize.png

Message 5 of 6
(3,469 Views)

Reset to the default values?

 

Just use an invoke method.  Hit ctrl+space and type in "This VI" and choose the vi reference.  Wire it into the invoke method.  Choose data operations, reset values to default.  It will reset all values to their default values.

Message 6 of 6
(3,446 Views)