LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Zoom in on section of intensity graph?

Hello all,

I need to be able to zoom in on a section of an intensity graph.  I know of the graph pallette but what I want to do is have the original graph, then select a region on the original to zoom in on which will  show up in another graph indicator so I have my original plus the zoomed in region.  Along with this is it possible to have a square or something on the original that will show the user how large and what area he/she is zooming in on?  I have tried to alter some of the shipping vi's like "cursor.vi", or "smith plot with zooming" but have been unsuccesful.  I have attached an example vi that I wrote that displays 2 intensity graphs.  Can any of you point me in the right direction so I can accomplish this display idea or can you let me know if this is possible?

Thanks,

Azazel
Azazel

Pentium 4, 3.6GHz, 2 GB Ram, Labview 8.5, Windows XP, PXI-5122, PCI-6259, PCI-6115
0 Kudos
Message 1 of 5
(4,542 Views)

Zooming should be as simple as passing a subset of the intensity graphs data array to a new graph.  You can make it as robust as you want by using the event structure to allow the user to select a subsection if you want.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 5
(4,538 Views)
Using X and Y Scale range properties will allow you to see the Zoomed boundaries as shown in the modified version of your example VI.

Lynn
0 Kudos
Message 3 of 5
(4,529 Views)
Is there a way to send the data in the selected region into a new array?
0 Kudos
Message 4 of 5
(4,411 Views)
Just wire the graph into an "Array Subset" node.  Using a property node of the Intensity Graph, as was done in this example, the inputs to the Array Subset node (top to bottom) are:

- YScale.Range.Minimum
- (YScale.Range.Maximum - YScale.Range.Minimum)
- XScale.Range.Minimum
- (XScale.Range.Maximum - XScale.Range.Minimum)

The output is the subarray you want.

--John


0 Kudos
Message 5 of 5
(4,400 Views)