LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2 plots different sample points in one Graph

Hi,
I am trying to draw 2 different Filter measurement outcome (insertion loss) on one graph. The 2 data have partly common sample frequency points.
Both have varying not common frequency sample points (resolution) within the whole range. One has about 2100 sample points between 100 MHz-6GHz the other one about 1246 sample points between 120 MHz-6GHz
How can I still make a graphically comparison between those two measurements and be confident? Maybe interpolation between the sample points?
Thanks
Yariv
 
 
0 Kudos
Message 1 of 8
(3,654 Views)
I used the Interpolate vi to come up with the graphs.  I used the first plots values (for the data that has 2100 points) as the reference in the interpolate vi.  I also added in the % difference between the 2 graphs.  There are different methods on how the interpolate vi works, you can play around with the control to try the different methods.

I hope that this is what you were looking for or you can easily modifiy it to work for youe case.

If not, let me know.  The vi is in LV8.

Kenny
Kenny

0 Kudos
Message 2 of 8
(3,641 Views)

Hi Kenny,

I have LV7.1. Could you save it to 7.1?

Thanks in advance

Yariv3G

0 Kudos
Message 3 of 8
(3,626 Views)

Yariv,

I think you simply need to plot the two data sets to an "XY Graph"?

An "XY Graph" can have multiple plots, each plot having completely seperate "X" sampling positions that don't even need to be evenly spaced, also each plot can have a completely different numbers of points to plot.

Mark.

Message 4 of 8
(3,618 Views)
0 Kudos
Message 5 of 8
(3,612 Views)

I added in the XY Graph as was suggested.  It appears to do as stated, with different X arrays, it will plot both independent of each other.  I also added in the ability to select which plot was visible to make it easier to see the differences.

I saved it in LV7.1

Kenny

Kenny

0 Kudos
Message 6 of 8
(3,604 Views)

Hi Kenny,

I couldn't load your VI due to not finding a certain VI. See the pic

0 Kudos
Message 7 of 8
(3,588 Views)
Sorry about that.  I thought that 7.1 had the vi too.
 
I modified the vi to get almost the same result, but it is not as good.  The VI that I was using comes by default with LV 8.0.
 
Kenny
Kenny

0 Kudos
Message 8 of 8
(3,581 Views)