LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph for create Data

Is there a possibility to use a Graph for create Data ??
The user is to input points in a graph with a Mouseclick, which I want to pick out as table.
0 Kudos
Message 1 of 4
(2,784 Views)
I believe the direct answer to your question is no; graphs in LabVIEW cannot be used for data input. However, with tricks you can do a lot of things... Take a look at the attached example. I used a picture ctl over the graph and set the color of picture ctl to transparent. Then I monitor the mouse events and read out the mouse position when the user clicks in the graph. I hope this helps. /Mikael
Message 2 of 4
(2,784 Views)
You can read the cursor position on a XY graph to input a a new point when
the user moves it.

Attached is a clever trick to detect when the user releases the mouse
button to stop the curve input. On Macs and some Windows releases, the mouse
must be moved at least one pixel for the button release be detected.

Enjoy.

Jean-Pierre



[Attachment MouseTrack.llb, see below]


LabVIEW, C'est LabVIEW

0 Kudos
Message 3 of 4
(2,784 Views)
> Is there a possibility to use a Graph for create Data ??
> The user is to input points in a graph with a Mouseclick, which I want
> to pick out as table.

Look at Examples/general/graph/graphctl.llb.

It will require that the user drags around a
graph cursor, but it works pretty well. Other
ways of doing this pretty easily is to use the
picture control and read the mouse position and
mouse button state.

Greg McKaskle
0 Kudos
Message 4 of 4
(2,784 Views)