DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Change X-axis unit of data inTDMS file

Hi NI Community,

 

I'm open a data file (TDMS file) and I would like to change the X-axis unit.

 

Currently, it shows the "# of samples" but I'd like to change it to test time duration with the following equation: T0 + SampleingRate*(sample number)

 

Please show me how to do.

 

Thank you for your help!

 

0 Kudos
Message 1 of 6
(2,012 Views)

Hello Victor,

 

since you're talking about axis, you're probably in VIEW or REPORT module.

 

I assume your data channel is NOT a waveform (has also no time-depending info like duration...)

In this case you need a time channel; can create it in:

ANALYSIS --> CHANNEL FUNCTIONS --> GENERATE TIME CHANNEL

There select the time unit (e.g. seconds) and "use number of samples" (this value will be automatically set to the mostly correct one).

Finally drag&drop this time channel as X-channel in your diagram.

0 Kudos
Message 2 of 6
(1,975 Views)

Hi Dia791! Thank you for your reply. I tried doing this with DIAdem 2018 and I could not find the "number of samples" in Time Unit. I could be understanding your instructions wrong. 

 

victor55_0-1601385911597.png

 

0 Kudos
Message 3 of 6
(1,969 Views)

Time unit = "second"

Time step = 1

Time Domain specification = not the first possible selectiion, but the second; should be something with "number"

0 Kudos
Message 4 of 6
(1,964 Views)

Ah I got it. Here is what I have. The settings makes senses. Is the "Number of values" how many points we expect? If I collected a signal at 1MS/s for 10 seconds, that is 10,000,000 points. Do I put that 10,000,000 there? The Generated time is now on the Y_AXIS when I drag and drop it in my graph. How do I make it X axis? 

 

victor55_0-1601386814854.png

 

0 Kudos
Message 5 of 6
(1,959 Views)

Generally you're on the right way, but.

Think about the result: if you have the test duration of 10 seconds at high sampling rate, it doesn't make sense to set the step to "1 second". Maybe it's better to take microsecond? and the time step to 10, if it fits?..

I guess 1 microsecond should fit in this case 🙂

 

Just play with it to understand, what do you expect to get.

The number of values/samples must be the same as in your data channel, and the time step must be the same as for data.

 

When you're happy with yout time channel, just put it to the data channel into your graph.

0 Kudos
Message 6 of 6
(1,957 Views)