Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Remplacer les données d'un channel

Bonjour,

 

je voudrais savoir si avec la version de Measurement studio 2012 il est possible de remplacer les données existantes d'une channel. En effet il semble uniquement possible d'ajouter des données (méthode AppendData) mais pas de remplacer.

 

Je vous remercie pour votre aide

 

Salutations

0 Kudos
Message 1 of 4
(5,693 Views)

Hello,

 

I try in English, maybe I will have more answer.

 

I would like to know if it's possible with Measurment studio 2012 to replace data of an existing channel in TDMS file.Indeed, it seems only possible to add data (with AppendDate method) but not to replace (which is possible with LabVIEW) 

 

Thank you for you help

.

 

 

0 Kudos
Message 2 of 4
(5,674 Views)

Hello,

I did some research, and it does not appear this is possible with the current TDMS API. You can not accomplish this in Measurement Studio (using the .NET libraries), CVI, or LabVIEW.

 

There is a workaround in LabVIEW posted here: Community Example: Delete single TDMS Channel from an existing TDMS File. It accomplishes replacing data by doing a TDMS > TDM conversion, modifying the TDM, and then doing a TDM > TDMS conversion. This is not ideal.

 

The reason this is not possible directly is due to the binary file structure of TDMS. It is not a simple task to modify or remove a channel, and can sometimes result in data corruption. The suggested method of modifying an existing channel in a TDMS file is to do the following:

 

  1. Read in all data from the .TDMS file into your project.
  2. Modify the channel(s) you would like to.
  3. Save the modified data to a new .TDMS file. (If you would like to overwrite the existing file, you can do this too).

Regards

Samuel G. | GEMESIS

Certified LabVIEW Architect

Certified TestStand Developer

GEMESIS.EU

0 Kudos
Message 3 of 4
(5,648 Views)

Thank you for your answer, we currently use the method you describe. we just wanted be sure that it was the good one...or at least the only one

 

Thanks again

 

JPV

0 Kudos
Message 4 of 4
(5,644 Views)