Cursor snap to point in XY graph

I have trouble in LabWindows/CVI 5.0 to have my cursor snap to a point in an
XY- graph, even when I set following attributes:
ATTR_PLOT_SNAPPABLE : TRUE
ATTR_CURSOR_MODE : VAL_SNAP_TO_POINT
Besides, also the attribute
ATTR_ENABLE_ZOOMING seems not to do its job.
Has anyone tried this before?
Kind regards,
Geert Van Doorselaer

Hy Geert,
> I have trouble in LabWindows/CVI 5.0 to have my cursor snap to a point in
an
me too.. (see my posting from 02/06/01)
> also the attribute ATTR_ENABLE_ZOOMING seems not to do its job.
Had this problem, too. But in my case it was an user's error:
You have to change the graph input mode to anything else but indicator,
enable zooming and use zooming by Ctrl + left mouse button.
I guess, the data mode has to be retain and if you change the contents of
the original buffer with the data to be plotted, the data has to be copied.
(ATTR_COPY_ORIGINAL_DATA = True)
I got it running, finally... ( I use CVI5.5)
Regards
Harald
=======================================
Flying:
The knack lies in learning how to throw
yourself at the ground and miss
(The Hitch H
iker's Guide)
mailto:[email protected]

Similar Messages

  • Mouse cursor snaps to point on screen

    I posted this two days ago in the Mac Pro forum, but after searching for a solution since then, I've come to two conclusions: 1) the problem is not a hardware one and 2) using OS X without a mouse is horrendous. Forgive me for copying and editing my own original postings. First, here is a digest:
    - the cursor snaps back to its starting point on the screen after ca. 1/2 sec of movement, I can hardly move the cursor to halfway the screen before it snaps back
    - not a hardware problem, appears with Kensington Expert Trackball, Magic Trackpad, Apple Magic Mouse and keyboard used as mouse
    - not connected with a single user account, appears in the login screen, main user account and system operator account
    - the snap-to position differs in the login screen and user accounts
    - turning of the computer, unplugging does not work
    - resetting PRAM does not work
    - unplugging + replugging trackball USB-cable does not work
    - the problem appeared suddenly in mid of normal use.I had not changed in settings before the problem
    Any ideas? Is it possible to contact someone at Apple directly?
    Below my original messages:
    I started having a strange problem with the mouse cursor. I started the computer, the mouse worked fine as always. Suddenly the cursor started fixating on a point on the lower right portion of the screen. I would move the cursor, it would move maybe halfway across the screen for a split second and then snap right back to the starting position.
    I tried shutting down the computer and restarting. Didn't help. The cursor behaves the same way in the login screen too. The only difference is that now the "homing position" is somewhere in the upper right part of the screen.
    I have a Kensington Expert trackball and a Magic Trackpad. I've removed the trackpad, in case it had started interfering with the trackball (never done that before though). Didn't help. I've unplugged and replugged the trackball USB-cable, no help.
    I had the Mac Pro unplugged for over a day as I was travelling and the Kensington Expert Mouse too. Behaved exactly the same when I switched on the computer again. I tried resetting the PRAM. Didn't help.
    I don't know where the problem lies. The mouse cursor keeps snapping to a position in both the login screen and my user screen. The snap-back position is different in the different screens. The cursor returns to its position when both the Magic Trackpad and the Expert Mouse are connected or when only one of them is. I can move the cursor half a screen, then it snaps back. Clicking functions, but I never have any time to click anything when the cursor bounces back to its spot.
    My final remedy would be reinstalling Snow Leopard, but before I try that I would like tro try something less radical. I would also delete the mouse .plist file, but I don't know where it is. I guess that probably would not help, as the cursor behaves crazy even in the login screen, so the user setting should not be the problem.
    I've come to the conclusion, that the problem is not a hardware one. The mouse cursor snaps to point on the screen when I use: 1) a Kensington Expert Mouse, 2) a Magic Trackpad, 3) the Magic Mouse that arrived with my computer and when I turned on 4) use keyboard as mouse. The problem also is not tied to a certain user because it appears 1) in the login screen, 2) my user account and 3) the sysop account. I can't figure out where to look for the problem or fix it.

    I give up.
    I've tried everything I can think of, to fix the behavior of the mouse cursor. I've zapped the pram, I've fixed file permissions, I've removed all startup items, I've tried starting the computer in Safe Mode. No can do.
    The mouse cursor snaps back to a position on the screen when I try to move it. This happens within a second, so I might be able to move the cursor half-way across the screen, but that's it. It doesn't matter how fast I move the mouse. The cursor is dysfunctional in the normal user account, the administrator account and in the login screen. It works perfectly fine in Safe Mode.
    The mouse cursor misbehaves when using a USB track-ball, the Magic Trackpad or the keyboard with accessibility settings.
    After advise received at this site, I tried booting up in Safe Mode and after that the cursor worked for a month or so, but the problem returned. I see no rhyme or reason why the problem appeared for the first place, or why it reappeared. I had originally had two pointing devices the track-ball and the Trackpad connected to my Mac Pro at the same time. After the problem first appeared, I removed the Trackpad. I returned it to use a day before the problem reappeared, but I don't know if that is the cause of the problem. The computer had worked perfectly fine for some months with two pointing devices before the problem appeared.
    I've noticed that some other people have had the same problem. One had a feline related fix, which doesn't help me since I don't have a cat. Another fixed the problem by switching off the Internet, but that didn't help me.
    What I now would like is to make an official bug-report, so that the problem could be fixed someday. I hope Apple is listening. I also plan to reinstall Snow Leopard (I have 10.6.7) next weekend. I had hoped to install a new OS only when Lion got out, but I don't seem to have much choice not. I can either simply reinstall or make a clean reinstall by erasing the disk in the process. I'd like to avoid reinstalling my programs, but I feel it is safer to wipe everything and start from scratch. Even then, I have no assurance this doesn't happen again.

  • Using Cursors - snap to point

    Hello everyone,
    I would like some explanation on cursor functionality. I have a cursor on an x-y graph and I would like to use the drag function or enter the co-ordinates and have the cursor snap to this point.
    My x-scale is set in 0.1 increments. I would like to only enter the x co-ordinate and have the cursor snap to the appropriate x-y co-ordinate on the selected plot. If I set it programatically using the 'cursor.posx' property node, the cursor moves to an x co-ordinate 0.1 below the one I set.
    any ideas would be appreciated.
    thanks.

    Apparently, I don't have this kind of problem. Try to compare the attached vi with your own to find out the origin of the different behaviours.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    MoveCursor.zip ‏13 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?

  • Snap to point cursor: How do I determine which axes?

    I have a graph displaying multiple plots.
    Some of the plots use the lower-x and left-y axes.
    Others use the upper-x and right-y axes.
    I use a cursor in snap-to-point mode to select a data point on the plot and display an annotation that indicates the x and y value of the selected point.
    How do I determine which pair of xy axes are associated with the plot the cursor has snapped to?
    If I knew this I could use SetCursorAttribute(....) to set ATTR_CURSOR_XAXIS and ATTR_CURSOR_XAXIS to the appropriate value.
    Thanks,
    Kirk
    Using Labwindows/CVI 2009
    Solved!
    Go to Solution.

    You can obtain this by using:
    GetGraphCursorIndex (panelHandle, controlID, cursorID, &plothandle, &index);
    GetPlotAttribute (panelHandle, controlID, plotHandle, ATTR_PLOT_XAXIS, &axis);
    You can compare 'axis' variable value with VAL_BOTTOM_XAXIS and VAL_TOP_XAXIS constants to determine X-axis of the plot.
    The corresponding ATTR_PLOT_YAXIS attribute and VAL_RIGHT_YAXIS, VAL_LEFT_YAXIS constants help you determining the Y axis to which the plot is associated.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • 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

  • Is it possible to pick a point in a graph and drag/move it to another position using the mouse?

    I have an array which contains sample points.
    I would like to be able to pick exactly one of those points in the graph (using the mouse) and move it to another position.
    Thanks
    Thomas

    Hi,
    It's better to make just one cursor (in case you have an array of let say
    200 points), and make it snap to the nearest point. With the event structure
    you can read out if the user has clicked in the graph, read out the cursor,
    and when the mouse button is released, change the point to the new location.
    Regards,
    Wiebe.
    "MrWaves" wrote in message
    news:[email protected]..
    > Thanks!
    >
    > I didnt realize that it is possible to have more than one cursor!
    > This means I need to generate as many cursors as points in my array
    > and just make it look like an ordinary point.
    > Then I can use this cursor to move the point to any position within
    > the graph.
    > I hope my guess is correct!
    >
    > Thanks
    again for your help
    > Thomas

  • How to mark points on a graph

    Hi All,
    I want to write a program which plots data on a surface graph then
    allows the user to click on the graph and "mark" points on the plot. The
    program should change the color of the "marked" points on the graph.
    Based on the sample code provided by "Ben" here
    (http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=144155#M144155)...
    I wrote the attached code which uses "event structure" and cursors to do
    the job. I used cursor to read the X,Y,Z position of the clicked point on
    the plot and store them in arrays. These arrays then were feed into a
    new plot added to the graph using CWPlots3D.Add() method. However, my
    code does not draw the second plot (which would show marked points in
    green) nor it does not get the marked points coordination correctly. I
    appreciate your help to correct the code.
    Thank you,
    Attachments:
    change read xyz.vi ‏27 KB

    Hi Trin,
    I have altered your VI a little bit to get the marked points in an array. You will realize that the mouse up event is requested in a parallel loop, that's because this event doesn't get triggered ifyou drag a cursor.
    All you have to do now is to make a graph from the array and create new cursors. But leave Cursor 1 always as the last one and save the past values to new cursors. But maybe you don't need to set a cursor on each marked point.
    Kind regards,
    Kleisi
    Attachments:
    3D_Example.vi ‏39 KB

  • Snap to Point problems

    Illustrator CS6:
    I feel a bit of a fraud even asking this, as it seems so basic – but I am having trouble "snapping" one object to another.
    I can get objects to snap to ruler guides fine, but not other objects.
    Can anyone help?

    There are three snapping options in the View menu: Smart Guides, Snap to Grid, and Snap to Point.
    When the Smart Guides are on with the default options in the preferences, you can snap align the bounding box of the object being dragged to the bounding boxes of other objects by dragging the object from any point on its fill or path.  Smart Guides will show the alignment lines and also intersection lines when two sides of the bounding boxes of the dragged and target objects coincide and also when the center points coincide.
    If you hold the Ctrl key down while dragging, the Smart Guides will also snap the point under the cursor which doesn't have to be an anchor point but any point on the object's fill or path to a path or anchor point of another object and will display a label indicating if it is the anchor point or path being snapped to. If you are not dragging a whole object but  segment/s you don't have to hold the Ctrl key - it will snap to paths and points.
    Wen Snap to Grid is on, the Smart Guides if on are automatically turned off. When dragging whole objects, Snap to Grid snaps first straight lines if any to the nearest line on the gird and if there are no straight lines it snaps the nearest point of the object to the nearest point on the grid. There is no visual feedback with labels or cursor changes for eventual snapping because it always snaps to the nearest intersection of the grid.
    Snap to Point can be on when one of the previous two options is on. It will snap the point under the cursor which like the Smart Guides could be also any point on the object's fill, to the anchor points of other objects and it will indicate this by changing the cursor to white.
    Snap to Point compliments the Smart Guides by making the cursor white when snapping to a point and you don't have to hold Ctrl when dragging whole objects to snap to a point.
    With Snap to Grid on, Snap to Point has a priority and the point under the cursor will snap to a point of another object instead to the grid.
    Also have in mind that another level of snapping is added by using Snap to Pixel Grid feature available when creating a new document and from the Transform panel. It deals with anti-aliasing, it is object based, and will have a priority over all of the other snapping options

  • One more question about "snap to" points in audio objects

    sorry, one more question people.............. is there a way to set a "snap to" point in an audio region? Can I have logic set a point, or an "anchor" within an audio region that would coincide with the cursor. Once I get the cursor to a bar or a beat, is there a command that would allow a "snap to" point to be created in an audio object? That way I could clean up any "noise" or "chatter" at the beginning of an audio bounce or any audio object, and still have no problem pasting it all over my arrangement. I'm sure it's in here somewhere, but can't find it in the manual..
    thanks again!!!

    The anchor point in an audio region can be moved to wherever you want it to be. Let's say you recorded a loud piano bass note and afterwards you trimmed the file so that the attack of this sound happens right at the beginning of the audio region. Your anchor point will now coincide with the begnning of that region. This means that you can place that audio at, say, bar 37 and it's guaranteed that the attack of that sound will play exactly at bar 37. In this case anchor point = position of audio region in the Arrange Window.
    Even though you haven't played a MIDI note into the song in order to place this audio region, an "event" is generated for this sound which can be viewed in a special version of the Event Editor which shows the position of all audio regions in the arrangement. Access this by simply clicking on a blank area of the Arrange window and then opening the Event Editor.
    So let's say this sound is positioned at bar 37. Open the Event Editor (as described above) and you'll see an event at 37 1 1 1 and the name of that audio region to its right. In this case, the event's position = the start of the sound file = the position of the anchor within that sound file. If you changed the position of that event to 38, or 109, or 3, that audio region will be "triggered" at any of those positions. That sound will always "attack" on a downbeat.
    Now let's say you reversed that pinao note in order to create a dramatic swell into a section of your song. (Open the sample editor and use the Reverse function). At this point, the anchor point is still positioned at the beginning of the file! Play back the sequence (from our bar 37) and the audio will play back from bar 37, only backwards this time; the peak of that piano note will be at some point later than 37.
    So let's say you wanted to position this sound so that it hits exactly on the downbeat of bar 37. How do you do it? Well, you could always slide the audio file in the Arrange Window and try to line up the attack of the audio waveform with the downbeat of bar 37, but there's an easier way...
    Open the sample editor and move the anchor point to the end of the file, coinciding with the peak of the waveform (the piano's attack is now at the end because we reversed the audio). Next, close the sample editor window, click on a blank area in the Arrange Window and open the Event Editor. You'll see that this audio region is still positioned at bar 37, but the actual beginning of the sound file now starts before bar 37. Now when you play back, Logic will start playing that sound file before bar 37, but the audio's peak will be lined up at bar 37.

  • Points on a graph

    Hi,
    I am unsure how to do this. I would like for the points on the graph to have values next to them rather than having to move the cursor over these points to get the value at that point.
    Any help is much appreciated.
    thanks
    amit

    Amit,
    Go into the Chart Designer - select the Series and check the check box for Show Labels.
    Regards
    Gill

  • Represent NULL point in Line Graph.

    Hi;
          I am using Simple series to supply data to Graph type Line. I have a requirement to represent null data point in Line graph, where marker point for the NULL data point shouldn't be present, instead a straight line should come in between the valid points. Currently if the Data value is null, marker point is coming to 0.
    How can i solve this problem using Simple Series?
    I am using NW7.0; SP 9
    vinod.

    Please refer:
    http://www.sapdesignguild.org/resources/diagram_guidelines/index.html
    Reference Point:
         Chart Type Line Graph
             Do not Use it if the X axis has non-numeric values..
    vinod.

  • How can I plot two sets of data points in 3d graph?

    I am trying to plot two sets of data points in 3d graph. I also need to make a set of data with one color and the other set with a different color. For example, I need to plot 10 (x,y,z) data points in 3d. Maybe 6 points need to be blue, and the other 4 red. Could you tell me how?

    What is your LabVIEW version? (things are a bit different in 8.6).
    Basically, you create multiple instances of the VI that gets placed automatically when you drop the 3D graph and then wire a different number to the plot ID at the bottom.
    You define all the plots (color, style) via the properties dialog.
    Have a look at my example posted here. One plot is "blue dots" and one is a "shaded surface". See how far you get.
    Message Edited by altenbach on 04-23-2009 01:11 PM
    LabVIEW Champion . Do more with less code and in less time .

  • Problem w/ snapping. AI CS6 is snapping to points (intersects and such) even though Snapping is Off.

    I have turne off Snap to Grid, and Snap to Point.. and I have made sure "Align New Objects To Pixel Grid" under the Transform menu is turned off, yet still my objects are snapping to point intersects... am I missing something? Thanks!

    You are welcome, Christ-Guard.
    Some find them less smart, but they can be your friends.

  • Illustrator is snapping to point without the option selected.

    Illustrator is snapping to point without the option selected. Anyone else noticing this and what is the solution. Yes I have restarted illustrator.

    slange,
    Then it may be time for the list.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save curent artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

Maybe you are looking for

  • Retina display for office mac 2011

    I recently purchased a Mac Book Pro with Retina Display.  When I hook up an external montitor Microsoft Office Excel is blurry as is Word. Mac Book Pro screen,  same thing.  Does Office Mac 2011 upgrade really fix the problem?

  • Can 3g Ipod be synced with Itunes 10?

    I just updated Itunes to Itunes 10. Now my 3rd Generation Ipod doesn't want to sync. Is it not supported by Itunes 10? If not, can I go back to an earlier Itunes version? If I can, how do I do it? thanks much, duff67

  • Ipod info screen problem

    Hi, when i plug my itouch in , it syncs perfectly, but instead of seeing the info page with all the info about my ipod and how much memory it has, i get this. http://i54.tinypic.com/2pzl2fq.jpg The blue links lead to nowhere, and ive tried redownload

  • Conflict between CS5 & Windows Office Home & Business?

    Hi, I've been in a world of hurt for a day now. Upgraded to Office Home and Business and ever since, Premiere takes forever to load, and once it does, I can't get any audio playback through my speakers. Plus, I can't open Sound Booth. I have a Window

  • Deleting playlists from a manually managed ipod

    To save diskspace on my pc I manually manage my ipod so I can save the music on it and delete it from my pc and add new songs as I go along. Was this a bad idea? I thought I would be able to upload music from my ipod to my pc at a later date, is that