LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

zoom two graphs simultaneously

Hi,
 
I have two graphs. How can realize when I zoom one graph, the other gives the same zoom?
 
OR
 
How can I have 2 plots (which has the X axis) showing on one graph with differen y scale?
 
Weitong
0 Kudos
Message 1 of 4
(3,423 Views)
All charts support multiple Y scales.

From the LabVIEW Help:

Adding Multiple X- and Y-Scales on Graphs or Charts

Waveform, XY, intensity, digital waveform, and Windows 3D graphs support multiple x- and y-scales, and all charts support multiple y-scales. Mixed signal graphs support only one x-scale. Use multiple scales on a graph or chart to display multiple plots that do not share a common x- or y-scale.

Complete the following steps to add a scale to a waveform graph or chart.

  1. Right-click the scale of the waveform graph or chart and select Duplicate Scale from the shortcut menu.
  2. To move the new scale to the opposite side of the display, right-click the new scale and select Swap Sides from the shortcut menu.
  3. Associate a plot to the new scale by right-clicking the plot in the plot legend and select from the X Scale or Y Scale shortcut menus. If the plot legend is not visible, right-click the graph or chart and select Visible Items»Plot Legend from the shortcut menu.
  4. To change the range of the new scale, use the Operating tool or the Labeling tool to highlight the end value(s) of the scale and enter a new value. If you set the scale manually, you should disable autoscaling.


Message Edited by smercurio_fc on 04-07-2008 04:02 PM
0 Kudos
Message 2 of 4
(3,419 Views)


weitong wrote:
I have two graphs. How can realize when I zoom one graph, the other gives the same zoom?

Get the new axis ranges of the zoomed graph and apply the same values to the second graph.


weitong wrote:
How can I have 2 plots (which has the X axis) showing on one graph with differen y scale?

Add a second y-scale.
0 Kudos
Message 3 of 4
(3,418 Views)
No completely sure what you mean...When the user zooms make the other graph zoom the same too? You can add an event in an event structure for plot attribute change, check to to see if it was the zoom attribute, then take the value and set the other one the same...
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 4 of 4
(3,415 Views)