From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Purge loop data on TDMS rewrite

Solved!
Go to solution

I need to convert the raw TDMS file acquired from my Labview data acquisition to just a normal TDMS file.  I have found posts on just needing to read and then re-write the TDMS file which works great.  The issue is that the programs they have supplied only work for one file at a time.  I have modified the code to work for all TDMS files in a given folder.  I run into memory full issues because I am trying to convert a few hundred files in a single folder.  Is there anyway to purge the variables inside the loop after each read/write of the TDMS file?  I have attached my code below.

 

Thanks for any help!!!!

0 Kudos
Message 1 of 3
(1,867 Views)
Solution
Accepted by topic author methanejuice

Hi juice,

 

why don't you close the "converted" TDMS files inside the loop?

You are only closing the last file after the loop…

Best regards,
GerdW


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

GerdW,

 

Works great! Thanks!

 

I had originally tried this but was having issues because we were trying to write to a network drive and it refused so I assumed the issue was it TDMS side and not network drive related.

0 Kudos
Message 3 of 3
(1,725 Views)