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

Similar Messages

  • Is it possible to control the cursor of a XY-graph via Keyboard and read the y value of the curser x-position?

    I have following problem when I control the cursor via an attribute note, it is neccersary to free the cursor, but then it is not possible to read the y-Value of the cursor position. I want to control the cursor via keyboard and buttons, but with the funtionality of attribute setting "cursor fixed to plot".

    You know the X position so just read the Y value by reading it straight from the Y array instead of from a property node...
    Alternatively unlock the cursor if the position control has changed...and lock it again if it is constant for n milliseconds; to produce the Y value from the Y property.
    MTO

  • 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

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

  • 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

  • Controling the cursor position

    Hi all,
    I have two x, and y signal outputs from a dll module and I plan to use them to control the cursor position. One problem I'm facing is that my signals are variable enough to cause the cursor to vibrate in stationary setting. So, I use hysterysis (putting threshold) to eliminate these fluctuations but the drawback is that keeping the treshold high enough to eliminate the fluctuations keeps me from getting a nice, smooth movement when the speed of movement (rate of x and y changing) is low. Any ideas or suggestions will be appreciated.
    p.s. I am using "SetCursorPos".dll as you might have already guessed.
    Thank you,
    Elnaz

    The formula for an exponential filter of degree D is the following:
    New Average = (New Value + (D-1)*Old Average)/D
    I usually add a special case for startup so that D is never greater than the number of points. 
    As I said, it is a low-pass filter, much like using a running average.  I usually like it because the state is simply a single value (Old Average) instead of the array of values you have to keep around to do a running average.
    As to the new question of separating high-frequency noise from your high-frequency signal, that is a bit more complicated (obviously).  You should take a power spectrum of the noise to see if there is a characteristic feature you can use (cutoff frequency, strong peaks).

  • I can't completely control my cursor on my macbook pro, and it keeps jumping to the right of the screen and switching my screen to the dashboard or utilities. Any ideas on what might be causing this, and what I can do about it?

    i can't completely control my cursor on my macbook pro, and it keeps jumping to the right of the screen and switching my screen to the dashboard or utilities. Any ideas on what might be causing this, and what I can do about it?

    If you have another pointing device installed, remember that the Mac uses "all sources live". You can literally use two or more mice or two or more keyboards at once.
    Your trackpad, if that is what you are using, must be very clean. Any debris may be seen as another "finger".

  • How to control more than one instrument via different interfaces at the same time

    Hi, I am new to Labview.  I am working in a project where I have to make a Automated testing tool . So, here is the set up -  I have a Chip on a board to which there are several instruments connected namely Agilent power supply, Agilent pattern generator, oscilloscope,Dmm and Thermotron. All these instruments will be connected to the host computer via ethernet, GPIB or RS232. I have to write a program on Labview where the program  should be able to communicate with these  instruments  at  the same time  and show the ouput  on display unit . I have to run the program once, should be able to view the ouputs. So, Is it possible to write such program in Labview??.  I have  downloaded  few instuments  drivers. Is it possible to combine those intrument drivers and construct a new VI which would be able to control all this ??   Will it be easier to program this on Labview or  I should  go for Labwindows/CVI  ??.
    Please mention some useful sites or tips (if u know) for writing program.
    Thanks in advance
    shasanka

    Hi Shasanka,
    ofcourse it's possible to control more than one instrument at a time.
    You should use the VISA routines to access all your devices. Every device get it's 'address' as 'VISA resource name'. This resource name contains information on the used bussystem and the (internal) device address (i.e. GPIB devices have an address number).
    So I suggest to read the manual and to look at the examples that come with LabView!
    And (from your question) it seems you should take the 3 or 6 hour seminar as well! (Look at www.ni.com -> academics.)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I can not control my cursor with the trackpad.  It moves randomly. It began after an Angry Birds update.  Anyone else have this problem?

    I have a late 2011 OS X Lion 10.7.4 that is only 6 months old.  For the first 4 months I had no problems, but then about 6 weeks ago I downloaded an Angry Birds update from the Apple App Store, and my problems began.  When playing Angry Birds the the new Angry Birds update for the first time the cursor began to jump around, moving on it's own as if someone else was controlling it.  After a few moments I became obvious I could not control the cursor with the trackpad. When I placed the tip of my finger gently in the center of the trackpad to try to hold the cursor still it becan switching from the game (desktop) to launchpad and mission control.  I then put the computer down so I was not even touching it, walked several feet away and the cursor still moved on it's own.
    I've done a lot of research over the last few weeks on related articles and realized this is a common problem with numerous different causes: PRAM settings,
    screen sharing, remote settings, having fingers accidently touch edges of trackpad, writst resting too close to trackpad, swollen battery, etc. and I don't think it's due to any of those issues.
    The problem came out of nowhere.  My computer stays at home, and is not used by anyone else.  At first it was just Angry Birds, but now it can happen at any time.  Sometimes hours or days go by when this does not happen, sometimes it happens so much I can't use the computer at all.  It can get so bad that I won't be able to click out of whatever I'm doing on my desktop, and I'll have to shut it down by holding the power button. 
    Has anyone else had this issue after updating Angry Birds?

    try a new/fresh apple brand cable and make sure it is the only usb cable in use. this worked for me, i noticed i had no problem with a lighting cable. i did a restore from scratch and from backup and it did not help me...and if you cant sync than you wont be able to get anything but apps back after the restore

  • How to control the cursor position on a text item..

    Hello,
    How can we control the cursor position programmatically on a text item.
    i.e. how do we move the cursor to home or end of the text item.
    TIA,
    Hiten

    If you have an access to metalink.oracle.com, take a look at notes:
    Note 61656.1 (V45) HIGHLIGHTING A REGION OF TEXT
    Note 131028.1 Default Highlighting in Forms (Client Server)
    and threads from metalink forum:
    531481.996 "Select_All not working in 6.0.8.25.2", 153092.995 "Text item cursor position"

  • 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

  • MODULE POOL WHEN WE PRESS ENTER KEY IN A TBL CONTROL THEN CURSOR GO TO FIRS

    DEAR ALL,
                    IN MODULE POOL WHEN WE PRESS ENTER KEY IN A TBL CONTROL THEN CURSOR GO TO FIRST INPUT/OUTPUT BOX  I WANT THE CURSOR WILL STAY ON THAT TBL CONTROL COLUMN.
      PLZ TELL ME HOW I CAN DO THIS.
    THANKS
    SHASHI
    Moderator message: no upper case please, search for available information before posting.
    Edited by: Thomas Zloch on Mar 11, 2011 11:50 AM

    Hi,
    This is possible only for check boxes and radio buttons.
    for others you atleast need to double click.
    please note double click is possible.
    regards
    Ramchander Rao.Krishnamraju

