11-16-2016 08:45 AM
dear sir
i need to split the signal into x and y form waveform wire.
and detect the first and second peak is important
need help
regards deutschland
Solved! Go to Solution.
11-16-2016 09:01 AM
I'm uncertain what you want to do. As you should know, a Waveform has an array representing values at equally-spaced time intervals, where the time is implicitly given by the t0 and dt parameters (see Get Waveform Components on the Waveform palette).
If you want X() to be Time, and Y() to be the array in the Waveform, then you can build X as an array [t0, t0+dt, t0 + 2*dt, ...] or, if the exact date/time are not important, as [0, dt, 2*dt, ...], and use the Y component of the Waveform for Y().
Bob Schor
11-16-2016 09:06 AM
Your request makes no sense.
A classic waveform only includes Y values. X values are implicit because samples are 'equidistant'. Your X-values therefore compute by "sample number * delta t". Delta t is one meta information contained in the waveform datatype.
@deutchland wrote:
[...]and detect the first and second peak is important[...]
What do you mean by that sentence?
What does the exponential fit in your attached VI?
Why don't you pass the Y-data from the waveform (hint: Get Waveform Components) to the peak detector VI?
Norbert
11-16-2016 09:08 AM - edited 11-16-2016 09:09 AM
To get waveform component, you can use this block. However this will give you only the Y values (the plot is created using Y, t0 and dt).
You can later reconstruct the X values if needed.
11-17-2016 02:14 AM - edited 11-17-2016 02:15 AM
with the exponential decay i want to find damping of he signal and with peaks i need to find time period
from oscilloscope and i have this waveorm wire i need to split it into x and y components
11-17-2016 03:16 AM - edited 11-17-2016 03:17 AM
here is a littele progress from me i just need exponential decay and to detect selected peaks from waveform i get from oscilloscope
11-17-2016 03:50 AM
User Bob_Schor allready describes how to split Waveforms.
Maybe this Screenshot will help you to understand.
Is your question answered then?
11-17-2016 09:40 AM
thank u very much sir