LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Will this work to unzoom?

I have several graphs and when the VI is paused the user can zoom into a particular graph. I was wondering if this while loop will work to unzoom as the only way to accomplish this when the VI is running is to de-select AUTOSCALE then to re-select AUTOSCALE.
0 Kudos
Message 1 of 3
(2,675 Views)
Image didn't upload. Trying again
0 Kudos
Message 2 of 3
(2,674 Views)

Hello tahurst,

I tested your function for programmatically zooming out the graph and it seems to work as intended. My test involved assigning values to a graph, pausing the program, zooming in using the graph palette, and then letting the loop run to restore the view back to a zoomed out state.

In addition, I have also found two more examples that tackle this application. The first example uses a simple event structure to implement an "undo zoom" button that restores the graph after zooming in on the waveform. The second example is a little bit more complicated, but illustrates user control over both zooming in and zooming out on a waveform graph.

Example 1: Undoing a Zoom Operation on a Waveform Graph

Example 2: Zoom Graph


Both examples are developing in previous LabVIEW version so you should be able to open them in newer versions of LabVIEW without issue. Let me know if you have any problems getting the examples to work, or additional questions regarding your design.

Regards,

Chris Behnke
Sr. RF Engineer
High Frequency Measurements
0 Kudos
Message 3 of 3
(2,629 Views)