Cursor move event dicrease frequency

Hello!
A long time ago I remember I saw a forum post or a community doc, where it was explained how to decrease a certain Event to be triggered too frequently.
I have a graph with a cursor, and when the user starts to move the cursor, I do some minor calculations and output some values into indicators. I would like to discard some of the "mouse move" events, so when the user pulls the cursor "too fast", I do not overload the CPU with processing. I know I could just use the "cursor release" event, but it is not that nice, the user does not get feedback about the values between the two locations.
So I cannot really remember what was the trick to discard the too frequent triggering, it involved some time stamp comparison I think...
Could someone help me out, how to properly solve this task?
thanks!
Solved!
Go to Solution.

In newer LabVIEW version you can limit the size of the event queue. Try this first. (See this completed idea).
In earlier version I would compare the current cursor position with the position obtained from a property node and execute an empty case structure unless they are equal. The old discussion is here. (Also make sure to disable "lock front panel until event completes").
The cursor idea in in this reply, see the right side of the following image.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • How to avoid built-up for "cursor move" events?

    I have a rather complicated program where several graphs need to be interactively updated according to cursors using "cursor move" events. The problem is that the recalculation is relatively slow and the behavior is less than satisfactory. Since the cursor position needs to be "tweaked" until the result is as desired, I cannot recalculate only at the "Cursor Release" event.
    Lock front panel=enabled makes cursor movements tedious because the cursor movements is very
    jumpy and non-interactive. Not user friendly!
    Lock front panel=disabled queues up way too many move events and once the cursor is released
    the graph continues to jump and recalculate for ages.
    The attached demo (LabVIEW 8.20) shows one solution attempt that actually works pretty well: Skip the recalculation unless the cursor position from the event terminal is equal to the cursor position of the graph property node. This basically races through all unecessary intermediary recalculations on stale positions. However, the code can get complicated very quickly if there are multiple cursors.
    In my opinion, cursor move events should not get queued up! The event buffer should hold only exactly one entry:
    the most recent cursor position for each cursor. Can anyone think of a scenario where the extra cursor position trail is useful? The positions are pretty random anyway, right?
    Does anyone have other (better!) ideas how to work around this problem? I definitely want to keep it simple and not throw lots of code at it.
    The attached demo contains more details. It demonstrates the problem if "selective updates" is checked. If unchecked, it implements the above mentioned workaround.
    LabVIEW Champion . Do more with less code and in less time .
    Solved!
    Go to Solution.
    Attachments:
    CursorDelay.vi ‏29 KB

    Thanks for the example.
    The more I think about this, I strongly prefer my original method. It uses minimal code compare to the other solutions offered here. As a demo, I am attaching an implementation to a slide control.
    Fo those without LabVIEW 8.20.
    All slide events have "lock front panel" disabled.
    TIme delay is 500ms, simulating some complex calculation.
    As you can see, it works extremely well:
    NO shift registers, extra loops, queues, tuning parameters (min times, etc.), etc.etc.
    Just a deceptively simple "equal" followed by a case structure.
    The demo shows a typical recording if I quicky move the slide up and down, then release it. You can see that the raw event structure takes more than 40 seconds to stabilize while my selective solution follows the slider position almost perfectly despite the 500ms stall in each update.
    See for yourself! Can anyone think of a drawback of this method? Even if the slide terminal is not in the same loop, a comparison of a local variable with the newval should do the trick just fine.
    Message Edited by altenbach on 09-28-2006 12:43 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SLIDEDelay.vi ‏26 KB
    SlideUpdate.png ‏21 KB

  • Programmatically fire graph cursor move event

    Is it possible to programmatically fire the Graph Cursor Move Event ?  Assigning a value to the Cursor Index or Cursor Position property node does not seem to do it.
    Solved!
    Go to Solution.

    The graph cursor move event contains processing code for data on the graph along with front panel display of those results.  Data is put onto the graph during data acquisition which occurs in another event.  When that data acquisition event finishes I need to cause the processing code to execute once to update the front panel display so its results are shown for the new acquired data.
    I could put the processing code into a different event that fires on say a button value change.  Then the graph cursor move event would fire that button event change by setting its value change property.  The data acquisition event could also fire that button event.

  • Cursor move events passing data to dialog

    I have a graph where the user moves the cursor and then I pop up an easy to read dialog with the test number and test description in it.  I tried it with a regular dialog with reentrancy but it locks things up.  Is there a better way to do this?   

    Hi Id,
    I have made a quick example of how to have another window display data to a user using queues. Please let me know if this helps.
    -N
    National Instruments
    Applications Engineer
    Attachments:
    Main2.vi ‏17 KB
    Sub2.vi ‏17 KB

  • 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

  • XY graph "mouse move" event stops generating when click on cursor

    Hello All
    When the mouse is moving freelly inside the XY graph control, the "mouse movement" event is fired.
    The same happens when muse clicks anywhere in the graph with the exception of cursors.
    hen mouse clicks on cursors the "mouse move" event is NOT generated even though the mouse is phisically moved.
    Is there any explanation to this.
    I enclose the example.
    regards
    Pawel

    Just today I had the same problem -> my solution:
    set event timeOut to some value(I have it at 1ms) then
    add to globalVariables some BOOL variable that will signal if mouse is down or up (set the flag in appropriate event),
    then add a case in the timeOut event which will read this
    global variable(flag) -> if it's TRUE then change the needed parameter.
    So even if the mouse move event isn't fired the main timeout event is.
    Not a perfect solution, but better than nothing.
    Peace
    Waldemar

  • Populating the screen field when the cursor moves to that field

    hi every one,
    I want to populate the screen field(MODULE POOL) When the cursor moves to that field.
    So can any one help me out with this.
    EXAMPLE..
    I want to populate 'S10_TOT_PRICE' (Total Price). When the fields like 'S10_PIECES' (Number of Pieces) will be entered. I want to populate 'S10_TOT_PRICE'  without pressing any button on the screen nor when enter is hit. When the field 'S10_PIECES''  will be entered with some value and the cursor moves to 'S10_TOT_PRICE' . The Total Price field should be populated. Please help me out with this.
    THANKS & REGARDS.
    Mahanta.
    POINTS WILL BE REWARDED.

    Sorry but look at this SAP documentation <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/54/0608162d0711d295520000e8353423/frameset.htm">User Actions on Screens</a>
    Extract :
    <i>User Actions on Screens
    There are various ways in which users can interact with screens.
    Filling Input Fields
    Users can enter values in any input field on the screen, or change the value using the mouse, in the case of radio buttons and checkboxes. The contents are placed in the corresponding screen field. Filling an input field does not normally trigger the PAI event. Exceptions to this are Checkboxes and Radio Buttons with Function Codes and input fields with Drop Down Boxes.</i>
    So, i fear that you cannot "take hand" when user fill a numerical field to perform calculations and update the screen.
    Regards

  • Squeeky noise as cursor moves over dock

    All of a sudden, anytime my cursor moves over the dock a squeeky, almost static like noise, comes fromt the speakers -- speaker volume does not affect the volume of the noise -- always rather low -- speed of the cursor does affect the frequency of the noise. There doesn't seem to be any noise associated with other movement or activity - just the cursor on the dock.
    Any suggestions?

    The fact that turning off the dock features changes the sound means that it is processor intensive. The question is what has changed to make this so?
    There were reports of power supplies causing the type of distortion you describe and it was audible on systems used for recording music and manipulating it.
    I have never heard the distortion on my system but I've got the revision B power supply.
    Some of the users who had the problem recorded it and made quicktime recordings that were posted. It was faint but audible. The sounds changed with usage of the system.
    I don't know if this is what is happening to your system. I don't think so but if some process has changed due to an update or something it is possible for strange sounds to come out of a computer for no apparent reason.
    So, now what? You could try cleaning caches, repairing permissions, repairing the disk, etc. My guess is that they will have no effect. If it is the power supply problem it is hardware and not software. If it is a changed/corrupted file I would say try an archive and istall or an erase and install.
    Another thought. Have you reset the pmu? If it is the power supply that could fix it.

  • Mouse move event when mouse out of stage.

    Hi
      I'm wondering how is this task done that listen to mouse move event when user cursor is out of stage?

    Hi, kennethkawamoto2
        I've tried in this way: use "stage.mouseX, stage.mouseY" these two values when cursor is out of stage, and it worked quite well till now,
    If you mind discribe the issue that you've metion that " Flash does not report mouse location correctly beyond stage.." more in detail, I think I should avoid this. Thank you very much!

  • Can you move events from one drive to another easily?

    I've just bought an external firewire drive to dedicate to my Sony HD camcorder material.
    I've only imported 30 mins or so of stuff onto the Mac's internal drive with iMovie '08, and would like to know if anyone's managed to easily copy 'events' from one drive to another to merge/split content.
    Is it just a case of copying event folders from the iMovie Events folder to the external drive, but if so do you have to specify a particular path?
    Similarly, can you just move the individual 'Projects' or archive to DVD etc as they will invariably take up lots of space for longer footage? Does the projects file just hold references to the assembled clips, in which case moving events would scupper things as I seem to have several movie files in there already though these may just be things I uploaded to .Mac to test out.
    This may all be a bit of trial and error. Hopefully clips are only references unlike the pretty huge but self-contained iMovie 6 HD project packages. This also raises issues about how to easily backup all your 'events'.
    AC

    Observation:
    Just imported 15mins of video from the Sony.
    When you click import you are asked which drive to save to.
    As well as the Mac's internal drive, all my attached USB drives which are formatted as Mac OS Extended (journaled) appear as targets to save to as well as teh Firewire drive.
    I selected the Firewire drive and don't recall an option to create a sub-folder. After import a new top level folder of iMovie Events was created, but no others.
    Presumably iMovie Projects/Shared folders only exist on the boot drive.
    I'm assuming that this structure will allow you to share movie Events between Macs using external drives.
    Again, an assumption but I suspect iMovie scans all available suitable hard drives and checks what content is available in top level iMovie Events folders for non-boot drives as well as this folder in the user's Movies folder.
    Rambling observations over for now.
    AC

  • How do I Move Events from an Internal to External drive?

    Hello,
    I am trying to move events on my internal drive to my new external drive. Everything is set up and I see the external drive, but after reading other posts and replies it seems I can't just move the files from the internal to external drive by dragging and dropping using finder.
    Can anyone give some guidance on how I do this so i don't have to reload all my videos on the external drive.
    Also, when they are moved over, will i see the external drive when I open iMovie, or do I ahve to do something to see it in my Events Library.
    Any help be be appreciated.

    Can anyone give some guidance on how I do this so i don't have to reload all my videos on the external drive.
    Best approach is to import files directly to the external drive during the initial import process by selecting the appropriate drive in the import window. However, for Events already stores, here is A QUICKIE VIDEO TUTORIAL.
    Also, when they are moved over, will i see the external drive when I open iMovie, or do I ahve to do something to see it in my Events Library.
    You must activate the "external drive" icon in iMovie '08 to make your external drives visible in the Event Library list. (I.e. Press the icon to the right of the "Event Library" title and to the left of the actual Event Window.) Sorry, answered your e-mail message before seeing the second question here.

  • My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words.

    My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words and looks them up via dictionary. I currently have a wireless mouse connected and I am still having the same problems.
    I fee like I may have a virus or my laptop is perhaps being accessed remotely. All of the sharing options are unchecked.
    HELP PLEASE
    Very worried!!

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).

  • I have movies, events, clips, etc. scattered over three macs, and would like to consolidate them in one place, hopefully in ONE library on an external HD.  How, please!

    I have movies, events, clips, etc. scattered over three macs, and would like to consolidate them in one place, hopefully in ONE library on an external HD.  How, please!

    Try forcing iPhoto to load the Library on the External Hard drive by launching it while holding down the Option key. Choose the Library on the External HD, and quit iPhoto, see if iMovie can see the Library with the iPhoto Videos contained inside.

  • I can't delete in the search/address bar on my cursor moves out of the box

    When I try to delete after typing a word in the search bar after the cursor moves out of the box I can't i have to reload the page before i can start typing again. Also happens when i just click off the box does not let me type any more without refreshing. I get a beep sound when i try to type or reload

    Clear Safari and the reset the iPad again. Settings>Safari>Clear history and website data. Now reset the iPad by holding down on the sleep and home buttons at the same time until the Apple logo appears on the screen.
    I would also reset the router by unplugging it for 30 seconds and then plug it in again.

  • I have an external hard drive which has my i-photo on it & some movies from i-movie that I have on disk now. But for some reason my ehd has a caution symbol on it & I can't move my event to free up space on my hd so that I can export i-movie events. Help!

    I have an external hard drive which has my i-photo on it & some movies from i-movie that I have on disk now. But for some reason my ehd has a caution symbol on it & I can't move my event to free up space on my hd so that I can export i-movie events. Help!

    Usually the caution symbol means that it's formatted as a PC compatible format like NTFS or most likely FAT32. For iMovie to use it the ehd must be formatted Mac OS Extended. Then iMovie will show it without the caution symbol and you can drag/drop open any Event/Project from that hard drive.
    To find out if it's formatted as PC:
    Go to the desktop, holding down the Control key click on that ehd and in the pop-menu choose 'Get Info'
    Under Format: It will say whether or not it's Mac OS Extended (Journaled). The only way to undo a PC formatted ehd would be to copy everything off of it first, Erase/Format the drive using Disk Utility in the Applications>Utilities folder on your Mac, choosing the Mac OS Extended (Journaled) format in the pull-down menu there.

Maybe you are looking for

  • Watching movies from seagate

    Hello can someone please help me i was up all night busting my head trying to figure out this problem. I just recently purchased an ipad mini and a seagate wireless for my 2015 vacations. Just trying it out i have LOTS of digital copys with my movies

  • [SOLVED] Web navigation very slow

    I've installed the last version of ArchLinux (archlinux-2009.02-ftp-i686.iso) and the web navigation is very slow. Loading Google's home page in Windows is instantaneous but in Linux it takes about 9 seconds. And the rest of web pages are the same. I

  • GPS Tracking Software

    For what it's worth, there is a new GPS tracking software from www.mapmates.com.au I use it on my N95 and my friends use it on their 6110's. It enables you to find your friends or kids using Google maps

  • Q5 Wifi problems.

    Hey all, I really hope someone can help me with this, as it's driving me a little crazy .... My daughter got a Q5 for Xmas, so did 3 of her friends. My problem is, when she leaves the house and comes back her BB loses it's wifi connection until I reb

  • Logic 9 arrange window is missing

    Can't seem to get the arrange window to show after upgrading to 9.1.5 on Lion. I know about screensets and the APPLE + 1 command. All of the other windows come up when using the toolbar just no arrange window. Reinstall?