Programatically bring the cursor to a numerical control while VI running

Does anyone know how to programatically move the cursor to a particular numerical control while a VI is running?
I have a VI that polls the user for information, and at one point, the user has to repeatedly type numbers into the same numerical control and press enter. For a number of reasons, it is awkward to be messing with the mouse during this particular test. Each time the user presses a paricular button to send data a to file (which I have linked to the Return key on the keyboard by means of 'key navigation'), I would like the cursor to jump to the relevant numerical control ready for the next number to be entered on the keyboard. Does anyone have any ideas how to do this?
I have set up a separate key navigation for thenumerical control in question, so if the user presses the Esc key, this control becomes active and the cursor is in place, but I would like to move the cursor there without this extra user button press if at all possible. 
Regards,
Will

Will
 I'm not sure if this is what you are looking for but it might do what you need.
On the block diagram right click the control in question >>create>>property node>>key focus. Now right click the property node and select Change to write. Wire a boolean true constant to it and place this snippit in the appropriate place(s) in your code depending upon your architecture.
Hope this helps.
Using LabVIEW 2010SP1 and TestStand 4.5

Similar Messages

  • Set cursor position within table control while scrolling

    hi,
    Anybody can guide me how to set the cursor with in table control while scrolling down,normally it is going to first input filed.
    Thanks and Regards,
    palani.

    Hi Palani,
    Could you please share with me what all you have done regarding get and set cursor. I am facing similar problem where
    I have made a Z Table Control where i have given vertical and horizontal scrolling . Now when I scroll and try to select a row, then ZTABLE_CONTROL-CURRENT_LINE fetches line number not from the top, it fetches from the current top of ztablecontrol.
    It is onlyy changing the value on scrolling, if i do not scroll table control then value is coming correct.
    My requirement is whenever i select any row of ZTABLE CONTROL i need to get the curent line number from top. Please guide me what should i do.
    Early reply will be rewarded.
    Thanks.

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

  • Is there a way to force the cursor into a string control when a vi is called

    In a .vi I'm wrighting I need to input a new serail number at the beginning of each run. Is there a way to force the cursor into the string control box every time the start screen returns? eliminating the need for the operator to move the mouse around and click.
    I would like to THANK all that have replied to my questions in the past. It has been a big help!
    Thanks
    TeBlues

    ah, problem solved.  what a community.
    Message Edited by Space_Flight on 11-20-2006 10:08 AM
    Attachments:
    keyfocus.jpg ‏83 KB

  • How to control the cursor location(without mouse control)??

    Hi,
    I am now developing a swing application which need to use a thread to change the cursor location.
    Can the cursor location be controlled by a thread?
    thank

    can be done using class Robot

  • To handle cursor position in table control while using insert initial line

    hi,
          I have a requirement to handle cursor position in my table control in which i am using insert initial line by incrementing the index. Now i am handling the cursor position by using set cursor but after 14 records it is going to the first field of the screen. My table control length is 14 records.
          How to handle this, please reply me if anyone know.
    thanks & regards,
        sekhar.

    hi,
             I need to page down the page and then want to set cursor position but for this system command i am getting space for every command. Page down and cursor down or enter every thing it is taking as space. So for this how can i handle it.
    thanks & regards,
        sekhar.

  • How to get the menu reference of a control while runtime

    Hello...
    i want to disable the control's short-cut menu programmatically. i could do it by using the event structure and 'shortcut menu activation' event.
    this is why i am asking about getting the menu reference if individual control.
    is there any other way out without using event structure?

    "Share_Good" <[email protected]> wrote in message
    news:[email protected]..
    > Hello...&nbsp;i want to disable the control's short-cut menu
    programmatically. i could do it by using the event structure and 'shortcut
    menu activation' event.&nbsp;this is why i am asking about getting the menu
    reference if individual control. &nbsp;is there any other way out without
    using event structure?&nbsp;&nbsp;
    No. You have to use the event. But if you simply disgard the activation, you
    don't need to change it's run time menu. You'll need the event structure
    anyway to catch the selected menu item.
    Regards,
    Wiebe.

  • The Cursor Jumps Here and There While Typing

    When I type something on text-processing applications (Text Editor, Sticky, Word 2004 for Mac, even compose email field on web-based emails), my cursor keeps moving randomly to the previous part of the body text. I keep on typing until I realize it messes up what I've been typing. I can't keep typing and checking the result all the time.
    It doesn't happen all the time, but it happens often enough. It's kinda very frustrating.
    Any idea why this happens?
    Thanks!

    System Preferences>Keyboard & Mouse>TrackPad>Ignore Accidental Input
    iMac G3, iPod Mini, MacBook Pro (1.83 GHz& 1 GB)   Mac OS X (10.4.6)  

  • Trying to connect the RD app to remotely control a laptop running Win 7 Pro 64bit

    Can you please advice which changes I need to do on the Win 7 laptop to be able to connect to it from the RD client app? thanks!

    Hi,
    If the device you runs the RD App and your Windows 7 laptop are in the same network, you can just refer to the steps in this article to configure your Windows 7.
    Allow someone to connect to your computer using Remote Desktop Connection
    http://windows.microsoft.com/en-us/windows7/allow-someone-to-connect-to-your-computer-using-remote-desktop-connection
    However, if they are not in the same network, you may also need to configure your network device.
    Allow Remote Desktop connections from outside your home network
    http://windows.microsoft.com/en-us/windows7/allow-remote-desktop-connections-from-outside-your-home-network
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • Hiding the address & tool bars of ie while forms running

    hi
    is it possible to hide the tool bar, address bar when the forms running
    (forms 9i). if yes how...? pls help
    kris

    Kris,
    if you launch Forms from another webpage the you can do this with Javascript. You use the Javascript window.open(URL,....) command for this.
    <script>
    var windowHandle;
    function openWindowURL(URLString){
    if (windowHandle == null || windowHandle.closed){     windowHandle = window.open(URLString,"Oracle Forms Services","location=false,toolbar=false,resizable,scrollbars");
    else {
    windowHandle.close();
    windowHandle= window.open(URLString,"OracleFormsServicesSubWindow","location=false,toolbar=false,resizable,scrollbars");
    windowHandle.focus();
    function closeWindow(){
    if (windowHandle && !windowHandle.closed){
    windowHandle.close();
    else{
    <!-- HANDLE THE CASE OF NO WINDOW BEING OPEN -->
    </script>
    Frank

  • I have a plot with two cursors - how can I control the "visible" attribute of the second cursor?

    I have a waveform graph with multiple plots and two cursors. I can use the "cursor->visible" property to control cursor #1 but I cannot seem to find a way to control the visible attribute for cursor #2. Is there a way to do this?
    Thanks,
    RGA

    There's an "Active Cursor" property that allows you select which cursor the following actions operate on. Remember that property nodes "execute" from top to bottom...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to detect the key enter with a numerical control without using loop event?

    I want to accept a numerical value only when the key enter is pressed, but without using the event. How to detect the char "enter" with a numerical control?
    Thanks!

    When the user edits a numeric control with a keyboard, its property "key focus" is true. When the user hits enter, key focus becomes false. Poll the property to latch the control valuse at the true-false transition. That won't work if the user modify the control using up and down arrows.
    LabVIEW, C'est LabVIEW

  • After moving and resizing control, some controls don't redraw properly as the cursor passes over them.

    I have a top-level VI with three panes (two splitters).  One of the panes contains nested tab controls.  One of the tab pages contains six XY-graphs, a table and some decorations.
    I use a subVI to resize and relocate the tabs and contained controls.  All this is working fine, and everything looks fine after the resizing is complete.
    The problem is when the cursor passes over certain controls (the chart legends and the table column headers for example), they redraw with gray boxes.  The problem only occurs after enlarging the window from its minimum size.  It goes away if the window is resized back down to minimum.
    Anything that causes the window to redraw, like another resize or minimize/restore, properly refreshes the screen.
    Has anyone seen this problem, and have a workaround?
    The problem exists in development environment or built in LV 9.01 or LV 2010.
    Thanks!
    Matt Dennie
    Attachments:
    Resize Redraw Problem.zip ‏125 KB
    Resize Redraw Problem.JPG ‏210 KB

    Thanks again for taking a look at my problem.
    force redraw - This is apparently only available in LV2010.  I did give at a try, but it did not prevent the problem, nor did it correct the problem once the gray boxes appeared.
    disable updates (on a graph) - This apparently only applies to 3-D graphs, which is not what I am using in this case.
    disable front panel updates - I tried disabling updates before moving/resizing the front panel controls, then re-enabling updates afterwards.  The problem is exactly the same as before.  Once the move/resize is complete, passing the mouse over the table column headers or the graph plot legend results in the gray boxes.
    I would appreciate any other suggestions you may have. 
    Again... the problem is not that the moving and resizing don't work.  They work fine.  But once the resizing is complete, passing the mouse over the legend or table column headers causes gray boxes to appear.
    Thanks!
    -- Matt

  • Problem with ARD3 keeps losing the cursor

    I am having problems with ARD3 whereby I keep losing the cursor when controlling another machine. The cursor is still there but you have to click-drag to see it moving. There was a similar problem a few months ago after a system update and pre ARD 3.1. I used to be able to upload the ARD client and that would solve the problem temporarily. But now that won't even work.
    Another thing I notice when that happens is that my "Hidden Dock" stops appearing unless I click in the area. That also happens with my menus. And Expose stops working too.
    The only way to get around the problem, is to either restart the computer or leave it for anything up to 1 hr, then it will be fine again.
    Does anyone have the same problem?
    I use a MacBook Pro DC 2G with 2G of RAM. 10.4.9 and all the latest System Updates including Security Update 2007-04. This started happening even before the 2007-004 security update.
    MacBook Pro DualCore 2G   Mac OS X (10.4.9)  

    I find that this happens only if a tool tip comes up after having it over an item in the toolbar however clicking in the remote computer's windows somewhere will bring the cursor back. Additionally switching windows, to say the main ARD window, and then back again will restore it as well.

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

Maybe you are looking for