LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the amplitude and phase from a waveform?

Hellow!
I have waveform coming out of " TKTDS read waveform.VI,how to get the amplitude and the phase of this waveform? thanks!
0 Kudos
Message 1 of 4
(1,966 Views)
If you don't need the waveform and just want the measurements, then you could just tell the scope to do it and return those values. You don't mention which model of scope you're using but the Tek scopes I use have these measurement functions. Look for a VI called something like Conf Meas. It's a lot faster to return a couple of scalars than an entire waveform. If you need the entire waveform anyway, you can use the function Extract Single Tone Information. This is on the Analyze>Waveform Measurements palette and is not available in the base version of LabVIEW. This function uses a waveform datatype as input and you're probably getting a 1D array from the scope, use the Build Waveform function to and wire the 1D array to the Y input and your scope's sample time to the dt input.
Message 2 of 4
(1,960 Views)
Hellow! Do you mean use "Extract single tone information.Vi? i have used it,but there's no terminal for dt and Y.
0 Kudos
Message 3 of 4
(1,956 Views)
The input is a wavefrom datatype. The waveform datatype is a cluster with dt, t0, and Y. That's why I said use the Build Waveform function with the Y data you get back from the scope. Or it you look inside the Extract Single Tone VI, you will see that dt and Y are removed from the waveform and passed to other functions. You can make your own VI from this that requires Y and dt.
Message 4 of 4
(1,935 Views)