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 ....:)

0 Kudos
Message 1 of 3

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

I hope it will help you.
0 Kudos
Message 2 of 3

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 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

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.

Hope it will help.

Cyril Bouton
Active LabVIEW Developper
0 Kudos
Message 3 of 3