LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write seperate elements to each individual channel tdms

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.

0 Kudos
Message 1 of 7
(3,335 Views)

What's wrong with the solution you were given in your other thread?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(3,333 Views)

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.

0 Kudos
Message 3 of 7
(3,329 Views)

Then where is your code that has your writing to the TDMS file?  Did you also wire up the list of channel names?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(3,322 Views)

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

0 Kudos
Message 5 of 7
(3,319 Views)

Figured it out using the convert to dynamic data, it works Smiley Happy

0 Kudos
Message 6 of 7
(3,308 Views)

Hi,

 

Attached the modified vi snippet.

 

I normally write data to tdms files using for loops

 

Let us know if it helps.getData_Modified.png

0 Kudos
Message 7 of 7
(3,304 Views)