Slider mouse up event without polling

Dear all,
I have the following problem: I have a multi panel vi. Within this vi there are some numerical slider. I don't want to use the value change event to et the new data value cause this triggers to much events. So I decided to use "mouse up" event for the slider. I think it is known that if you leave the slider while moving, the slider still moves, but the value at mouse p is`nt triggering a event.
Before LV2009 there was a solution to genervate a dynamic event while the "mouse down" to the whole application for a "mouse up" event. But this isn't supported anymore/not available with LV11.
Is there any new way to do this? 
I hope the question is clear and not to confused...
Thanks a lot for help, best regards

Hello
I came up with little workaround. The number of events themselves isn't usually the problem, but processing them is. You may delay processing of your event by waiting until timeout event. Attached vi will explain this idea. But as I said - this is really workaround, and might not be fitting best to your application (depending mainly on other events you are also processing).
If you want to track mouse events globally (in the whole system), the only LV native way that I'm aware of is Input Device Control pallete in Connectivity.
Attachments:
delay_processing.vi ‏16 KB

Similar Messages

  • Mouse up event on a slide

    it's more a comment than a question. When I clicck on a slide control and keep the mouse down, I keep control of the slide value even if my mouse gets outside the control area.it's ok for me but in that case the Mouse Up event will not work. for the Mouse Up event to work properly, the arrow must remain on the slide control.
    Any chance to fix it?

    Hello Guibook,
    Thank you for contacting National Instruments.
    You are correct in your description of the slide control. To work around this, you would have to dynamically register a panel mouse up event during the slide mouse down event. Then you would unregister the panel mouse up event after it executes.
    I have attached an example workaround VI which demonstrates this.
    I hope this helps,
    Sean C.
    Applications Engineer
    National Instruments
    Attachments:
    MouseUpWorkAround.vi ‏50 KB

  • RT: Dynamic Event possible without polling?

    RT Targets only support dynamic events as seen in this demo:
    http://digital.ni.com/public.nsf/allkb/42B70D2D0C4B568586256E2F0051441D?OpenDocument
    the example uses: "Generate User Event" to fire an event.
    The event is fired within an While Loop where two inputs are compared (polling the input all the time....)
    I would like to generate an Event on a change of a variable without having to poll.
    Is this possible?
    thanks a lot
    thomas

    Hi Thomas,
    you can use shared variables and LabVIEW DSC on your RT target without polling but otherwise there's no possibility to avoid polling completely.
    Here are some interesting links on this issue:
    "Installing LabVIEW DSC, SQL, or MSDE on a Real-Time Target": http://digital.ni.com/public.nsf/allkb/52CC76196A480C6C86256F8900592A25 
    This page contains also other interesting links on this issue!
    http://digital.ni.com/manuals.nsf/websearch/12BCE84BAF96E2AE862574330022EC46 
    "Using the LabVIEW Shared Variable": http://zone.ni.com/devzone/cda/tut/p/id/4679 
    "Using Shared Variable Events on Real-Time Targets": http://digital.ni.com/public.nsf/websearch/3AE325EECD9A17AD862570BA00625088?OpenDocument 
    The DSC features of the shared variable are limited to use on Windows targets, however you can host variables on a Windows machine and reference them on a real-time target. Another option is to create two sets of shared variables, one set hosted on the Windows side and one on the RT side, with each variable on the Windows set bound to the corresponding variable on the RT side. This would allow you for example to log data on a variable, but have it hosted on the RT side with no network dependency on the RT side to the Windows side.
    I hope these informations help you!
    Best regards
    Suse
    Certified LabVIEW Developer (CLD)

  • Problems with Mouse Down event for a picture control embedded in tab.

    I noticed that when trying to get a Mouse Down event for a picture control that the Mouse Down will not be 'fired' if the picture is embedded in a tab control. It also appears that this problem exists for other controls (I only tested a slider in addition to the picture). It isn't much of an issue for me now as I can just poll the mouse property of the picture control, but the Mouse Down event has information that I may want access to in my next software revision (button pressed, and Alt mod). I could do that by handling the Mouse Down event for the tab itself and checking to see if the the mouse property isn't -1, -1 for the picture, but that seems a little bit too kludgy (sp?) to me and wouldn
    't address the issue with other control types. Any chance of this being addressed by a patch sometime in the next couple of months???
    Attachments:
    TabProblem.vi ‏69 KB

    The problem I reported above was in LV 6.1.
    As a work-around, I used the mouse down on the tab control and did the math to decide if the picture was clicked.
    I have been told that this was fixed in LV 7.0. I can not confirm.
    You could call NI and ask about the service request number I cited above.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to fire mouse wheel events to parent container?

    Hi,
    When I create a JPanel (let's say jParent) inside a JScrollPane and this JPanel is larger than the current viewport I can use my mouse wheel to scroll the JPanel's containt without coding anything about that.
    But if I add another JPanel-derived component (let's say jChild) to the first JPanel, mouse wheel events are not received by the first JPanel when the mouse is over the new added child JPanel.
    How can I forward child's mouse wheel events to the first JPanel?
    If I use:
    jChild.addMouseWheelListener(jParent)I must implement a mouseWheelMoved() method in jParent that requires some code to work while it was doing it byitself before...
    Thanks in advance for any help :-)
    Regards,
    Lara.

    you have a mouseWheelListener added to jChild?
    if so, in the mouseWheelMoved code include this line
    jParent.dispatchEvent(mouseWheelEvent);//or to the scrollpane

  • Pass Mouse click events from JavaScript to Falsh Movie

    Hi,
    I have an interesting problem here.
    i am trying to create a web page which has my
    flash-presentation movie. i need to disable mouse click &
    keyboard click navigation of the flash movie. The only way by which
    i can navigate my slide in the flash movie should be using 2
    buttons say Next & Prev that are i my web page.
    when i click the Next button i should be able to go to the
    next slid or the animation in the same slide like how i do in the
    power Point.
    Is there any way by which i can send these mouse click
    events from my javascript to my flash movie or is there any other
    means by which i can achieve this.
    ~Blackperil

    Hi Mathias,
    What i understood is that you want to triger a server side event (simulate onClick event of button)from a client side event (javascript confirm popup), based on the choice of user..
    You can also try this one...
    Check = confirm("Do you really want to proceed?");
    if (Check == true)
    document.getElementById('do_proceed').click();
    else
    document.getElementById('do_cancel').click();
    Regards,
    Anubhav

  • Simulating mouse drag events?

    Hi all,
    I am wrinting unit tests for my swing application. For one test I want to simulate a drag event over a panel. I have tried JFCUnit, but does not seem to work for this, so I am trying to write my own.
    I create 3 mouse events and post them on the system event queue. A mouse press event, a mouse drag event and a mouse release event. MouseEvent's do let you specify a drag start and a drag end point in their constructor. So I have tried using both, but neither works.
    Am I doing anything wrong? The component I'm operating on gets the mouse pressed and mouse released events, but thats all.
    any help much appreciated,
    Justin

    I tried using the Robot class alright, but it does really wierd things. I sometimes doesn't work for simulating dragging events. I have a component that you can drag anywhere on the screen using the mouse, without having to use the titlebar. I am trying to test this dragging, but with the robot class, it looks like it goes into an infinate recursion. The mouseDragged method gets executed thosands of times, and you can see the panel shifting from its origional position to the new position and back again for a few seconds. Could be a bug in Robot class.

  • Mouse over event

    Hello,
    I have two objects. First object (1) has event listener
    MOUSE_OVER. On this object is another object (2) without listener.
    When I move with the mouse on second object, mouse over event on
    object 1 is not dispatched. I don't know why. How can I do it ??
    thanks

    If both objects are in a VBox, with the second object (no
    listener) overlapping the first object (has listener), when you
    hover over second object, if you have a listener on the container
    you should be able to see if the target for the event is the second
    object and then take action.
    This is because events first "cascade" down from the top of
    the display list, through all containers until they reach the
    target (targetting phase), and then they bubble back up to the top
    of the display list (bubling phase).

  • Event structure mouse up event outside icon bounds

    I've just noticed that the 'mouse up' event only works if the mouse cursor remains hovering over the control panel icon associated with it.
    It's a problem for me because I have a slider bar which passes values (via an event queue, then RS232 to hardware) when the slider value changes. But that can generate lots of queued up serial writes if I slide quickly back and forth with the slider, so I use a mouse up event to flush the queue. It appears to work, but if I click and drag, sliding the cursor outside the slider bar area, it fails to recognise the mouse up event.   

    Hi Graham,
    Is it the default behaviour that the Mouse Up event only works while the mouse is above the control itself. If you want to have a slightly larger area, you can use the Mouse Up event of the Pane, and then check the co-ordinates of the mouse cursor before doing your processing.
    Regards,
    Imtiaz Chowdhury
    Head of Digital Technologies
    Brand786

  • Not detecting mouse exit events

    I'm developing a Java application that implements an 'auto-hide' functionality - similar to that of the Office Shortcut bar - such that when the mouse moves outside of the application frame the window auto-hides. I'm using the Mouse Exit event to detect when the mouse moves outside of the the application frame and then I 'hide' the window (or rather resize it to 2 pixels high) so I can then detect the Mouse Entered event to restore the window.
    This works OK but occasionally if I move the mouse quick enough the exited event isn't detected and the window doesn't always hide.
    Are there any other ways of detecting if the mouse moves outside of the application frame (so I can also trigger my 'hide' function) without relying on other events such as windowLostFocus.
    Thanks,
    Richard.

    I have one suggestion:
    Check that the component that you use to monitor mouse exit and enter events has at least one pixel visible from all sides (most layout managers allow a border (not a Border class or subclass) that is not occupied by child subcomponent).
    For example if you will place some other component in container directly so some side then mouse enter and exit events will be fired on that component and not on the container.

  • How to use Mouse Wheel Events

    Hello Everyone
    I am using Datagrid in my Canvas.
    I use mouse wheel to scroll the datagrid. But in one scroll
    through that wheel make the more than 4 rows to be scroll.
    So Now my requirement is to control the delta value of mouse
    wheel event and how to use that with my datagrid so that i will
    able to scroll one row through mouse wheel scroller.
    Thanks

    please give me some suggestion around it.
    I want to scroll one row of datagrid with per mousewheel
    scroll. I am not getting how to use the scrollMouseWheelMultiplier
    property of the IConfiguration class because i am not able to
    create the object of this class.
    I am using the Flex 3.0 and flash 9 version.
    please help me out around this.

  • How can I (neatly) control mouse click events in a multi-dimensional array?

    Hello everyone!
         I have a question regarding the use of mouse clicks events in a multi-dimensional array (or a "2D" array as we refer to them in Java and C++).
    Background
         I have an array of objects each with a corresponding mouse click event. Each object is stored at a location ranging from [0][0] to [5][8] (hence a 9 x 6 grid) and has the specific column and row number associated with it as well (i.e. tile [2][4] has a row number of 2 and a column number of 4, even though it is on the third row, fifth column). Upon each mouse click, the tile that is selected is stored in a temporary array. The array is cleared if a tile is clicked that does not share a column or row value equal to, minus or plus 1 with the currently targeted tile (i.e. clicking tile [1][1] will clear the array if there aren't any tiles stored that have the row/column number
    [0][0], [0][1], [0][2],
    [1][0], [1][1], [1][2],
    [2][0], [2][1], [2][2]
    or any contiguous column/row with another tile stored in the array, meaning that the newly clicked tile only needs to be sharing a border with one of the tiles in the temp array but not necessarily with the last tile stored).
    Question
         What is a clean, tidy way of programming this in AS3? Here are a couple portions of my code (although the mouse click event isn't finished/working correctly):
      public function tileClick(e:MouseEvent):void
       var tile:Object = e.currentTarget;
       tileSelect.push(uint(tile.currentFrameLabel));
       selectArr.push(tile);
       if (tile.select.visible == false)
        tile.select.visible = true;
       else
        tile.select.visible = false;
       for (var i:uint = 0; i < selectArr.length; i++)
        if ((tile.rowN == selectArr[i].rowN - 1) ||
         (tile.rowN == selectArr[i].rowN) ||
         (tile.rowN == selectArr[i].rowN + 1))
         if ((tile.colN == selectArr[i].colN - 1) ||
         (tile.colN == selectArr[i].colN) ||
         (tile.colN == selectArr[i].colN + 1))
          trace("jackpot!" + i);
        else
         for (var ii:uint = 0; ii < 1; ii++)
          for (var iii:uint = 0; iii < selectArr.length; iii++)
           selectArr[iii].select.visible = false;
          selectArr = [];
          trace("Err!");

    Andrei1,
         So are you saying that if I, rather than assigning a uint to the column and row number for each tile, just assigned a string to each one in the form "#_#" then I could actually just assign the "adjacent" array directly to it instead of using a generic object to hold those values? In this case, my click event would simply check the indexes, one at a time, of all tiles currently stored in my "selectArr" array against the column/row string in the currently selected tile. Am I correct so far? If I am then let's say that "selectArr" is currently holding five tile coordinates (the user has clicked on five adjacent tiles thus far) and a sixth one is being evaluated now:
    Current "selectArr" values:
           1_0
           1_1, 2_1, 3_1
                  2_2
    New tile clicked:
           1_0
           1_1, 2_1, 3_1
                  2_2
                  2_3
    Coordinate search:
           1_-1
    0_0, 1_0, 2_0, 3_0
    0_1, 1_1, 2_1, 3_1, 4_1
           1_2, 2_2, 3_2
                  2_3
         Essentially what is happening here is that the new tile is checking all four coordinates/indexes belonging to each of the five tiles stored in the "selectArr" array as it tries to find a match for one of its own (which it does for the tile at coordinate 2_2). Thus the new tile at coordinate 2_3 would be marked as valid and added to the "selectArr" array as we wait for the next tile to be clicked and validated. Is this correct?

  • Mouse over events on alv report?

    Hello,
    i want to make mouse over event for rows of a alv report.When mouse is on a row there will be shown explanations.
    how can i do this?
    thanks inn advance.

    Cem ,
    Please follow the code mentioned in the links below :
    Hotspot in ALV grid
    http://wiki.scn.sap.com/wiki/display/Snippets/Interactive?original_fqdn=wiki.sdn.sap.com
    Thanks
    Ankit

  • HOW CAN I DELETE AN EVENT WITHOUT  HAVING TO SELECTING IT FROM THE LIBRARY?

    I have a big problem.
    I want to delete an entire event from my library because everytime I select it imovie freezes and then close itself up. So I have to re-open imovie again. And when I want to select that particular event again the same problem occures. So I can not select that particular event. Therefore I can take NO action on this event.
    HOW CAN I DELETE AN EVENT WITHOUT HAVING TO SELECTING IT FROM THE LIBRARY?
    (Everytime I select it imovie closes itself up)
    All other events work fine. I believe The footage had a problem from capturing. but now it's in my computer and i can't open it.
    Please help me, I don't need this event, I can't open it therefore I can't use it and it takes place on my hardrive for nothing.
    Thank you

    One can delete it from one's computer. In the finder go to homeuser, movies, imovie events, delete the footage.
    Then reopen iMovie and see if that helps.
    Hugh

  • Mouse down event reading a string terminal trick

    Hi,
    I wondered why I was getting frustrated entering a pasword that was verified in the mouse down event of the OK button. This is becuase when you click the OK button the entered text is still in the buffer and not copied to the terminal. (Which is more natural than clicking somewhere on the FP first). Note pressing enter or tab gets the string control out of enter text mode.
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event. As this is one of those not obvious but sometimes happens bugs... I have posted for reference for others :-)
    Example attached v8.6.1.
    Attachments:
    TestMouseDownEvent.vi ‏13 KB

    Nick wrote:
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event.
    AFAIK, "Update value while typing" will trigger only a Value Change event of the Str Ctl.
    Mouse Down event will preceed a Value Change event, if you have both the event cases configured in your code.
    - Partha
    LabVIEW - Wires that catch bugs!

Maybe you are looking for

  • Pleas help with my music files and folders on an external drive

    A while back, I thought I had a virus on my C drive and was advised to by an external hard drive to move all my important files and folders to. As an inexperienced computer guy, this eventually led to a problem. I have many folders that shouldn't hav

  • Can i install windows 7 on my iMac 2012 using a external drive

    Can i install windows 7 on my imac 2012 using a external cd drive ? Thanks

  • Purchase Order from EBP was not created

    Hi people, I have a problem with an approved shopping cart that must generate a Purchase Order in R3. But: - The order was not generated in R3 - I have an entry in bbp_document_tab table in EBP system - When I check the status of the Shopping Cart in

  • Photo's missing..

    I imported my photos off my iphone onto iphoto on my MacBook and i restored my iPhone, now all my photos have disappeared off iphoto.. How can i retrieve my photos? Need urgent help please!

  • IPod could not be restored an unknown error occurred (-1)

    Just got a replacement 2nd gen iPod Touch to replace a faulty one and when I tried restoring it with the backup I made before taking in my old one, I keep coming up with the same error message "iPod could not be restored. An unknown error occurred (-