06-26-2015 05:12 AM
Hi
I have MC which is pumping data from five sensors , each sensor outputs a high bit and low bit. I have created a VI that reads in the data and converts the string to an unsigned byte array. My problem is that I am having trouble adding each individual element of the array in to its own channel in a TDMS file . Currently all data is being written to the same channel.
06-26-2015 05:18 AM
What's wrong with the solution you were given in your other thread?
06-26-2015 05:25 AM
It writes all data to a single channel. So it writes the 5 elements to the same channel instead of in individual channels. I have attached the excel file so you can see whats happening.
06-26-2015 05:31 AM
Then where is your code that has your writing to the TDMS file? Did you also wire up the list of channel names?
06-26-2015 05:37 AM
crossrulz I have attached the VI below. Yes I have set the channels up as x,y,z,GSR,R but all data is stored in the x channel
06-26-2015 06:00 AM - edited 06-26-2015 06:00 AM
Figured it out using the convert to dynamic data, it works ![]()
06-26-2015 06:02 AM
Hi,
Attached the modified vi snippet.
I normally write data to tdms files using for loops
Let us know if it helps.