LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resampling an X,Y Array(Graph)

So i have an X and Y array that are the limits of a mask.

What i want to do is take these X,Y arrays, and build a waveform of same dt as my waveform graph plot so that i can insert it into my waveform array and have my mask graphed with my plots.

Are there any simple ways to do this in Labview other than writing code that resamples it manually?(Taking slope between 2 points, etc)...

PS - I have to do this because Labviews Limit testing VI's are limited to 1 Top & bottom mask, but mine has 2 eye masks it must pass as well.
So i am 'graphing' the masks as waveforms to get a clean looking picture of the overall test(hundreds of waveforms overlayed onto the same mask).
0 Kudos
Message 1 of 9
(3,962 Views)

As per my understanding;

Do you need to realign and resample your signal?

Did you tried "Align & Resample.vi" in the express>>signal manipulation  palette

hope it helps

Regards

CLAD
Using Labview 5.1,6.1,7.1.8.0
0 Kudos
Message 2 of 9
(3,942 Views)
Well the problem is, its not a signal yet.

The mask is made up of 5 or so points in the X,Y plane, without a consitent dT.

So i cant just plug the X,Y coordinates in and get a labview waveform & use their resampling tools. Because to create a waveform you have to give it a dT and Y, and it will just space my points dT apart rather than how far apart they should be.

Does that make sense?

Basically if i can find some way to create a waveform with a non-uniform dT(give it the X points that correspond to the Y) i could do this easily..but i cant figure out how to do that.  All i can do with my X,Y points is graph them on a X/Y graph as far as i can tell...
0 Kudos
Message 3 of 9
(3,939 Views)

Do you have the Vi where you are trying to do it?

I am sorry as I am unable to understand your problem from the description.

1)You have a XY graph

2)You want to create a XY graph with non uniform dT(???)

Does that summarise your problem

CLAD
Using Labview 5.1,6.1,7.1.8.0
0 Kudos
Message 4 of 9
(3,935 Views)
Unless I grossly misunderstand the problem, I believe the Get Waveform Subset should do the trick.
 
eric
0 Kudos
Message 5 of 9
(3,930 Views)
I will see if i can make it alittle bit clearer thanks for the help 🙂

I have 2 arrays. 
One with X coordinates and 1 with Y coordinates.

I want to turn these X,Y coordinates into a Labview "waveform" type so that i can graph them using a waveform graph.

For example my mask is
X
0
15m
85m
100m
110m

Y
25m
1
1
400m
750m

As you can see my dT is different between every point.  In the end all i want to do is get these points on a plot with the same dT as my captured waveforms(1E-10).  But i cannot do that until i take those points and resample them into a waveform with dT=1E-10, but you can only resample waveforms.
0 Kudos
Message 6 of 9
(3,927 Views)
In reality i dont even need to resample the Mask

Because i forgot Labview will automatically let me graph waveforms of different dT in a waveform graph.

So the only real problem is turning X,Y points of differing dT into a labview waveform type.
0 Kudos
Message 7 of 9
(3,921 Views)

So you need plot X and Y against dT

 

Look for XY Graph.vi in example vis(Goto 'help;  >>>'find examples' and search 'XY Graph'(

 

In this example instead of the constant integer that is wired to shift register wire your 'dT' values.

Use the "Array of points(multiplot)" for your proble.

 

I hope it solves yopur problem

Regards

CLAD
Using Labview 5.1,6.1,7.1.8.0
0 Kudos
Message 8 of 9
(3,911 Views)
Well that sorta helps, but it gave me an idea how to do it myself.

Basically i take my X points, divide the difference between 2 points by dT to see how many new samples ill have.  Then i divide the difference in my Y's by that value, and starting at the first Y increment up to the 2nd. Rinse and repeat through each of the 4-5 Y points and i have a waveform made with my X,Y coordinates with dT spacing 🙂

Thanks!
0 Kudos
Message 9 of 9
(3,901 Views)