Cursor in XY-Graph

Hi,
I´m using Labview 6.02 and have a question about the cursor in an XY-Graph.
My task is to set the cursor at the beginning to the zero-position (X). Of
course this is working only in free-mode. The next task is to prevent
scrolling. I have done this with the entry
scrollGraphCursors=FALSE
in the labview.ini-file. But this doesn´t work I expect. Now it´s possible
to move the cursor out of the draw-area (so the cursor is not visible). If
you release the mouse now you will never get control to the cursor again.
But I can´t use the ´lock to plot´ mode because of my task #1.
Has anyone a good idea?
Thanks in advance.
Best regards,
Uwe.

Uwe Rößner wrote:
> Hi,
> I´m using Labview 6.02 and have a question about the cursor in an XY-Graph.
> My task is to set the cursor at the beginning to the zero-position (X). Of
> course this is working only in free-mode. The next task is to prevent
> scrolling. I have done this with the entry
> scrollGraphCursors=FALSE
> in the labview.ini-file. But this doesn´t work I expect. Now it´s possible
> to move the cursor out of the draw-area (so the cursor is not visible). If
> you release the mouse now you will never get control to the cursor again.
> But I can´t use the ´lock to plot´ mode because of my task #1.
> Has anyone a good idea?
> Thanks in advance.
>
> Best regards,
> Uwe.
You don't need to use the ini file for anything. You can use property
nodes
to get control of the cursor. Set the active cursor to cursor 0
then lock to plot, then set the cursor X position to 0. Then set allow
drag to true. The user will then be able to drag the cursor in the x
axis and the cursor will follow the plot values in the y axis. So, you
must use the property nodes of the graph to control the cursor.

