Position Cursor on GRAPH either by dragging it OR entering the dsired position in the Cursor legend

I've written a VI that allows the user to import a dataset, view it on a graph, and then use cursors to "filter" the range of data that I'm interested in, by sending the cursor.index values from the first graph to an array subset function which feeds a second graph.  The problem is that I'd like to provide the user the ability to position the cursors on the first graph both visually - by dragging - (for "course" control) AND by entering the desired values directly into the cursor legend (for fine control).  The problem is that I cannot find a way to do this, since I have to have the Lock Ring set to “Lock to Plot” in order to capture the index information. According to the documentation, the only way to be able to position the cursors via the Cursor legend is to set the Lock Ring to “Free”, which means the index values are rendered useless, since the cursor is no longer locked to the plot.  If I leave the Lock Ring in "Lock to Plot", and enter a value in the cursor legend, it does move the cursor, but not to where it should.  If I enter a value an x value of 9.0 for cursor 1, the cursor goes to 10.2638.  The next time I enter 9.0, it goes to 9.82794.  I don't understand what the issue is.  Is there a way around this?
Attachments:
ppv data filter 3.vi ‏366 KB

Yes Rudi:  What I want is for the operator to place the cursors by dragging them (just eye-balling it).  The, if they see that the Y cursor (horizontal) is at 10.234, and they want to make it 10, they could simply enter that value in the cursor legend, and the cursor would be placed exactly at 10.  The only way to do this seems to be to select the “Free” option for the cursor.  However, in order to use the first graph to set the boundaries of the second graph, I have to use the Cursor Index from the first as an input to the Array Subset that feeds the second graph.  In order to use the Cursor Index, the first graph has to have its cursor Lock Rings set to “Lock to Plot”.  Am I making this any more understandable, or just rambling?

