LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clearing variables between runs

Solved!
Go to solution

Hello

 

I'm pretty new to LABVIEW.

When I run the VI multiple times it sometimes clears the output fields (such as an array or a string) and sometimes keeps results from previous runs.

How can I clear the variables between runs?

 

Thanks in advance

Yuri

0 Kudos
Message 1 of 4
(4,799 Views)
If you show some code, we can tell you. It all depends on how you wrote your application.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(4,797 Views)
Solution
Accepted by topic author iurik

@iurik wrote:

Hello

 

I'm pretty new to LABVIEW.

When I run the VI multiple times it sometimes clears the output fields (such as an array or a string) and sometimes keeps results from previous runs.

How can I clear the variables between runs?

 

Thanks in advance

Yuri


Multiple ways

1.You can  initialize values before every run

2.you can use ReInitialize all to default (Invoke Node)

 

Its better to share code for clear understanding

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 4
(4,793 Views)

thanks for your help,

 

the initialization of the variable did the trick

 

0 Kudos
Message 4 of 4
(4,778 Views)