Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS group manipulation

Solved!
Go to solution

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
0 Kudos
Message 1 of 4
(5,565 Views)

Here's the Output TDMS file:

Donners
0 Kudos
Message 2 of 4
(5,560 Views)
Solution
Accepted by Donners

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
Message 3 of 4
(5,555 Views)

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
0 Kudos
Message 4 of 4
(5,549 Views)