Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a rectangle selection tool inside an intensity graph? I need to be able to select several plots with a rubber band like selector inside of an intensity graph on my C# Form

How can I create a  focus rectangle or rubber band rectangle selection tool inside an intensity graph?

I need to be able to select several plots with a rubber band like selector (rectangle) from inside of an intensity graph on my C# Form.

This selector would give me the (x,y) of a 3X3 or 4X4 area of plots from an existing graph of say 64X64 plots.

Currently I have a cursor which only gives me a single plot for (x,y).

0 Kudos
Message 1 of 6
(6,731 Views)

Hi bill_donahue,

 

Do you want to get all the individual (X,Y) values inside of a rectangle that you specify? Or did you want to zoom into the rectangular area selected? For the latter, you can use ZoomXY and detect where the mouse was clicked and released to figure out the coordinate parameters.

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(6,707 Views)

Humphrey,

     I need to get all of the (X,Y) plot data inside of a drawn rectangle. My systems engineer wants to be able to select an area from a waveform graph, or intensity graph.

So it would be similar to the Zoom rectangle but instead of zooming, my C# application that uses Measurement Studio 2013, would be able to manipulate the individual

(X,Y) elements. Are there any native features that will do this, I was thinking that I might have to use two cursors.

Thanks,

Bill

 

0 Kudos
Message 3 of 6
(6,695 Views)

Bill,

 

I don't believe there is a native function for this. You can probably extract the data after finding the X and Y range of the selected area (using the cursors or the min/max of the axes).

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(6,681 Views)

Humphrey,

 

     How do I get a "selected area" ? That is my issue, how can I select an area from a graph, and how can I tell what that selected area is?

Bill

0 Kudos
Message 5 of 6
(6,670 Views)