LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combining graphs

Is it possible to combine two graphs into one or to have a single graph that can graph data from two sources in different colors but in the same graph window so that there values can be compared on the fly?

Thanks

Ty
0 Kudos
Message 1 of 10
(3,572 Views)
Of course. If your data to the graph is a 1D array, you can just use the Build Array to create a 2D array that gets wired to the graph. The plot legend allows you to change the color of any plot that you choose. You can also do it programitically with property nodes. For basic information, look at the shipping example called Wavefrom Graph.
0 Kudos
Message 2 of 10
(3,566 Views)
i am also trying to put my graphs together using looping. but they seem to come out from the same frequency range insted of what i am asking for. is there anything that i can set my frequency range other than a bundle?
 
thanks
0 Kudos
Message 3 of 10
(3,487 Views)

Could you please be a bit more clearer??

Or probably attach a vi or snap shot of block diagram, to illustrate what you are doing

0 Kudos
Message 4 of 10
(3,467 Views)
i have attached the vi. the only problem i have now is that the concatenating of the graph. the frequecy range appears to be at the same 400 points instead of what i intended. and the graphs A and B actually comes out as one colour.
0 Kudos
Message 5 of 10
(3,464 Views)

Look at the modified version of you vi.

Collect the acquired data points (from each iteration of your 'for' loop) into shift register and plot it as shown

And, are you trying to convert the 2D array to a waveform plot by bundling the timing information??

Is this why you are using bundle function and passing the 'start/centre' and 'sweep frequency' values to it as 'x0' and 'del x' values respectively??

0 Kudos
Message 6 of 10
(3,456 Views)
sorry but i am not able to open that vi that you uploaded. do you mind if you post it again?
0 Kudos
Message 7 of 10
(3,454 Views)

Which version of LabVIEW are you using??

I have tried to save if for LabVIEW 7.1 and attached it along with this post.

Let me know if this works

If not, find attached a pic of the vi with modifications in 'False' case.

Just incorporate them in both the cases

Download All
0 Kudos
Message 8 of 10
(3,448 Views)
thanks alot. the graph is able to load already. but can i ask why is it that when i run from 1000-1800 for frequency, it will come out 1801 fromt he graph?
0 Kudos
Message 9 of 10
(3,442 Views)

The X scale max value is not a right measure of number of samples acquired.

To find out if the of samples acquired per sec = the sampling rate specified, Use an 'array size' function on acquired data ( ps: ensure that data is in array format)

Message Edited by devchander on 06-01-2007 12:13 AM

0 Kudos
Message 10 of 10
(3,416 Views)