LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph limits

Solved!
Go to solution

Need to graph three lines.

X vs Y curve

X+1 vs Y+1 upper limit curve

X-1 vs Y-1 lower limit curve

 

Attempt attached, but I always get broken wire when trying to complete.

Looked at many examples here, but cannot seem to find fix.

0 Kudos
Message 1 of 7
(5,017 Views)
you could change it to a chart and use stacked plots.
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 7
(5,012 Views)

To plot one array versus another, you need to use an XY Graph - not a waveform graph.

 

If you go to the block diagram with context help turned on and move your mouse over the XY Graph terminal, you will see how to correctly format data to pass to an XY Graph. You should be using a bundle instead of a build array for each plot and then a build array to get all three plots onto a single graph.

 

 

0 Kudos
Message 3 of 7
(5,005 Views)

Thank you, however I do need all three to be overlayed on same grid.

But even overlay chart results in broken wire when I attemp to connect.

0 Kudos
Message 4 of 7
(5,001 Views)

DN, tried that, and still get broken wire going to graph.

Will keep trying different formating approaches.

0 Kudos
Message 5 of 7
(4,993 Views)
Solution
Accepted by topic author markfranklin

I have no problem with broken wires.

 

Xy Graph.png.

 

 

Message 6 of 7
(4,988 Views)

Thank you.  I had to delete the bundles and arrays that I had, then replace them in order to get the wires solid.

The bundles feeding the array feeding the graph gets me a plot, and good progress.

 

However, I still need to get the graph to essentially show three curves together.

The upper and lower limit curves with the main curve, need to result in three parallel curves.

 

Right now it is building out from zero in both directions for some reason.

I will look at While Loop and consider changin format of data feed to graph.

0 Kudos
Message 7 of 7
(4,961 Views)