LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble clearing previous data before ach run.

Solved!
Go to solution

Hello everybody!


I've been working in this VI that reads, separates, and processes two different signals into arrays and saves them into .csv files. The issue that I'm having is that after a few runs, the VI won't clear the data from previous runs. This can be seen in the Pulse pressure and mean flow rate indicators (also in each max & min indicators). Also, even though this one happens randomly, the final .csv will also append the data even though I already specified the boolean constant as "False". I've also configured the VI to clear Waveform data before each run. VI attached below. 

 

 

0 Kudos
Message 1 of 3
(528 Views)
Solution
Accepted by topic author jed2002

Elimiinate the uninitialized shift registers in the various FOR loops. (either initialize them with an empty array or rearchitect that entire mess into a proper state machine :D)

Message 2 of 3
(508 Views)

Thank you so much! Initializing with ZERO arrays worked just fine!

0 Kudos
Message 3 of 3
(494 Views)