Issue Details
I have an existing TDMS file, and I want to modify the values stored for a particular channel. Here is the current file:

All the channels belong to the group called
Channels. I am trying to replace the values of
CH6. The current channel values are [10,10,10], and I would like to replace them with [1,1,2]. To do this, I am using the Advanced TDMS functions:

When I run the code, the resulting file contains garbage values for
CH6:

How can I fix this?