XY graph cursor won't snap to plot when dragged

I haven't used XY graphs much and have a need to have several plots on the graph and be able to find the value at points on the plot using cursors.  Everything works fine except that I can't drag the cursor along the plot.  Even though Snap to is on and drag is enabled when I drag the cursor it does not snap to the plot.  When I then use the cursor navigation keys the cursor snaps to the last point point it was on before the drag instead of snapping to the plot during the drag.  I want the user to be able to drag the cursor and have it snap to the plot it is attached to.  Any help would be appreciated.
I've attached a simple example VI.
 

Yes, data was an array of clusters, each cluster containing three elements*.
I agree that it is a bug. That odd "this works" should be maybe be renamed to "this works, sort of....". I probably wouldn't use it.
*This particular data structure for xy graphs is not documented here! So use at your own risk

Similar Messages

  • How to set cursor property from "snap-to-plot" to free?

    dear all,
    is there any one know how to set a cursor property from "snap-to-plot" to "free"?
    this cursor is in a XY graphy
    i couldn't find coresponding property in the XY graph property node
    thank you
    Jack

    It looks like there are different property names depending on your labview version.
    You need to select the ActCrsr and then use the Cursor.Lockstyle property in LV7.1
    You need to select the ActCrsr and then use the Cursor.CursorMode property in LV8.2.

  • Mixed Signal Graph: Cursor Position Property for Multi-Plot Cursor

    I'm working 6 waveforms on 3 different plot areas in a mixed signal graph in LV2009.  When I try to pull the Cursor.PosY property from my cursor (in which Watch All Plots is True, and is set to Multi-Plot in the graph properties), it returns the value of only the first plot in the cluster of waveforms fed into the graph.  I've tried changing the active plot, active plot area, nothing changes.  I am able to retrieve each value via the cursor legend, but I cannot pull each of those values into another portion of my program.  Also, I noticed that when setting events in an event structure, any events relating to a cursor drag aren't present as they are in a waveform graph.  My workaround is to create an indicator for the Cursor.PosX property and monitor when that value changes, but I feel there should be an easier way.  Any help is appreciated.
    Thank you in advance!

    Jeanius,
       I am not quite sure why the cursor pos in the Wavegraph reference does not change when you change the active plot, but if you grab a reference to the specific cursor and then change the active plot things you receive the expected behavior.
    Ben J.
    National Instruments
    Applications Engineer
    Attachments:
    MODDEDmixed graph cursor ex.vi ‏41 KB

  • Why does the graph cursor (snap mode) snap to unvisible curves? How can i change that?

    I display several curves in one graph. To get a better overview the user can filter unwanted curves by setting the attibute to unvisible. There is one cursor switched on in the graph with the option "snap to plot". The user can move the cursor and read the coordinates and curvename. Unfortunately the cursor snaps also to the unvisible curves. How can I block that behaviour? The cursor should only jump on the visible curves.

    > with the property Cursor.Plot I can set or get the current plot number
    > of the cursor, but I cannot prevent the user to move the cursor to an
    > unvisible plot. Labview allows the cursor to be moved to a curve witch
    > is unvisible in the graph. I want the user only to be allowed to jump
    > betwen the visible curves.
    >
    The graph cursors can be locked to a particular plot or set to snap to
    any plot/point on the screen. You cannot see invisible plots, and you
    probably can't see black plots on a black background, but the graph
    intentionally lets you place cursors there and other users wouldn't be
    happy if it changed.
    What we will likely add at some point is a way to truly show and hide a
    plot. In the meantime, you can also just change w
    hat is plotted.
    Hidden plots can be removed, no points, and the cursors will not go there.
    Greg McKaskle

  • Bode magnitude graph cursor not following plot

    Hi,
    I was wondering if anyone would be able to shed some light on a problem that I am having regarding an XY graph cursor.
    I have developed a simple VI to determine the characteristics of a low pass filter using a sine wave ramped in frequency and subsequently monitoring the gain of the filter to create a Bode plot.
    Through analysis of the Bode plot I would like to determine the cut-off frequency of the low pass filter under test. I have introduced a cursor into the graph and using a property node I hoped to drive the cursor to the -3dB point in the Y axis and output the cursors corresponding X position thereby determining the cut-off frequency of the filter.
    However the cursor never seems to follow the plot beyond the first step of the loop. It feels as if there is a break in the plot between the 1st and 2nd iteration of the while loop used to ramp the signal generator.
    I've tried to work out why the cursor won't follow the plot to -3dB but so far I am stumped. 
    Any help or advice that you could provide would be greatly appreciated ! I have provided the attached VI for clarity.
    So liberate your minds and give your soul expression. Open up your hearts, I'll sing for you this song. Let the people sing !
    Solved!
    Go to Solution.
    Attachments:
    LPF Auto Test.vi ‏109 KB

    I have corrected your VI.
    First, you needed to put the property node AFTER the while loop, because you need the graph to be done first and then look at the frequency cut off.
    Second, in LV, the property nodes are read from top to bottom. So you need to place the cursor at Y = -3 first, and then read the X position.
    I attached the corrected vi
    Giuliano Franchetto
    Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
    Attachments:
    LPF Auto Test.vi ‏109 KB

  • [XY Graph]Cursor legend difference between LV 7.1 and 2009

    Hi all,
    recently I am working on having software done in LV 7.1 renew with 2009.
    And I have such problem, that with the old version on cursor legend there were options for cursor to be snapped to plot or free-run etc ( it was possible to do that in runtime) So that user could do that without any code added to handle that. Am I doing something wrong with graph settings ? or that functionality has been removed ? I attach a file with a area of my interests
    Regards
    PacHOOk
    Regards,
    PacHOOk
    Solved!
    Go to Solution.
    Attachments:
    LV7.1.jpg ‏9 KB
    LV2009.JPG ‏11 KB

    I think you will be interested in reading the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=458099

  • Urgent ! help ! Pop-up panel invalidates graph cursor to snap to plot point.

    I used PlotXY in the graph control with cursor attribute of '"sanp to point" and produced a plot. Everything is OK before popup a pop-up panel. After the pop-up panel removed, the cursor can't snap to any point of the plot. I tried "SetPlotAttribute (... ATTR_PLOT_SNAPPABLE, 1)","SetPlotAttribute (..., ATTR_PLOT_ZPLANE_POSITION, 0)", they don't work.  I don't know how to solve this problem. I need your help! Thanks!

    You are using an undocumented data structure for the multiplot. (one x,  two y, e.g. as seen here).
    Each plot needs it's own x!
    If you do the following, things work just fine. (same if you use bundle, of course)
    ... and please add a wait to that while loop. It is actually not even needed. Cursors lock even back in edit mode, of course.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    XYLock.png ‏4 KB

  • Moving xy graph cursor with mouse and programmab​ly controllin​g snap to point

    Hi,
    I have run into a bit of a problem. I am trying to create a program which allows a user to select a location on an XY graph by simply clicking in the vacinity of the plot. Most of it is working, however I find that I can't programmably control the snap to point function reliably.
    I hope this is a clear outline of the problem:
    - The cursor starts in a Free state, so that when the
    user clicks in the plot area, I can set the cursor
    position to the nearest point by setting the
    CursorPosition using the graph's property node.
    - Maybe the user didn't like the chosen location and
    wants to drag the cursor over a bit. Ok, user drags
    the cursor to a new position.
    - Now th
    e cursor position is probably not exactly on
    the plot trace. If, at this point, I set the cursor
    to Snap To Point, the cursor does not snap to the
    nearest point on the graph (relative to its current
    position), but instead to the last place a _mouse_
    action placed it.
    - Immediately after the new location has been set,
    the cursor state has to be reset to free in case I
    need to programmably move the cursor again (I
    can't seem to programmably control the mouse in
    any state but Free)
    How do I go about getting the cursor to snap to the closest point at it's new location? I'm at a loss.
    Any insight you might have would be greatly appreciated.
    Thanks much!
    Tere

    So what is the question about... I have to use XY graph in my program. It is used in Loop while cycle. It shows the statistic of a variable. I am using cursors in this graph to check the actual value of a variable in different period of time. But there are 7 variables and it is extremely hard for user to check each value independently. So I tried to make them moving on the X axis (TIME) together using the property node (cursors reading the position (only X axis, Y axis status lock to plot) of the major cursor and follow it... Everything looks great? But it did not work when I am trying to move the major cursor manually on graph... It works only when I am using the cursor movement buttons... But they work very slowly when there is a lot of data in graph.
    I want to find out is it possible to make seven coursers mouthing together By the X axe and be Locked each at its plot by Y axe manually (Using mouse moving on a graph). Is it possible? If it is than how to do it?

  • How to force waveform graph cursors to show Y value on more than one plot?

    Hello
    Is it possible to show more than one Y value on waveform graph cursors?
    Thanks in advance.
    Pawel

    Hi Dennis
    That is correct, on graph woth multiple plots I want to display multiple Y values of plots at the same X value.
    I know I can use property node to access cursor list etc. and this is how I have done it, but my question was rather if it is possible to force the cursor legend to display more than one Y value (as a native display). As a default it displays one value and you can choose which plot you want to stick to, but it would be a great feature to have possibility to expand cursor legend to display more than one value.
    The question has nice consequences. If it was possible, you could use a property node to export image of the graph, control sizes, or even simple "copy" data from the popup menu. Otherwise we need to "artificially" glue the exter
    nal controls displaying Y values if we want to export pictures, etc.
    But since you did not answer that I supose it is not possible, as I thought.
    thanks anyways.
    kind regards
    Pawel

  • XY Graph Won't save to JPEG when Black and White...and run from TestStand.

    I am creating an XY graph and manipulating the colors of the plots, background, etc.  I am saving this graph to JPEG using the Write JPEG File vi and after it is saved I import it inot a test report.  This works fine in color, but when I create a B&W plot, it won't save to JPEG.  Let me clarify:  It won't save to JPEG when I run the VI from TestStand.  It does save to JPEG when I run the VI as a stand alone application in LabVIEW. 
    Problem:
    Run VI from LabVIEW ~ Saves the JPEG in both Color and B&W.
    Run VI from TestStand ~ Saves the JPEG in Color, but does not save the JPEG in B&W.    
    Here is how I am making all the plots and background B&W in my code:
    Change all Active Plots to Black using property node.
    Change all Active Cursors to Black using property node.
    Change the Plot BG colors (major/minor grids, etc) to lighter colors using property node. 
    Does anybody have any suggestions? 
    Thanks in advance,
    Mike

    A few questions: What version of LV are you using? How are you getting the control image that you are sending to the JPG? Third what exactly happens when you try to save the B/W image under TestStand? Error?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Can i position my cursors in a mixed signal plot with my mouse?

    i can move the cursor in the plot via the cursor controls with no problem. but it's a very slow and arduous process. i'd like to be able to just grab the cursor with the mouse and position it where i want to.
     i can grab the cursor with my mouse now, but when i move it, it's like the cursor is locked to the position on the plot and moves the whole plot, which i don't want to do. 
     i just want to be able to position the cursor a little faster or quicker than with the left/right/up/down buttons that are avialable now. it would be great to be able to click my mouse at a point in the plot, and snap the cursor to it, or just grab the cursor and put it where i want to. 
     if anyone has any helpful suggestions or hints, i'd appreciate it.
     i'm running labview 8.6 on vista and xp.
     thanks for your help,
    chip
    Solved!
    Go to Solution.

    james and baji,
     thanks for your input, but i guess i'm not very clear in my question. first of all i don't see a cursor locked property to use, so i'm a bit confused on that point.
     but my problem is, i'm using a mixed signal plot, it has say three plots on it. the scales for the x is 1435 to 1455 while the y scale is 0 to 500. there are three plots displayed. using the cursor control buttons (the four diamond pattern controller for up, down, left right) i can position the cursor crosshairs at any point on the displayed plot window, whether on a plotted point or anywhere on the displayed scale. 
     but when i grab the cursor, and move it anywhere, i move the whole display along with the cursor, and all my scales change on the plot window accordingly to where i grab the cursor and move it. but the cursor stays locked onto that spot and the plot area moves. what i want to do is have the plot area stay where it is, and move the cursor only, not the whole plot.. 
     what i'm trying to do is pick an xy coordinate with the cursor and write that point to a file. i can do that using the cursor control buttons, the cursor moves freely anywhere in the plot window, even though it takes a long time (holding the shift key speeds up the cursor).
     unfortunately, i can't download any of the demo vi's you guys have left, my firewall won't let that happen. 
     thanks for your help though,
    chip

  • Graph Cursor Controls

    On the graph cursor control (the 4 sectioned diamond that appears withthe cursor legend) I'm wondering what the top and bottom diamond do if anything. The left and right ones are simple enough (forward or back one sample) but the top and bottom ones don't seem to do anything from what I can tell. Are they just for decoration?
    Solved!
    Go to Solution.

    Dan,
    I never noticed that before but you're right, in a multi plot graph the up/down diamonds will attach the cursor to a different plot. I never noticed before because I usually change my cursor style so as to not show the horizontal line (just shows the vertical stripe for the cursor).

  • XY Graph Cursor

    I have one xygraph with six plots(six signals). I want associate one cursor on the six plots. I want move cursor in the graph and display the different values in the different plots. How this?.
    Tengo un gráfico con seis plots y quiero asociar un cursor a los seis. Donde al moverlo por el gráfico me muestre en seis controles enteros los valores Y de los plots.
    Muchas Gracias a todos, MFS.

    So what is the question about... I have to use XY graph in my program. It is used in Loop while cycle. It shows the statistic of a variable. I am using cursors in this graph to check the actual value of a variable in different period of time. But there are 7 variables and it is extremely hard for user to check each value independently. So I tried to make them moving on the X axis (TIME) together using the property node (cursors reading the position (only X axis, Y axis status lock to plot) of the major cursor and follow it... Everything looks great? But it did not work when I am trying to move the major cursor manually on graph... It works only when I am using the cursor movement buttons... But they work very slowly when there is a lot of data in graph.
    I want to find out is it possible to make seven coursers mouthing together By the X axe and be Locked each at its plot by Y axe manually (Using mouse moving on a graph). Is it possible? If it is than how to do it?

  • Xy graph cursor blinks

    Hi All,
    I have an xy graph and i cud find that the graph cursor always seems to blink....
    I never had such a problem before...
    Anybody knows solution for this
    Thanks in advance

    Hi,
    I attached the screen shot and example VI for you.You can right click on the Curosr tool and select snap to cursor.MAy be you can send me the screen shot of your VI ,so can see what going on.
    Regards.
    Syed.
    Attachments:
    gengraph.llb ‏32 KB
    XY.JPG ‏170 KB

  • XY Graph Cursor Problem in Labview 7.1.1?

    Hallo,
    I am  using Labview 7.1.1 and I am facing one problem with XY graph cursor. If I am moving cursor in one graph, I am expecting same movement in another Graph. But when I move cursor in Graph1, cursor in second graph moves but not to exact X value of Graph1.
    Property of Cursor in both graphs must be "Lock to Plot"
    If any body knows about this please let me know ASAP. I am attaching example VI for your reference.
    Thanks,
    Sashi
    Attachments:
    XY Graph Cursor Problem.vi ‏101 KB

    It's a curious effect. Probably the floating point coordinate is sensitive to the exact pixel alignment (I mean that this would not happen if we had for example 1 pixel per point in the X direction).
    Anyway, if you use Cursor Index instead (which is an integer) the behaviour is as expected.
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

Maybe you are looking for