Similar Messages

  • Automatic Cursor Movement in one Graph, in accordance to the cursor in another graph

    I am using two XY graphs each with 4 cursors. I want to assign each cursor of graph A to each cursor of graph B such that the corresponding cursors in graph B moves in accordance to the cursors in graph A.
     I have used Active cursor, Cursor.PosX and it works for one cursor. However when I use the same concept to change the active cursor value and faciliate the automatic movement for all cursors they do not work.
    Message Edited by Chathuri on 08-13-2009 06:26 AM
    Solved!
    Go to Solution.

    Hi,
    As requested I would like to post the solution as to how I tacked the problem. It was actually small mistake on my part. When I connect the two property nodes for each XY graphs I should connect ActiveCursor to ActiveCursor and Cursor.PosX to Cursor.PosX. What I did was connect the Active cursor of A graph to the cursor.index of B graph. I have attached a small screen shot of connecting the first cursor of A graph to the 1st cursor of B graph so that the cursor in B graph follows the cursor in A graph.
    In order to connect more cursors as in my case, the only change to be made is the change in the Acitve cursor constant to, 1,2,......
    Chathuri
    Attachments:
    CursorMovement.JPG ‏7 KB

  • Linking property nodes to two cursors in one graph

    Hello,
    I have got one graph with 2 cursors. And I need to by able to set the coordinates of each cursor by using property nodes. However, if I click right button mouse button - create - property node - cursor - cursor position - -then there are only 3 possibilities "All elements", "X", Y" which links only to one of the cursors (actually I don`t know which). How is possible to link 2 cursors`s position property nodes to 2 cursors in one graph?
     Thank you a lot for discussion.
    Martin Pekar
    Solved!
    Go to Solution.

    Also, if you have more than a few cursors, you can make the code more scalable by using an array of positions and a FOR loop as follows.
    Now the code automatically adapts th the number of cursors you actually have.
    (Of course all other common sense applies, for example only set this when the position changes. Don't write the same cursor postions with every iteration of the loop over and over. )
    Message Edited by altenbach on 05-06-2009 06:25 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MulticursorII.png ‏4 KB

  • Cursors in XY Graph are blinking

    Hello,
    The graph at XY graph component should be repainted too often (2 - 3 times in second). The graph doesn't blink, because "Update smoothing" option is on.
    But cursors at this graph are repainted every time so they are blinking very strong and customer says it annoys.
    Is it possible to avoid this?
    Thanx

    Hallo Thanx,
    one idee which i had, is to use the property nodes of the XY-Graph to setting the Courser to a fixed position or make them invisibil
    while the measurment is running. One thing about property nodes you should know, they are not very performant, so use them only
    to initialization or deinitialization your processes.
    Best regards
    Lorenz Casper

  • Line using cursor in xy graph

    hi
    how i can draw line using cursor in xy graph
    Solved!
    Go to Solution.

    Hi bijal,
    Not sure what you are planning to do. But you could start with:
    Creating a XY graph. 
    Right click on the XY graph >> Visible Items>> Cursor Legend. 
    Right click on the cursor legend >> Create Cursor >> Free. Up to this step, you should able to create the cursor.
    To obtain the data from the cursor, go to your block diagram >> right click on the XY graph terminal at the block diagram >> Create >>  Property Node >> Active Cursor. This should create the property node for your XY graph. To change a selected property to write, right click on the active cursor >> Change to Read and it should be like below:
    Just input 0 to access the first cursor
    Expend it to access an additional properties >> on the second property, click on it >> Cursor >> Cursor Position >> Cursor X. 
    Expend the properties until you see as below:
    It Cursor.PosX and Cursor.PosY isn't changed to write, do change it to write by right clicking on Cursor.PosX >> Change to Write. Do the same for Cursor.PosY
    Up to point 6, you should be able to obtain data from the XY graph cursor.  
    Use those values to plot into the XY graph. I believe you'll need to find a way to plot XY graph by building an array of clusters. 
    Hope it helps
    Warmest regards,
    Lennard.C
    Learning new things everyday...

  • Restrict the movement of cursors on xy graph

    hello.
    I have an XY graph, with values of 0-10 in X, and of 0-10 in Y. I have two cursors in the graph.
    I do not want the cursor is out of the graph area of 10 * 10, I disabled the auto scale, but the cursor can get out of the area of 10 * 10.
    I also hope that the value of X of the cursor0 does not exceed the value of X of the cursor1.
    I hope you can help me with these restrictions on movement, thank you very much.

    Hey there, If you want to restrict the value of the cursors you can use property nodes to do so..
    Here is an example; you just need to get the value on X of the active cursor (0 or 1) and then compare those values; if the value is smaller; you can use a case structure and a property node to coerce the values.
    Hope this info helps.
    Greetings
    Attachments:
    Untitled 3.vi ‏11 KB

  • Placing a cursor in multiplot graph to display all values at the cusor location

    We are currently using NI based DAq system which uses LABVIEW 7.1.We would like to know whether it is possible in LABVIEW 7.1 to place a cursor in a graph having multiplot that will disply all the values of parameters at the cursor location?

    If I understand the question correctly, yes, LabVIEW can display many parameters of a cursor, including the cursor position (in X and Y coordinates), the array index of the point to which the cursor is locked, the line and point style and thickness, etc. You can also read or set how a cursor locks and whether a cursor is visible or not as well as other properties of cursors. All of this is done using property nodes in LabVIEW and can be done with multiple plots and multiple cursors.
    TylerS
    Applications Engineer
    National Instruments

  • Programmatically disabling/enabling cursor in intensity graph

    Hello all,
    I am building a LV interface (LV2011) for a stepper XY stage.  The system "scans" a surface, displaying it on the graph.  I set up to cursors to zoom into a region of interest (ROI).  Pressing a button resizes the scales to the ROI (zooming in on the area).  Sections of code move the XY stage, and read a device.  When done I want to zoom into a ROI and use a THIRD cursor to manually move the XY stage.  I have this working with TWO graphs, based on the "region of interest.vi" I found in the dev zone.  
    What I would like to do is have a boolean toggle controlling ONE GRAPH between setting min/max (cursors 0 and 1) and manual stepper position (cursor 2).  If cursor 2 is visible I want cursors 0 & 1 not showing and visa versa. Can I do this?
    I attached the example - bascially what I did was add a cursor to the 2nd graph, grabbing the XY vales and sending to the stepper controllers. Works great!  I am trying to "combine the two" by resizing the orig graph with a button click (works fine) and then click another button to show the XY stage cursor (and hiding the min/max cursors) - thats the brick wall
    On a seond note - controlling a XY stage using the intensity graph's cursor is really nice; however it would be great if I can control the cursor similar to a slider's "coerce" - has anyone done this?  I assume I have to write a routine in the event that performs some modulo function. Just curious!
    Thanks,
    Steve
    Solved!
    Go to Solution.
    Attachments:
    roi.llb ‏40 KB

    Your exmaple works perfect. Howver I am having probs with Val(sngl) on the XY graph.  On the example you gave, lets say I move the cursor with the mouse - event fires, everyone is happy. If I move the cursor with CODE - nada.  I even read the "Value" of the graph and wrote it to "Val(sngl)" to try to fire the event.  How does one force a trigger on an XY chart when you move a cursor (say cursor idx2) using code?
    Better yet - why when I read the Val and write to Val(sngl) does the event not fire??? I have been searching for a basic XY table with sensor -type project but havent found one yet.  Everyting works great - draginng the cursor moves the XY stage. Now I need to do the auto-scan part  Use code to place the cursor - trigger the even that moves the stage.
    Thanks
    Steve
    Attachments:
    XY_Stage_Rev8.vi ‏53 KB

  • Multi plot cursor in Mixed Graph

    If Digital waveform and normal waveform graph is plotted in a mixed graph, and if I choose watch all plots(multi plot) in cursor, LabVIEW closes immediately with an error popup dialog
    I have attached the print screen image of that error popup
    Attachments:
    error.JPG ‏188 KB

    Hi Stephen,
               I found a considerable solution to overcome that error.
               Build all the array data at first and then generate digtal
    waveform in single instance.
               ie., With number of numerical array data, build a 2D array of
    numerical data and make a transpose and then generate a waveform.
               It generates number of digital waveform equal to that of the
    column size of 2D Array.
               Do not build generated digital waveforms. This creates an error
    while using multi plot cursor--> watch--> All plots.
               I have attached the modified, bug removed Vi with this message for
    your reference.
    Regards,
    Raja
    Project Engineer
    Soliton Technologies
    www.solitontech.com
    Attachments:
    Mixed Graph Modified without Error.vi ‏25 KB

  • Multi-plot cursor in xy graph

    I am using an XY graph with 5 curves which belong to one of two y axes each. All curves share the same array of x values. I do not like the cursor legend so I want to read out the values of the one cursor programmatically. I can create a multi-plot cursor which watches all the 5 curves but I cannot find how I can read out the 5 corresponding y values of my cursor. Any help?
    Thanks,
       LX (using LV2014)

    Use the cursor index property value and wire that to an index array function for each y array.

  • Loose graph axis with cursor in 3d graph

    I added a cursor to a 3d contour plot, which gives location and z value.  have displayed as xy projection.  when I am moving the cursor, I loose the x and y axis, and the contours become dots.  
    kind of annoying.  any properties I can change? 

    Hello Ennis,
    I don't know if there is a property that can accomplish what you want.  I have been playing around with the 3D graphs for quite awhile.  I'll keep looking and let you know if I find anything out.
    Regards,
    Jon S.
    National Instruments
    LabVIEW R&D

  • Moving the cursor in a graph beyond the XY boundaries

    Hi All,
    I have graphs with many plots.
    Suppose one of my plots is  on the topmost portion of the graph.
    The user is able to scroll thsough the graph so that sometimes some of the plots go beyond the visible portion of the graph.
    I want to know how can i limit the graph scrolling beyond the area the plots reside.
    The graph consists of all the plots in the visible area when its loaded.
    But if the user scrolls the graph beyond ther limits some plots go beyond the visible portion.
    What is the solution for this problem?
    Is there any way like lock the graph if the usder scrolls beyond the boundaries?

    Right click the graph and uncheck "Advanced>>Cursors Scroll Graph".
    Try to take over the world!

  • Select cursor reference XY Graph

    Question... I have a XY graph.
    This graph has 3 cursors. Now I want to be able to select cursor 1, 2 or 3. And then edit some property nodes, like line style, width, color.
    How do I do this? Because I can only get 1 cursor reference... that of the active cursor.
    Regards,
    Wouter
    Solved!
    Go to Solution.

    I just ran into the same problem - I'm glad I found this solution.
    Having said that, it's a rather unintuitive way to handle multiple cursor references. This should be improved in a future update.

  • Event Precedence - Mouse Move or Cursor Move on Graph?

    Since LabVIEW 8+ introduced cursor events (grab, move, release), is there a conflict that would occur between a mouse move event and cursor move event since a cursor move involves a mouse move?  Or, since the cursor move requires the left mouse button to be down, does that allow LabVIEW to differentiate which event is occurring?  I have some code I am writing to draw a box on an intensity graph (using the new plot.images property for graphs) so as to extract a region of interest.  At first, I want a cursor to follow the mouse as it moves over the graph.  Then, I want to draw the box region when I grab the cursor (with left mouse key down) and drag it.  Differentiation of these two event types will allow me to unambiguously accomplish this task.
    Thanks,
    Don

    Moving a cursor will interleave mouse move and cursor move events.
    However, you can easily keep state of mouse up/down to distinguish what to do in this particular case. See attached draft (8.20).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    eventqueue1.vi ‏29 KB

  • Control more cursors in XY graph

    Im currently working on somthing that requires me to control the locations of many/unknown number of cursors on an xy graph. I can control up to 9 so far (0-8), but in the block diagram when I unbundle the CrsList Property of the XY graph, I can only go as far as 08.Location, and then just stops and wont even start listing cursor 09. I have LabView 6.1 right now, if this has changed in 7, please let me know, or if not, if there is a way around this problem.
    Thanks,
    Mark

    Hi Mark,
    you can have as many cursors you want. Look at my example which will generate a new cursor each time you go through the loop. I clicked 23 Times on the "Next Cursor" and got 23 cursors.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    xy-Cursor.vi ‏60 KB

Maybe you are looking for

  • Learn by example for OWB 9.0.2.62.3

    Hi all, I'm looking for online case study on OWB 9.0.2.62.3 as the example at this page:http://www.oracle.com/technology/obe/obe_bi/index.html. Thanks in advance.

  • IMac internet sharing failing to connect to my Blu-Ray disk player.

    I have a Late 2009 iMac 27-inch. I have setup internet sharing through wifi. All of my iPods, iPads, iPhones connect just fine. But when I try to connect my Blu-Ray disk player, it gives me a timeout error. It is a Panasonic DMP-BD87P-K. I have calle

  • To View the Document Structure

    Hi All I want to view the Document Structure (Product Structure) in the SAP PLM Table. If any body knows, could you please share the table information? My requirement is to get the Product Name (Doc Type: CE2)  which are Empty (meaning - no parts or

  • Lost sound on Power Point (.pps) attachments to eMails

    Since I have upgraded my Mac to MAC OS X Snow Leopard (10.6.1), I am unable to get any sound on .pps attachments to eMails (the same attachments to the same eMails received on my PC laptop do produce sound). In an attempt to maybe solve this problem,

  • Lightroom problems AGAIN and again

    I have the same problem since over a month. I've download Lightroom through creative cloud, I'm paying for it every month and yet I cannot use it comfortably. Every time when I'm closing my computer down and then I'm restarting it my LR is not workin