NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Donners
Posts: 34
0 Kudos
Accepted Solution

TDMS group manipulation

Hi,

 

I'm trying to copy a TDMS group to a new file, in a group with a new group name after scaling the data. The old group is 'Raw Data' and the new group is 'Scaled Raw Data'. I'm copying across the properties to retain the information in the first file.

The trouble is, the new file is saving the new scaled data and properties in a 'Raw Data' group instead of a 'Scaled Raw Data' group. It's not a huge problem and I can probably ignore it, but I was wondering if anyone has come across this and knows the reason. I've attached the relevent code.

 

Thanks

 

Donners
Member
Donners
Posts: 34
0 Kudos

Re: TDMS group manipulation

Here's the Output TDMS file:

Donners
Member
niNickC
Posts: 121

Re: TDMS group manipulation

Hello,

 

I think I spotted this one.

 

Of the properties you are copying across, the first one is 'name'. If you delete this property out, it doesn't overwrite the name and scaled remains.

 

This might make it a bit clearer:

 

TDMS Copy

 

Let me know if this helps - or if you need any further help.

 

Kind Regards,

Nick C.

Cardiff University
Member
Donners
Posts: 34
0 Kudos

Re: TDMS group manipulation

Cheers Nick,

 

You're on the ball. That worked a treat. I also figured out 'TDMS Set Properties' can be used to set 'name' or any other property if you name it properly using the right group and channel.

Thanks a million. When I've been staring at something for too long I miss the obvious.

 

Thank you,

 

 

Donners
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page