LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the time of the wave?

Solved!
Go to solution

TIM图片20180410032845.pnghi,guys,I  got this wave,but i can't get the time of the wave by the program,

 

This waveform is only fixed in frequency,How to get the time of the wave?

0 Kudos
Message 1 of 9
(3,329 Views)

What kind of data is it? If it is a waveform (brown wire) you can use "get waveform components" to find t0 and dt.

 

If it is just an array of doubles (orange wire) you have to know the timing characteristics of your single in order to calculate it.

0 Kudos
Message 2 of 9
(3,300 Views)

Hi weizhihua,

 

How to get the time of the wave?

Why don't you just read the x axis values?

It should be either "time" (in a unit choosen by you) or it should be sample-index: multiply sample index with dt of your waveform…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 9
(3,283 Views)

it is a waveform .The timing of the sine wave is random. I want to get the starting point and the end of the sine wave. I can't make it.

0 Kudos
Message 4 of 9
(3,279 Views)

The timing of the sine wave is random. I want to get the starting point and the end of the sine wave. I can't make it.

0 Kudos
Message 5 of 9
(3,277 Views)
Solution
Accepted by weizhihua90

Hi wei,

 

calculate the differentiation of your signal: when it is unequal to zero you found your sine wave…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(3,273 Views)

Thanks.I'm going to learn how to get differentiation at LabVIEW,

0 Kudos
Message 7 of 9
(3,266 Views)

Hi wei,

 

I'm going to learn how to get differentiation at LabVIEW,

In the simplest case it's just the difference between current and previous sample.

You might think about a minimum difference because of noise in the signal…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 9
(3,262 Views)

I have done a similar detection using a "Moving RMS" calculation, which is exactly the same as a moving average except you use RMS instead of Mean.


GCentral
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 9 of 9
(3,250 Views)