Using a control of the chain with the Enter key, return * and * allowing repeated identical entry

Hi all

There must be a simple solution for this, but it's Friday afternoon, and my brain is not cooperating.

I create a simple terminal through which a user can interact with an instrument. My question is about the only query string control. The button send and the Terminal Table are here for reference.

Here is my desired behavior:

(a) the user types a command in the field of the query, tape input or return. An event is triggered, and the request is sent to the instrument. The focus remains on the field in the query.

(b) with any other action the interface user, the user types Enter or return again and again, by triggering an event that sends the request to the instrument every time Enter or return is typed. The focus remains on the field in the query.

Here's what I have:

This allows for one), but fails to b). The reason is, because the value of the field in the query has not changed, change value event does not fire when the user starts to spam keys enter or return. There is a way around this, as suggested by this post. Here is the solution in a few words:

Instead of looking for the change in the value of the query command, the event fires for each key event to the bottom of the control and resembles a pressure of enter key or return. What attracts the user action, even if the content of the field of the request have not changed. The problem with this approach is that, when this event fires, I need to read the value of the query string order and send it to the instrument, but the value I get via the local Variable query is the old value, probably because the key down event fires before the value of query is saved as changed. Is there a way to programatically "enter" the contents of the control channel so it is recorded as a change in value, until I have the question via a local Variable? Is there a different way I should go about it? I'd rather not do anything that bound the input keys or return to this particular area, since I have many other UI elements that need these keys in my program.

If not, is there a way to make the control of the fire 'Change of value' query string event when the user presses enter or return even if the value has not changed?

Thank you for your comments!

I thought about it.

(1) control of the string (query) a value of update while typing.

(2) save the key event down to the control of the chain. If the entry or return was pressed, send the state machine to the State 'send request '.

(3) in the application 'send' State read control channel via the local Variable value.

This is the desired behavior to allow the user repeatedly hit entry or return to regularly send a command, and the user can also type in a new order and send it by pressing enter or return.

Thanks to all who have helped me this something to think about!

Tags: NI Software

