LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

every time i run the vi values keep accumulating from previous runs

hello,

every time i run my VI, values from the previous execution still exist and the new values get added after them.

i have to manually erase them by reinitializing to default values.

how to make it happen automatically?

please help.

thanks.

0 Kudos
Message 1 of 3
(2,124 Views)

Are you using shift registers in a loop that are not initialized outside of it?

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 2 of 3
(2,121 Views)

Hi tusharjain,

 

It would be helpful to see a screenshot of your problem.

If it is just front panel related, you can right-click on the control and go to 'Data Operations> Make current Value default.'

If using shift registers you can create a constant on the outside of the loop which you set to zero.

You can also initialize values using property nodes.

 

Regards,

 

 

John McLaughlin
Academic Account Manager
National Instruments UK & Ireland
0 Kudos
Message 3 of 3
(2,116 Views)