LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace Data to a TDMS file

Solved!
Go to solution

Hi

 

Is there a way to replace one specific "row" of data in a TDMS file?

The file is huge, so reading the whole file, do the changes and then create a new TDMS, is not an option.

 

If i write to a specific row, all the next data are deleted (?), and this row becomes the last one

 

Thanks

LabVIEW could be the future... But bad management is killing it (see subscription model). It is NOT RECOMMENDED for new users.
0 Kudos
Message 1 of 4
(788 Views)
Solution
Accepted by pante

Hi pante,

 


@pante wrote:

Is there a way to replace one specific "row" of data in a TDMS file?


There is: "reading the whole file, do the changes and then create a new TDMS"...

 

(TDMS is made for streaming measurement data into a file very fast, but not for editing contents later on.)

Best regards,
GerdW


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

Thanks... i was afraid this was the correct answer.

Is there another file option?

Or i must switch to a database?

 

 

LabVIEW could be the future... But bad management is killing it (see subscription model). It is NOT RECOMMENDED for new users.
0 Kudos
Message 3 of 4
(754 Views)

@pante wrote:

Thanks... i was afraid this was the correct answer.

Is there another file option?

Or i must switch to a database?


I assume you can handle it as a binary file and set the file pointer to the byte in question and overwrite it. But if you need to insert values so the size changes there's no other solution than creating a new file.

However, you don't need to read all at once, you can copy e.g. 1MB chunks to a new file and change/insert as needed.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 4 of 4
(733 Views)