Similar Questions

  • When you press the Enter key, go to the next field

    Hello

    Usually in the form when we press tab it goes to the next form field.
    I want to go to the next field by pressing the Enter key.

    And there are also some select list in the form field which are like AutoComplete. So, how we can implement the functionality for autocmoplete fields.


    Thank you
    Olivier

    Hello

    See if that helps
    Keyboard tabular - tab order

    BR, Jari

    Published by: jarola on November 7th, 2009 12:18

    You may be interested also in this
    http://roelhartman.blogspot.com/2008/12/moving-through-tabular-forms-using.html

  • I can't use the "Enter" key to take me to a Web site, I typed in the navigation bar - I have to use the mouse to click on the arrow 'go. ' Why? How can I fix it?

    I can't use the "Enter" key to take me to a Web site, I typed in the navigation bar - I have to use the mouse to click on the arrow 'go. ' Why? How can I fix it?

    An extension, probably "AVG Safe"

  • Help me I have Windows XP. Would be, or could you please tell me what the function keys are and how I could use them?

    I have Windows XP. Would be, or could you please tell me what the function keys are and how I could use them?

    I have Windows XP. Would be, or could you please tell me what the function keys are and how I could use them?

    Function keys are used to things dirrent, depending on whether you are simply Windows or a program of work, and if you work in a program, what program it is?

    This search through the documentation of programs you use. Read also here: http://www.internetfixes.com/definitions/IF01424.htm

  • The ' sort by ' disappeared in the menu toolbars, have more control over the Organization of files and folders

    The ' sort by ' disappeared in the menu toolbars.  No need for control over the Organization of files and folders.  Please advise.

    * original title - I can't delete automatically rearrange the menu toolbars so that I can sort the folders and files that I have wish.*

    Hello

    ·          Were there any changes made to the computer until the problem occurred?

    ·          Have you tried right click and check the context Menu?

    ·          This happens for any particular folder?

    Step 1:

    You can check if the same thing happens in a new user account. To create a new user account

    http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account

    Step 2:

    If the new user account works fine then the old account has been corrupted, you can follow the link given below to fix the corrupted user profile.

    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • using a sequence as the primary key

    I use a sequence for the primary key of the database for dimensions (following Kimball methodology). In ODI, I define another unique key as principal. It will not let you select check null = true and therefore a sequence can serve as primary. Someone at - it something differently.

    ss396s wrote:
    I use a sequence for the primary key of the database for dimensions (following Kimball methodology). In ODI, I define another unique key as principal. It will not let you select check null = true and therefore a sequence can serve as primary. Someone at - it something differently.

    You must follow the rules on the sequence
    1 > it cannot be run on the source
    2 > may not be a part of your key update
    3 > check not the null check box should not be selected
    4 > separate box must not be activated

    If you use a sequence for the primary key for the database, and then identify another or several columns are coming from the source and use that you can only identify a row. Use these columns as your key to update.

    Thank you
    Fati

  • How to use the ENTER key

    Hi all

    I got a login screen which consists of a two text fields and a buitton. If I use the keyboard to navigate, I use the tab key to navigate between each component, but to present the "connect" button I need to navigate to the button and press the SPACEBAR.
    Is anyway to change the default value after pressing a SPACEBAR to press the ENTER key.

    Thank you

    concerning
    Aerts

    "amthekkel" wrote in message
    News:gkffkr$BG5$1@forums. Macromedia.com...
    > HI all,
    >
    > I got a login screen which consists of a two text fields and a buitton. If
    > I
    > use the keyboard to navigate, I can use the tab key to navigate between the different
    > component, but we need to send the button "login" I need to go to the
    > button
    > then press the SPACE bar.
    > Is anyway to change the default value after pressing a SPACEBAR for pressing
    > the
    > ENTER key.

    Set the defaultButton of the container.

    HTH;

    Amy

  • By pressing the ENTER key once instead of twice

    Hello!

    I am developing a Login System. I want the user to choose a user name (from the list), and then enter a password (in a text box with "the password display" enabled). I want the user to be able to press ENTER, optionally with a click on the Login button after entering the password.

    I'm doing it with a Structure to the event read the key Down event and using the node Vcle to record key is pressed. (see image below)

    My problem is that the user must press the Enter key twice to something happened. I want that happens on the first click.

    Anyone has any advice?

    Hey PeterPoPS,

    If you right click on the button enter and go to Properties > Navigation key, you can select the toggle property to bind to the key back from there. You can implement the correct mechanical action so that the button is not fixed in this State, such as lock to exit. You can change the action type mechanical button responds with by right-clicking on the control of entry button and navigate through the menu of mechanical Action . If you later want to use this button within a structure of the event, be careful because the mechanical action of locking must be explicitly read and reset through the event.

    This way you can build an event around the change in value of enter key.

    I hope this helps!

    Kind regards

  • By pressing the ENTER key in the first tab-> a button in a different tab is pressed?

    Hi guys,.

    I am facing a problem. I have a tab with 4 different tabs. When I'm in the first tab and try to change the value of a control by pressing the Enter key, it suddenly switches to the second tab and presses a button here.

    No idea how it goes? I want to avoid that from happening.

    Thank you

    Check your tab order and control is enabled is a shortcut bound to it.

  • Field to focus on a searchable ListField through the Enter key

    Hi all

    I have one ordered (I use SimpleSortingVector) ListField that contains only strings, so I want to catch (alphanumeric) of essential production factors to target the first item in the list that begins with the Enter key.  I think this can be solved with the indexOf method or the indexOfList method and focus on this area, but don't know how to use both methods. How can I do this? or is there another way to do it please show it...

    Thanks in advanc

    It is actually very easy using indexOfList (.).

    First of all, if you call great or do not ignore it, I think that the treatment will do a "toString" on each getItem, so if the getItem returns the string, you may have to do nothing at all.  However, I found that the default implementation will just before, so I coded so that it will wrap.  The pseudo-code looks like

    for (int i = start + 1; I< listfield.size();="" i++="" )="">

    String testString = the ith index in the ListField

    If {(testStrinag.startsWith (prefix))

    Return i;

    }

    }

    for Int i = 0; I have< start;="" i++="" )="">

    String testString = the ith index in the ListField

    If {(testStrinag.startsWith (prefix))

    Return i;

    }

    }

    back to top; did not find, do not move.

  • Set the button play to be the same as the Enter key

    Greetings,

    I am using Media Encoder CC 2015 and Encore CS6 Blu - Ray DVD authoring.

    I have a Macbook Pro running 10.11.5 2012 (El Capitan) is

    I find that on the remote, when I press the play button, it does not play the link I have on my Menu Blu - Ray.

    I have to press the Enter key so he could play.

    Is there a way in which I can put the button play to function as the Enter key?

    Thanks in advance for your answer.

    Kind regards

    Tiya

    I think that the answer is not simple. The only control you have is if a particular function is allowed, not how the BD Player interprets the button.

  • Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Welcome to Oracle Forms!  Out of curiosity, what do you mean by 'new '?  You are a student or new to an organization that uses Oracle Forms?  Or just play with Oracle Forms to learn something new?

    Let me start by saying that many of your questions designtime can answer by searching in the help of the constructor of the form library.  It's accessible, like most of the other products in the Builder menu > help.

    Regarding your question, ENTER QUERY mode, as the term implies, is when it is in a State where it is accept input for the execution of a query.  When in this mode, there are various restrictions.  Yet once, it will find more details in the Builder Help.  In this case, search help for these two subjects, "SYSTEM." MODE'and "built-ins comments that are not allowed in the input query Mode".  There are many other pages that contain information about the ENTER_QUERY method, but these two should help you get started.

    Normal mode, as its name implies, is when it is in a State of 'normal '.  Basically to do nothing in particular, but also not in ENTER QUERY mode.  In this State, you can move the shape, INSERT, UPDATE, DELETE, documents, etc..

    You will find additional information, as well as a lot of documentation on the product page of forms of OTN:

    http://www.Oracle.com/technetwork/developer-tools/forms

  • The Enter key does not work in the address bar; I have to manually select the icon ' go to ' since the upgrade to Version 10.

    I just upgraded to Firefox 10. When I manually enter a URL in the address bar, press 'Go To' does not focus, then the Enter key will not work. I have to manually select the arrow "go to" to navigate. Any suggestions?

    This could be the extension of AVG safe search. If you have installed, try disabling it. Instructions here: use the extensions to add functionality to Firefox

  • Could not load any websites. I don't get any 'error message', the 'enter' key has no effect in the address bar. Works fine in FF and IE search box.

    Entering a URL in the address bar and pressing on enter does nothing. Or the 'enter' key or 'address arrow bar', to go to the site function. Web site does not load and no error message appears. 'Enter' key works very well in the FF and IE search box, is not my keyboard.

     Tried most of the recommended fixes under the "Error loading websites" article with the exception of "DNS refetching", as typing "about:config" in the location bar does no good as the "enter button" won't function. I've removed and re-added FF back into the windows firewall, removed ZoneAlarm from my system, edited proxy settings, deleted and reinstalled FF several times. NOTHING WORKS!!! I'm a die hard FF fan and this is KILLING me. Please HELP!!!
    

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • When I type in a url, the Enter key is not recognized, so the site does not load

    When I type a url or paste in one and press ENTER, the Enter key is not recognized and nothing happens. It does not load. If I use a bookmark and click on a saved url that will load automatically.
    Have uninstalled and reinstalled firefox and it has not solved the problem.

    The problem may be caused by the Ask.com toolbar (Tools > Modules > Extensions)

    The details of your system display this toolbar to the user as AskTbARS/3.11.3.15590 agent

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

Maybe you are looking for