LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dragging chart cursors

There's an annoying feature of a chart that I can't stand.  When I grab a
cursor and drag it to the desired location, sometimes I'll accidentally move
the mouse outside the chart.  Labview then scrolls the chart data outside
the field of view so that I have to either manually reset the Y axes or use
the drag tool (hand) to bring the data back in view.  Is there any way to
turn this feature off?

Also, I'd like to be able to use a tool to select a portion of the data in
the same manner as the zoom tool but without the zoom and perform some
analyses on it.  Right now I'm doing that by moving cursors (and
encountering the problem above) but it's a bit awkward and not very
efficient.  Can someone suggest a way of doing this?  It would be great if I
could just read the properties (coordinates) of the zoom tool and turn off
the zoom feature.


Thanks.
0 Kudos
Message 1 of 6
(6,252 Views)
For problem 1: RIght-click on your graph and unselect "Advanced...Cursors scroll graph". I personally prefer this option off myself. 🙂
 
For problem 2: There are many possible ways to do this. You could e.g. place two cursors to define a rectangle, then read their position using property nodes.
0 Kudos
Message 2 of 6
(6,250 Views)


@altenbach wrote:
For problem 1: RIght-click on your graph and unselect "Advanced...Cursors scroll graph". I personally prefer this option off myself. 🙂
 
For problem 2: There are many possible ways to do this. You could e.g. place two cursors to define a rectangle, then read their position using property nodes.



Problem 1: Works perfectly.  Thanks!

Problem 2:  This is what I'm doing right now and it's rather awkward since I have to do it many times in a long data record of brain activity over several hours.  I'm scrolling through the data in the graph and when I see an event in the data that I have to analyse I position the cursors around it.  I'd like to just click the mouse at the beginning of the event and then at the end and have that portion of the graph highlighted and analysed...or have a tool like the zoom tool whereby the event is highlighted by clicking and dragging a highlighted area...like selecting a sentence in MS Word.

 

0 Kudos
Message 3 of 6
(6,244 Views)
You could of course use a picture indicator and generate your graph manually as a picture. This is actually very easy and it gives you full control on what is displayed. Check the LabVIEW example finder for "Waveform and XY Plots.vi". 🙂
 
Now you can draw on top of it, e.g. a rectangle bounded by the "mouse down" position and the dragged mouse position, e.g. using events. The "mouse up" event would then trigger the math on the selected area. What exactly happens is entirely up to you.
 
I spent a few minutes to make a quick example (LabVIEW 7.1) using an image. I am sure it can be improved but it shows the idea. 🙂
Message 4 of 6
(6,239 Views)

Thanks.  This looks very useful.

Brian

0 Kudos
Message 5 of 6
(6,217 Views)
Hi Christian:

Added a mod to this (see the checkbox in upper right corner).....Don

ps. great presentation at NIWeek 2006,  I would love a copy of the curve fitting VI examples you put together.

Sincerely,

Don
0 Kudos
Message 6 of 6
(5,858 Views)