Maybe you are looking for

  • Multiple Apple IDs, Multiple Apple Devices, Multiple User Profiles, & One Mac

    My husband and I recently bought our first mac and iPhones. When we set each of them up I'm not sure we took the best method as far as ease of access to content and simplification. Each iPhone is linked to a separate Apple ID and we have two user acc

  • Trying to do date field greater than a specified date in condition editor

    Hi All, I am trying to build the XML predicate in the expression editor to check that the posting date sent is greater than a specified date to determine the reciever. I can get it to validate posting date is = to specified date, but when I change th

  • I have to keep restarting AirPort Extreme to get it to connect!

    I have the AirPort Base Station and for some reason, it keeps disconnecting and wont show up in list of networks. The only way to get it back up is to unplug it and plug it back in. I have to do this multiple times a day now. Is this a problem for an

  • Garbled messages

    We are using JavaMail api to send emails through SMTP. The messages we send are in HTML format. It works fine normally but occassionally we are getting garbled messages. The content itself looks fine (without any special characters etc.). One peculia

  • Profit Center Consolidation

    Hi Gurus, Currently We have 3 company code 2 of them newly implimenting and the cusomer need consolidation of all these 3 company codes and i have suggested to go for Profit center consolidation as they dont want to impliment EC-CS or BW. Can you ple