LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS Delete data after reading

Hi,

 

is it possible to delete some specified data in a TDMS file? For example: after reading the data with index 0 to 999, I want to delete them to save up resource, and then read index 1000 to 1999 and delete, etc.
I still not figure out how to do it.

Thanks in advance for all your answers.

P.S.: I have tried to look in the other threads but cannot found what I need.

0 Kudos
Message 1 of 5
(2,453 Views)

Delete the data means you want to delete the data permenantly from the file? If so just read the data and delete the unwanted portion and save the rest of the portion to the same file overwriting it. Is this what you wanted?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 5
(2,450 Views)

@P Anand wrote:

just read the data and delete the unwanted portion and save the rest of the portion to the same file overwriting it.


How can you delete the unwanted portion?
Do you mean using NI Diadem to read and delete the data, or programming it? 

0 Kudos
Message 3 of 5
(2,445 Views)

Since I haven't played much with TDMS I made a quick look into the Examples there you have TDMS Reading and also overwriting the file just take a look I guess it would be useful.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 5
(2,438 Views)

To add information to the post of P Anand:

 

you'll find an example in:

LabVIEW -> Help -> Find Examples...
Than search for TDMS

 

There you'll find the example: TDMS Advanced - Overwrite.vi

 

Maybe this can help you. Please let me now if you found a solution.

Abduelkerim

Sales
NI Germany
0 Kudos
Message 5 of 5
(2,423 Views)