LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS Data appears in row instead of column

Solved!
Go to solution

Hi,

 

I am working on a program that reads in temperature data from a TDMS file, shifts the data through a 'normalising' equation and puts it back into the same TDMS file onto a different page.

 

The problem I am getting is when the normalised data gets written back into the TDMS file, the data that should appear in the columns now appears in rows. See picture attached that illustrates this.

 

Does anyone know how I can write the data to the file so that it appears in the column and not the row. In my VI you will see that I have had to transpose the 2D array otherwise all the data just appears in one single row.

 

Also several cells just containing 0 have appeared in my data set which should not be there.

 

I will attach my VI to this. I will also attach one of the TDMS data files.

 

Thanks in advance,

Rhys

 

0 Kudos
Message 1 of 3
(3,155 Views)
Solution
Accepted by Rhys_CKTC

Hi Rhys,

 

After looking into your normalising program.vi, I would recommend:

  1. Don't use that Transpose 2D array, it doesn't solve your problem.
  2. Write the "normalized" data to different channels, you get all the data just appears in one single column because you write all the “normalized” data to one single channel repeatedly, thus they'll appear in one column(channel).
  3. Several cells containing zeros is because float64 y1[30] array in your normalising equation, you need remove the zero elements from y1[30] before writing to file.

I attached the modified normalising program.vi, hope this can do some help to your problem.

 

The snapshot below shows the data in Excel after "normalising" equation, the channel data appears in columns.

channels_in_column.png

Message 2 of 3
(3,115 Views)
Great, thanks for that, works a treat! Rhys
0 Kudos
Message 3 of 3
(3,094 Views)