06-21-2012 08:08 AM
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.
Solved! Go to Solution.
06-22-2012 05:23 AM
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:
Let me know if this helps - or if you need any further help.
06-22-2012 08:35 AM
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.