From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ROI on intensity graph or chart ?

Is there a way for the user to select a region of interest (ROI) on a
LabVIEW intensity chart or graph ?

How to select a line or a rectangle using one "click and drag", instead
having to position two cursors. Such options are avalalible for
IMAQ-vision displays. What about LabVIEW ?

--
Dr. Alfred A. Manuel, Department of Physics, University of Geneva,
24 quai E.Ansermet, CH-1211 Geneva 4, Switzerland.
Phone: +41-22-702.6293 or 6224 (sec), Fax: +41-22-321.5606
E-mail: Alfred.Manuel@physics.unige.ch
0 Kudos
Message 1 of 2
(3,213 Views)
The easiest would seem to be to place a transparent picture control above
the graph. You can catch mouse events in the picture control, draw your
rectangle and once it's drawn convert the coordinates you got from the
drawing routine into X-Y graph coordinates.

Overlapping transparent controls slow down the panel updates though so if
you're wanting to select an ROI on a continually updating graph it may be
better to put your graph in a picture control as well, rather than using one
of the graph primitives.

Alfred A. Manuel wrote in message
news:3C14BD48.7A12E65B@physics.unige.ch...
> Is there a way for the user to select a region of interest (ROI) on a
> LabVIEW intensity chart or graph ?
>
> How to select a line or a rectangle us
ing one "click and drag", instead
> having to position two cursors. Such options are avalalible for
> IMAQ-vision displays. What about LabVIEW ?
0 Kudos
Message 2 of 2
(3,213 Views)