Cursor's position in xy graphs

How do I get the X position of two X axis cursors on a XY graph so that I can do numerical calculations?
I am including a VI that will produce a graph initially. After I have the graph I want to use the cursor position to determine the time between the cursors.
Attachments:
(L05-A3) Simple Pendulum.vi ‏224 KB

The problem with your property node is that you don't have the Active Cursor property. Before you read the x position, write to Active Cursor to select the cursor and then read the x position. In your case with two cursors, the sequence would be to select Active Cursor 0, read x, select Active Cursor 1, read x. You also should put some data flow between the while loop and the property node. Putting the property node on the right side of the diagram doesn't mean that it will execute after the while loop finishes. In fact, it won't.

Similar Messages

  • Cursor name position in Waveform Graph

    I lost the cursor name in the waveform graph, after programmed the cursor positions.
    I enabled 3 cursors, shown the cursor names, and programmed their positions in my VI. After running the VI, all cursor names are gone. I believe they are moved to somewhere out of the plot range due to LV malfunction. I cut and copy the graph to the VI attached, and enabled a new cursor, which looks good.
    I need to get the lost cursor names back (manually is OK). I also want to know how to avoid this.
    I am using LV 7.1 under Win XP Pro.
    Attachments:
    Study_Missing Cursor Name.vi ‏71 KB

    I have created a test vi that could generate this problem. I generated a waveform graph and label each peak with cursor name. Then I copied the waveform graph and paste to form another waveform graph 2 in which the cursor name is gone even the show cursor name is still enable. I have not been able to find the cursor names from the waveform graph 2.
    I am using labview 7.0
    HMP
    Attachments:
    test.vi ‏60 KB

  • Moving cursor to Zoomed Position in waveform graph

    Hello
    I have 2 cursors in my waveform graph and I would like to have the cursors move to the zoomed in position of the graph when I zoom in or out of the graph. Could some please tell me how to do it. Thankyou in advance
    Regards
    Pratheek
    Solved!
    Go to Solution.
    Attachments:
    Failure Device.vi ‏89 KB

    HI Mike
    Thanks for the reply. When I apply the logic to reposition the cursor in the scale range event only one cursor is moving to the zoomed in position. The other cursor remains out of  graph scale. I tried to repeat the same logc but it didn't work.  Could you please tell me how to get the 2nd cursor also in to the scale range. Sorry i'm fairly new to labview. I have attached the pic of what I tried.  Thankyou in advance
    Regards
    Pratheek
    Attachments:
    Capture.PNG ‏18 KB

  • LV7: how to catch 'Value change' event for cursor position in XY graph?

    I try to catch an event when the cursor position of a graph's cursor
    changes. I created a reference for the cursor array and registered a dynamic
    event 'Value change' for it. The event does not fire when the cursor changes
    (either by dragging it with the mouse or by direct entry of a new value in
    the cursor's X or Y fields. In contrast, when I register e.g. the 'Mouse Up'
    event for the cursor array, the event IS detected.
    -Franz

    So this is the same behaviour as that of a regular control which also does
    not fire a 'Value changed' event when it gets updated by e.g. writing to a
    local.
    At least the cursor's behavior is consistent then...
    But unfortunately also the direct user interaction with the cursor's numeric
    field does not fire the event, which is NOT consistent.
    I was trying to catch cursor changes in my event loop and had used a 'Mouse
    Up' event of the graph indicator to look for cursor changes (whose last
    position I had kept in a local or shift reg). In order not to miss a direct
    user interaction in the numeric field I added the dynamic event 'Value
    change' to the same event case, but with no success, it missed the direct
    entry ...
    according to what you say this seems to b
    e a bug then...
    -Franz
    "Greg McKaskle" schrieb im Newsbeitrag
    news:[email protected]..
    > > I try to catch an event when the cursor position of a graph's cursor
    > > changes. I created a reference for the cursor array and registered a
    dynamic
    > > event 'Value change' for it. The event does not fire when the cursor
    changes
    > > (either by dragging it with the mouse or by direct entry of a new value
    in
    > > the cursor's X or Y fields. In contrast, when I register e.g. the 'Mouse
    Up'
    > > event for the cursor array, the event IS detected.
    > >
    >
    > The reason is that value change events fire when user action directly on
    > the control changes its value. They do not fire when other programmatic
    > value changes occur. If you are looking at a value change on the cursor
    > palette, user interaction with the numeric should fire it, but updates
    > due to cursor movement are more like programmatic updates.
    >
    > Additional events will likely be added in future
    releases, and these may
    > make it easier to catch cursor movement events on a graph.
    >
    > Greg McKaskle
    >

  • How to add (multiple) cursors programmatically in an XY graph?

     how to add (multiple) cursors programmatically in an XY graph?
    I am building an XY graph. then I would like to add cursors at certain locations (positioned on x axis) I determine through a program.
    How can I add cursors programatically?
    Thank you.

    Initialize a cluster array (CrsrList type) with as many cursors as you think you would ever need.   Setup your cursors dynamically, then delete the unused cursors (array elements) and then update your CursorList property.
    Message Edited by vt92 on 03-20-2009 04:04 PM
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    cursors.PNG ‏5 KB

  • Move the name of cursor (not the cursor itself) on the XY graph

    I use cursor list property to overlay cursors on the XY graph, everything looks fine except that the name of the cursor and the cursor are at the same position, so it's hard to read the name of the cursor. Is there anyway to dynamically move the name of the cursor?

    No, you cannot do this programatically, the cursor name position may only be moved manually when the Name is "Trackable" (when Allow Drag == TRUE). However, you can use cursors in pairs of two to accomplish this. Use the first one as a normal cursor and the second one only for the cursor name, making the line (Hair Style) and point (Point Style) invisible (=0). If you have multiple cursors, just treat them as pairs and multiple your index by two, when finding the index of the pair.
    Good luck,
    Jim
    Attachments:
    Cursors.vi ‏39 KB

  • With Standard Labview 6.1, is there a way to set (x,y) cursor-mouse position?

    I am working on a project in standard Labview 6.1 that receives images from a webcam. This image array will then be analyzed to determine the position of a black dot on a white background. This dot will then correspond to an (x,y) coordinate point. We will then feed these coordinates into a program that will set the cursor mouse position to this point. However, we are uncertain on how to interface Labview with the computer mouse controls and are in need of assistance.

    If you are simply wanting to set the coordinates of an existing cursor on a LabVIEW graph, then you can do that using Property Nodes. I have attached an example of this which you could take a look at.
    J.R. Allen
    Attachments:
    SetCursor.vi ‏32 KB

  • How can I get the cursor's position in a opened file and display a menu?

    Hello,
    I want to make a program by which I will be able to display a panel/pops up menu at the corsor's current position, (In any text/doc file or in the desktop, we can display a menu by right click of the mouse.) Now I want my program to do the same task.
    More clearly-
    1. First I would save some words or sentences in a file(aa.txt).
    2. Then I would open another text file/ a word/ excel/ or any other editor( bb.txt / cc.doc / dd.xls / ee.html ).
    3. While editing or writing something in the opened file, if I click the right mouse button/ press a key (ctrl+space), a menu will appear containing the sentences I saved in the file(aa.txt) previously.
    My program will tell me the cursor's position in bb.txt / cc.doc / dd.xls / ee.html that i opened. And display a menu. my problem is not reading / writing in a file.
    My problem is how can I get the cursor's position in a opened file display a menu at that position by a mouse/key action*.
    Would you please help me on this regard.
    Thanks

    DrClap wrote:
    I think the OP wants to start up an application like MS Word and then operate it from a Java program.Doesn't The Monkey's Paw do that? What a second, according to Wikipedia:
    [http://en.wikipedia.org/wiki/The_Monkey%27s_Paw]
    <quote>
    ...the paw of a dead monkey is a talisman that grants its possessor three wishes, but the wishes come with an enormous price.
    The moral of the story is contained in this description of the paw: "It had a spell put on it by an old fakir," said the sergeant-major, "a very holy man. He wanted to show that fate ruled people's lives, and that those who interfered with it did so to their sorrow."
    </quote>
    So I guess that a non-sequitor ... or is it?

  • Fix position of 3D graph in front panel

    Hi I haev used 3D graphs in my VI but whenever I open my vi I see that the position of 3D graph has changed in my Front Panel  and it takes a lot of time to rearange everything again. It also change the position of the other things like pics or  Tab boxes. Is it something related to the resolution of the screen? and how can I fix it to not change because I want to use my laptop for a presentation and I would like to avoid this mess during demostrating my vi
    Many thanks

    Hi,
    I don't know if it would help, but you can lock the psoition of front panel objects. Select the object and then select Reorder >> Lock from the toolbar:
    -CC
    "If anyone needs me, I'll be in the Angry Dome!"

  • Topic link working but cursor not positioned

    Hi all,
    I've created a HTML Help file using RH 2002. I've given link
    to view previous topic and next topic with the help of buttons. In
    the final output, the link is working fine (i'm able to view the
    appropriate topic) in the right pane, but the cursor does not get
    positioned at the exact topic place in the TOC Column (i.e., left
    pane).......but when i generate Webhelp, the cursor is positioned
    appropriately at the topic .....how is this........is there any
    option to change so that it might work for HTML Help too.....pls
    help me!!!

    Hi usureka
    In addition to my fellow Community Expert Peter's excellent
    comments, there is another setting that could come into play here
    that wasn't mentioned.
    Expand your Single Source Layouts folder.
    Double click the Microsoft HTML Help layout.
    Click the Advanced... button.
    Click the TOC Styles tab.
    Ensure a check mark appears in the check box labeled "Always
    Show Selection".
    Cheers... Rick

  • Extract the x,y values of two cursors in the same xy graph

    I would like to extract the x,y values of 2 cursors in the same xy graph. The problem is i arrive to extract the value only for one curso. How can I do to extract the value of the other cursor ?
    Regards,
    Sylvain
    Solved!
    Go to Solution.

    Property nodes operate top to bottom, so all you need to do is change the "active cursor" property first. Here are two possibilities.
    Message Edited by altenbach on 08-07-2009 09:04 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ActiveCursors.png ‏8 KB

  • Can I insert a new text at the cursor's position In Formatted-Text-Edit?

    Hi Everyone,
        I am doing a task to enhance Formatted-Text-Edit,
        The task's goal is: simultaneously edit/display text and image.
        I decide to use Formatted-Text-Edit and Formatted-Text-View to realize the task.
        In Formatted-Text-Edit, user can edit the text and input URL for image,
        In Formatted-Text-View, the text and image can be displayed simultaneously.
        I add a button "Insert Image" besides the Formatted-Text-Edit,
       This is the key point:
       When user click the button, I want to insert a new text(URL of the image) at the cursor's position in Formatted-Text-Edit,
       But how can I get the cursor's position, and insert a new text at the cursor's position in FTE.
       Can anyone give me some suggestion or solution?
       Many thanks in advance.
    Best Regards,
    Derek

    I don't believe that you can get the cursor position yet with the FormattedTextEdit UI element. The best you could do currently is to place the insert at the end of the current text.
    Note duplicate thread/question to;
    Set cursor on the table column inherited with text edit UI element
    Please don't double post your questions in the forum.

  • [IDCS5.5 plugin] How do I get the sentence at the cursor's position?

    Hi All,
    How can I get the current cursor position (event on mouse left-click)?
    And then , how can I fetch the sentence based on the cursor's position? (Assuming a sentence starts with a capital character and ends with a ".")
    I'm getting no hint on this, any help will be appretitated.
    Thanks

    tma654 wrote:
    Sorry, not so good great at LR.  Do you have pics or something visual to show how this is done?...Do i have to switch each photo's process version or is there a way to do a whole batch of them?
    The quickest way to update just one photo is to click the lightning bolt icon under the histogram in the Develop module. This can be more convenient than scrolling all the way down to the Calibration tab.
    A quick way to update a whole batch of them is to select any number of them in Grid view, and then choose Photo > Develop Settings > Convert to Current Process. The AutoSync way works too, as long as you remember to turn it off immediately after you're done.
    Like JimHess suggests, I don't automatically convert them all at once, but on a case by case basis because they don't always look better after conversion. The benefits of the new process version can potentially make them look better, but you usually have to do a few more adjustments to get them there. If you don't have time to do that yet but you need to use the existing images soon, leave them in the old process version for now.

  • How can I get the cursor value from a waveform graph

     Is there a way to get the value of cursor position on the waveform graph so mathematical calculations be performed on those values. We can see the value in cursor legend, but can we extract those values for future calculations in the block diagram somehow.

    Right-click on the waveform graph icon.  Select Create>Property Node>Cursor>Cursor Position.  That spits out a a xy cluster for the current cursor position.
    If you have more than one cursor, you can either set up a loop and set the Active Cursor property node (right click the property node and select "Change to Write") or you can pull everything you ever wanted to know about every cursor with the Cursor List property node. 

  • Executing "bring to center" on a free cursor in a log XY graph brings the cursor to the top rim of the graph (instead of the center)

    Dear support,
    dear LV users,
    selecting "bring to center" for a free cursor in a XY graph does not
    bring the cursor into the center of the graph, but instead the command brings it to the
    mean/average value. This is not an issue for a linear mapping
    of the axis [due to the fact that the center of the axis is equal to
    the middle/average value of the end points on the axis]. But when
    mapping of the axis is logarithmic, the cursor ends up on the top of
    the screen. That is because the average value of the end points
    (min(y_axis)+max(y_axis))/2) is not equal to the center of the axis.
    Is that a wished behavior, please?
    Example: For an y_axis = [1..100], the awaited center position would be at
    10 and not at 50.5. The center position for the logarithmic mapping
    should be calculated as (log(min(y_axis))+log(max(y_axis)))/2, IMHO.
    Kind regards,
    Solved!
    Go to Solution.

    You are right, LabVIEW chooses this form (min(y_axis)+max(y_axis))/2).
    You can go to "idea exchange".
    Link:
    http://forums.ni.com/t5/ideas/v2/ideaexchangepage/blog-id/labviewideas
    here you can see how many people like your idea.
    Perhaps it will be considered in the next version of LabVIEW.

Maybe you are looking for

  • What is the best way to sort and separate tv show episodes

    Hi Everyone, I have some tv shows converted for my apple tv but they go over a period of several  seasons, how can I merge and separate them by season year  and  have them in itunes as each season  with  only those shows for that season ..  any tips

  • How do I set cursor.index to anywhere in the graph array?

    I am using LV 8.5.1 and feeding an XY graph with an X-Y array of data. Only a section of the array is displayed on the graph. I have a cursor (single-plot). I would like to set Cursor.Index property node of the cursor associated with the plot to the

  • Classloader issue in 5.1

    What is the proper way to cross link EJB entity beans in 5.1? Ive tried every possible combination of (ejb-ref) in the ejb-jar.xml and (ejb-resource-ref) in weblogic-ejb-jar.xml and when i deploy the beans. Linked references fail and i get : **** not

  • Forms in Oracle applications

    HI I need solution for this issue Forms Runway processes occur on the system which three thresholds need to configure in order to get system to post an alert. Hping Ur reply on this bye John

  • Adobe Premiere Elements 13 ( Windows 7)

    I purchased the above on line order no AD006474250AU on the 26th April I have meticulously followed instructions provided by [email protected] but without success. I can confirm the download is complete but it requires me to sign in. When attempting