LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy pairs to waveform

Hi,
 
I want to measure rise and fall times of scope/simulation data, which is saved as xy pairs.
 
I thought about creating a waveform and using the waveform measurement functions.
 
The issue is that the time step must be constant for creating a waveform. However, in my case the size of the time steps will change within one captured signal.
 
1) Is there any recommendation, how I can create a waveform out of xy pairs, where the size of the time steps changes?
 
2) Is it possible to determine rise and fall times directly from the xy pairs?
 
Thanks in advance for every hint!
 
Alex
0 Kudos
Message 1 of 18
(4,482 Views)

With non-uniform delta t incriments with f(t), t pairs you can always resample the signal.  Essentially to convert you find the least common delta t (the smallest time increment which is divisible by all times) and then interpolate the missing points f(t).  The waveform uses the interpolated and original f(t) array and the new dt and original t0 to build the waveform.  I am not sure if LV has such a vi in the standard library.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 18
(4,475 Views)

Hi Paul,

thanks for your idea. I will check, if I can implement this.

However, this sounds not that easy :-).

Alex

0 Kudos
Message 3 of 18
(4,472 Views)

There might be an easier method this what the first thing that came to mind, (it was 7AM and my caffeine gauge was on empty) .

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 18
(4,463 Views)

Hi Paul,

 

I am still thinking about this. Let me know, if you get another great idea after the next coffee :-)!

 

Thanks,

 

Alex

0 Kudos
Message 5 of 18
(4,462 Views)
Hi
 
This might help you. In LV8.0 there exist some nice interpolation vis.
But don't take it as example for coding style. 😉
 
Thomas

Message Edited by becktho on 07-21-2006 03:12 PM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 6 of 18
(4,456 Views)
To improve on beckto's example.  A little cleaner and you can select different interpolation methods.  (still requires 8.0)


Message Edited by jasonhill on 07-21-2006 08:17 AM

Message 7 of 18
(4,453 Views)
Jason, that's a good example for teamwork :D:D:D

Message Edited by becktho on 07-21-2006 03:19 PM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 8 of 18
(4,447 Views)
Thanks guys for your great support Smiley Very Happy
 
I hope I can manage it to test your solution by today. You make me happySmiley Very HappySmiley Very Happy!
 
Alex
 
 
0 Kudos
Message 9 of 18
(4,437 Views)
Great minds think alike. Robot Very Happy  I had just finished wiring up my example when you posted your.  Robot surprised Robot tongue Robot wink
0 Kudos
Message 10 of 18
(4,436 Views)