From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Pick up values with mouse

----- Original Message -----
From: "Labviewguru"
Newsgroups: comp.lang.labview
Sent: Monday, March 11, 2002 9:00 PM
Subject: Re: Pick up values with mouse


> Jack,
>
> Turn on the cursor. The cursor will display the x and y value in its
> display (when you also make it visible.) Then you can write the
> values down.
>
> Also, what values are you looking for. There may be a way for you to
> use a routine to search for certain values.
>
Thanks for answering

What I really wanted to know is that is it possible to get
the values under the mouse cursor into a table. So
there is a cursor display to mouse coordinates (x,y) but
I would like to get these values into a table 'naturally' by doubleclicking
the mouse over a certain point in
a graph.
Well I wonder if this is just a daydream ....:)

Jack
0 Kudos
Message 1 of 3
(2,423 Views)
Hi,

If you belong LabVIEW 6.1, there is an example you can maybe adapt for your case.

This example is located here: Help->Find Examples...->New Examples for LabVIEW 6.1->Events->Draw Graph with Events.vi

I hope it will help you.
0 Kudos
Message 2 of 3
(2,422 Views)
Jack,

If you do not have labview 6.1 you can still get the mouse coordinates by using a call to the windows 32 API dll. There's a library called LVutil32.zip which contains a set of llb's and a dll(see instructions to install). One of them is the winsys.llb and there's a get cursor positon.vi:

http://zone.ni.com/devzone/explprog.nsf/webmain/ebf11dd1f0feaef3862566790072a983?OpenDocument

You can compare those coordinates to the cursor coordinates on the graph to correlate them.

There's also a VI that allows you to capture a mouse double click.
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/6b8cc338382df40786256a62004fa2ec?OpenDocument

Hope it will help.

Regards
Cyril Bouton
Active LabVIEW Developper
0 Kudos
Message 3 of 3
(2,422 Views)