02-25-2013 10:54 AM
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
03-04-2013 04:29 AM
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
.
03-06-2013 03:22 AM
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:
Regards
Samuel G. | GEMESIS
Certified LabVIEW Architect
Certified TestStand Developer
03-06-2013 04:08 AM
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