Similar Messages

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

  • 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

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

  • Graph wont allow dragging of cursor

    Im working on a vi that has been created by somebody else. The graph they have used doesn't allow you to drag cursors on it, it just gives you a zoom icon when you move your mouse over it. Whereas if i create a new graph, this does allow it. I have attached an example with two graphs, one been the problematic one and the other been a correct working new one.
    Can anybody tell me how to allow the dragging off cursors? It is not the "allow drag" option. I dont really want to replace the graph with a new one as it is referenced alot within alot of sub vi's.
    Any help will be much appriciated.
    Attachments:
    ExampleGraph1.vi ‏40 KB

    When the graph was copied and pasted onto a new graph it must have been in "zoom" mode. To change the mode right-click on the graph and make the Graph Palette visible (in the "Visibility" submenu). If you do this on both graphs you will see that the top one is in "cursor" mode, while the bottom is in "zoom" mode.

  • 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

  • The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my doc

    The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my dock has resided at the right margin so all my slider manipulation over countless editing sessions in Aperture has been ingrained to work at the left margin -- but, the vast majority of the time, the HUD overlaps the image I am editing in this 'unlocked' mode. 
    Every occasionally I enter Full Screen View and it positions on the left margin *without* superimposition...(!) My great joy is modulated into aggravation, however, should my tracking cursor drift all the way 'out of bounds' -- to call in the hidden pane of adjacent images sequenced in the library... This dramatically shrinks the Full Screen display and re-locks the HUD; if I toggle the switch to re-xpand the image it re-positions at the right margin!!!!  I SOOoooooo wish I knew how to control the default 'locked' margin of the HUD in Full Screen View...

    Drag it over to the Left. Then lock it there.

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

  • Change mouse cursor over graph cursor.

    Is there a way to change the mouse cursor as it moves over graph cursors when using trackmode TrackDragCursor? To indicate that you can position the cursor.

    You could accomplish this with the graph's CursorMouseMove event. For example, create a new project with the NI Measurement Studio AppWizard and follow these steps:
    Add a graph to the dialog. Right-click on the graph in the dialog editor, click "Class Wizard ...", click the Member Variables tab and add a member variable for the graph called m_graph. Click OK.
    Right-click on the graph in the dialog editor and click on "Events ...". Add an event handler for CursorMouseMove called OnCursorMouseMove and add an event handler for PlotAreaMouseMove called OnPlotAreaMouseMove. Click OK.
    Go to the header file for your dialog class and add this to the bottom of the class declaration:
    private:
    bool m_cursorChanged;
    HCURSOR m_defaultCursor;
    HCURSOR m_crossCursor;
    Go to the source file for your dialog class and add this to the end of the
    OnInitDialog method:
    m_graph.TrackMode = CNiGraph::TrackAllEvents;
    m_graph.Cursors.Add();
    m_cursorChanged = false;
    m_defaultCursor = ::LoadCursor(NULL, IDC_ARROW);
    m_crossCursor = ::LoadCursor(NULL, IDC_CROSS);
    Add this to your CursorMouseMove event hander:
    if (!m_cursorChanged)
    :etCursor(m_crossCursor);
    m_cursorChanged = false;
    Add this to your PlotAreaMouseMove event handler:
    if (m_cursorChanged)
    :etCursor(m_defaultCursor);
    m_cursorChanged = true;
    Run the application. You should see that the mouse cursor changes to a cross when you mouse over the cursor.
    Hope this helps.
    - Elton

  • Mac Pro + Airport Extreme = Mouse Cursor Chaos Display Issues When Dragging

    Graphic display issues (mouse lag and latency displayed on the screen when dragging an object (photo, window, application, document, etc.) from the top 50% of the screen to the bottom 50% of the screen. Mouse cursor starts to display serious lag and latency and loses ability to stay on the object being dragged anywhere below the 50% horizon line of any display.
    Mac Pro (any model 2007 to current 2009 production) with Airport Extreme installed.
    Symptoms:
    On any object the mouse cursor selects and then drags from anywhere in the upper portion (50%) of the screen display (no matter the display being used) to the bottom portion (50%) of the screen display, shows great lagging and latency as if the cursor is "hanging on for dear life" or as if the processor were running several intense applications and cursor was not responding.
    The mouse cursor fails to stay in concert with the object being dragged anywhere in the lower portion of the screen although is fine in the upper portion of the screen.
    Issue only presents itself when selecting and dragging an object from bottom to top or top to bottom of the display.
    I have deduced that the issue with this "polarity" (i.e. the 50% horizon level of the screen north and south) is due to some magnetic or waveform interference from the Airport Extreme card and most likely due to its position on the motherboard and/or next the the Intel processor. Also could be enhanced by the Bluetooth card which is also located next to this card.
    After checking various Mac Pros (at Apple stores, friends and received via Apple Online store) the common denominator is the Airport Extreme Card. When it is NOT present, no issues are present with display cursor lag; when it IS present, all the above apply.
    No one at Apple seems to realize this issue or cares about it. Ditto for Genius Bar Apple Employees; seems to be a mystery on par with the Bermuda Triangle (which ironically is also magnetically-polarity related.)
    Still waiting for a Apple Product Engineer to contact me and have 3 tickets open with Apple from 3 different Mac Pros on this. Problem first noticed May 2009 although first generation Mac Pro from 2007 also suffered same issues and just now putting the puzzle together on this relationship.
    Any others out there notice this as well? Check it out if you have a Mac Pro and Airport Extreme Card installed inside of it.

    I also have the same exact problem. I have a i5 iMac Mid 2011 with an upgrade to 10.10 Yosemite connected to an external display. I like you never had this issue with Mavericks. Zoom is so painfully slow now that I had to disable it. My iMac has 12 GB of RAM and even with no apps opened, zoom is killer slow.. makes me want to punch a wall-kinda slow.
    I think it's clear to say that something is up with 10.10.. some bug.
    Apple please fix us zoomers

  • Drag & Drop image of currently playing song causes the Spotify window to "jump" to another position

    When I try to drag and drop the image of the currently playing song (the one that appears under the playlist list, on the left side of the screen), the entire Spotify window jumps (i.e. moves/repositions) inside the screen to a totally different position, making it impossible to drag the song to the intended playlist. It seems that the the window is moved to the current mouse cursor position (i.e. the left top position of the window becomes the mouse cursor position, with an offset). When I reposition the window again manually, and try to do the same thing, it doesn't happen. I have been able to reproduce this issue a 100% of the times: I just refocus a few other windows I have open and then try to add the currently playing song to a playlist in the afore mentioned way.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Fatal Internal Error: "image.cpp", line 13192 when trying to insert a cursor to graph

    NOTE:  This IS a duplicate post from the Breakpoint.  Text slightly changed.  The post in Breakpoint can be deleted.  All comments should be placed in this thread.
    I resolved the "Fatal Internal Error: "image.cpp", line 13192 when trying to insert a cursor to graph", but would like to share to find out if others have seen this and to determine whether this is a bug, or if it's time to redo my PC, or buy a new one..  
    I have an existing graphs (qt 6) which originally had 2 cursors.  This occurred while trying to add the third cursor. 
    Up until attempting to add the last cursor, the program worked great, and I had been running tests for a while.  However, I do recall seeing this problem when creating the original cursors, but not to this extent.  Plus I don't remember the original error message from that time.
    I needed to add one more cursor to the existing graphs.  As soon as I add a new cursor and set it's properties, I get a nasty error message and without warning LV8.2 simply closes itself (well, the only warning was the error message.  Tried it 3 times, same result.
    Here are the steps:
    Shut down the PC, went for a coffee, rebooted the PC.  Opened the LV project, opened the VI.  Immediately went to the graph properties to add the new cursor by doing the following steps: 
    Right click graph indicator icon on block diagram.
    Select Properties.
    Click on cursor tab.
    Click on Add
    Select Cursor 2 (3rd one, newly created)
    Change color
    Select cursor as a line
    Remove checkmark for "show cursor"
    Click OK
    I need to do this to 3 other graphs, same steps.  And as soon as I get to the step before clicking OK, I get the error message. 
    I managed to get an additional one done, by immediately saving after each step (yep going in & out of the properties).  But I've had this problem before when creating the first two cursors.
    Is it a bug?  Anyone else seen this?  Using LV8.2.  And the message is right about LOOSING ALL unsaved work!!!! 
    Here are more observations:
    Tried creating a new one on the second graph.  As soon as I clicked on the color, it crashed!
    See the error explanation below.  It is really clear, now anyone can solve it    LOL!!...  According to the error log, there's a bad image out there  
    .\manager\image.cpp(13192) : DAbort: bad image in ValidateImage
    $Id: //labview/branches/Europa/dev/source/manager/image.cpp#47 $
    0x007A81E8 - LabVIEW <unknown> + 0
    0x007A7BDB - LabVIEW <unknown> + 0
    0x00829D74 - LabVIEW <unknown> + 0
    0x008546CD - LabVIEW <unknown> + 0
    0x00C054E6 - LabVIEW <unknown> + 0
    0x0081B9C8 - LabVIEW <unknown> + 0
    0x0081EB9A - LabVIEW <unknown> + 0
    0x0084D9D4 - LabVIEW <unknown> + 0
    0x00854663 - LabVIEW <unknown> + 0
    0x00C054E6 - LabVIEW <unknown> + 0
    0x0085F7A1 - LabVIEW <unknown> + 0
    0x00BBACDD - LabVIEW <unknown> + 0
    0x00C06A2F - LabVIEW <unknown> + 0
    0x0085AA46 - LabVIEW <unknown> + 0
    0x00C06A2F - LabVIEW <unknown> + 0
    I observed the title bar after making changes to the properties.  I noticed that 3 out of 4 times, while changing the properties of the graphs to include the cursor, and saving after each & every step, that there were no stars appearing on the title bar to indicate "unsaved changes".  Saving was also much slower than usual.  I suspect, the program never got to placing the star before saving occurred.  However, I am noting everything.
    After creating the cursors, saving was and is normal, and the program runs well..   I have run tests without problems.
    Does anyone have a clue at what causes this?   Has anyone seen this before?
    Thanks,
    RayR

    Hi Donovan,
    I can't remember seeing this elsewhere.  When I get a chance, I'll create a new (blank) vi with new graphs and will repeat the steps. 
    I will let you know if I see this in the new vi.
    Thanks!
    RayR

  • When dragging mail to a new folder in Mail, the item sticks to my cursor and won't let go.

    I like to keep certain emails organized in folders. When dragging my mail today, the envelope icon on the cursor stuck to it, would not release to the selected folder and would not move the item. In the menu pull down, I could access an option under Message saying Move to (folder) again. Force Quitting helps, but after relaunching, the behavior recurs if I try to drag and drop. The envelope icon remains stuck to the cursor, even if I go to another application. It doesn't resolve until I Force Quit again.

    Update: same thing was happening with Safari 6.1.1 when I tried to drag a URL from toolbar so could save a Webloc. Then I restarted my Mac and both problems went away. Sure hope it's permanent!

  • Why can I not drag a photo into a different position, In a "smart album"?

    Why can I not drag a photo into a different position, In a "smart album"?

    These are the only sort options for Smart Albums:
    OT

Maybe you are looking for

  • All contacts appear to be offline, when not.

    Hi, I´m running iChat on a MacBook Pro with latert version of Lion. When set up the account I used my @me account, the set up a second account @gmail. For some reason when I try to contact a friend from my address book, says that they are offline, wh

  • BOOTCAMP INSTALLATION?

    After partitioning and installation of Windows-XP, there are no Bootcamp utilities to go to the internet. I tried to update Bootcamp, but allways is the error that I should first install an older version of the program. Is there a solution for this p

  • Airplay Unknown error message (-15008)

    Hi, I'm using an airplay speaker Philips_Fidelio 049A2C but getting the error message when trying to connect through Itunes on macbook pro. Does anyoneknow the solution for this please?

  • What is the "EventLoggingEnumLogEntry" function in the run-time engine?

    I have some code which isn't utilizing all of the processors on my system, but it should be, so I profiled the execution of the compiled executable code using "Intel VTune Amplifier".  That program told me that my code is spending a lot time in synch

  • System crashes on clicking bc- bsp- sap node in SICF

    Hi all    I was trying to change the logon settings for a BSP application. when i clicked the bc->bsp->sap node in the transaction SICF, the system crashed with a exeception a popup window displays [Sapfewdbg Exception Exception #1 has occured and du