LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clear table content before next program run

Solved!
Go to solution

Hi there,

 

i've searched a long time and found many promising answers...but none actually helped on my problem:

Please find my example vi attached (LV2012).

After initializing my array with some values und running the program the table is populated accordingly. I stop the vi an the table is cleared. But: if i restart the vi without making any changes, the old content shows again and the array gets appended too. So, is there a way to clear a table definetly after stopping the vi. Including obscure default values?

 

What i've tried so far without succes:

Setting an empty array at the beginning

Reset to standard values via Invoke Node

Setting an empty array as value via Property Node

 

So what am i missing?

 

Thanks in advance, Erik

0 Kudos
Message 1 of 4
(2,525 Views)
Solution
Accepted by topic author erik5000

Hi Erik,

 

you are missing the data in the shift register!

 

You should initialize shift registers when you don't need data from previous runs of the VI…

 

Or get rid of the shift register when you don't need it:

Example(1)_BD.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,522 Views)

Oh my god, silly me. Absolutly right and obvious, but not for me after looking for hours on my code^^

Thanks

0 Kudos
Message 3 of 4
(2,514 Views)

Hi Erik,

 

by using probes or the highlighting debugging tool you should have seen the data still stored in the shift register…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,505 Views)