02-04-2014 06:18 PM
Hi all,
Is it possible to open a tdms file and make a small change an an array subset then save the file without having to save the whole dataset as a different file with a new name? That is to say, is there something similar to "Save" in MS Word rather than "Save As"... I only want to change a 1D array of four data points in a file of 7M data points.
I am not sure if this make sense? Any help is apreciated.
Thanks,
Jack
02-05-2014 02:45 AM
Hi,
I think this is not possible with built-in TMDS basic functions.
However, you can easily make a simple VI what reads out all the group names/channel names, property names/values, and channel data.
You modify/delete/replace the desired set of data, and create a new tdms file and write back what you want.
7M data points is not a large amount, nowaday PCs have Gbytes of RAM....
02-05-2014 08:12 AM - edited 02-05-2014 08:13 AM
You can use the TDMS Advanced functions to do what you would like to do (see TDMS Set Next Write Position.vi). Read up on them in the LabVIEW help before getting started. Let us know if you run into issues.
Note that these are a fairly recent addition, so if you have an older version, you may not find them. If this is the case, let us know. There are other options.
02-05-2014 06:53 PM
02-06-2014 08:58 AM
You can use either one, but for your application, I would use the synchronous. It requires far less setup. When you open the file, set both enable asynchronous and disable buffering to FALSE to enable you to use synchronous with arbitrary data sizes.
Attached code is LabVIEW 2011.
02-10-2014 11:40 PM
Thank you!