Update while typing in numeric control?

So...
When I type a number into a numeric control, it doesn't update until I hit enter or click somewhere outside the control.
Problem is, after entering the number, I want to click on a "go" button
to do something with the new value in numeric control, but unless I
remember to click somewhere else or hit enter first, I'm doing
something with the old value, not the new value.
This gets aggravating.
How to make sure the value of the numeric control gets updated before doing something with it?
"update while typing" exists for string controls, but seems conspicuously lacking for other types of controls...

I cannot reproduce your described behavior: With either a local variable or the numeric control inside the event case, I never see a stale value. Please attach your VI so we can troubleshoot.
Adding a delay to fix something like this is incorrect and dangerous. If a delay solves the problem, it points to a flaw in the code.  What if somebody will run your program on a slower computer where it would suddenly need a 12ms delay. You'd be back to sqaure one, dealing with race conditions.
(And why are you using "mouse down" instead of "value changed"?)
Message Edited by altenbach on 03-21-2006 05:22 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Events.vi ‏12 KB

Similar Messages

  • Propiedad "update while typing" para Pcket PC

    Estoy desarrollando una aplicacion para una PDA Dell Axim Pocket PC, utilizando el modulo de PDA Pocket PC para labview 8.0.1, el problema es que la propiedad "update while typing" de los contorles string no parece funcioar, actualiza el valor solo hasta que el control pierde el foco, hay alguna forma de solucionar esto?, espero puedan ayudarme.
    Gracias. 

    Israel buen día!
    Leyendo lo que nos pusiste, me llega una duda, estas pasando al string que quieres que se de update while typing desde un while o for loops? Porque mira, hice un ejemplo de cómo puedes visualizar los datos que escribes al string de forma correcta y de forma incorrecta con la propiedad que necesitas, te lo mando para que lo cheques y cualquier cosa me digas por favor. Gracias por usar los Foros de National Instruments y te mando un saludo
    NorSa
    AE LATAM
    NorSa
    NI Applications Engineer Latin America
    Para Soporte entra aquí
    Adjuntos:
    Strings.vi ‏13 KB

  • "update while typing" for tables?

    Does anyone know a way to do this?  There are no option for it and programmatically I can't do it. 
    - I can read the contents of the table
    - I can see what cell the user is typing in
    - I can detect a keydown? on the cell (so i know what the user pressed)
    - I cannot see the current text cursor position in the cell ("|ab", "a|b" or "ab|")
    - The table value does not update until the user stops editing the cell (clicks elsewhere, eg the 'SAVE' button, but whoah, that leaves me no overhead to validate data    )
    I made a post on the idea exchange (here) , but thought i would ask in here as well.
    Any ideas are welcome

    You can use a 2D array of string controls instead where the elements are set to update while typing. Seems to work just fine.
    Use classic simple strings or frameless silver strings for that "table" look.
    LabVIEW Champion . Do more with less code and in less time .

  • Transparen​t string controls while typing

    I have a transparent string control but would like it to stay transparent when activly typing on it, it changes to a white background when activly typing and I can not have this since the graphics underneith are important.  Is there a way to get rid of this.  The code is in 2011.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

    You can see if this gets you started, my initial thought was to intercept the Mouse Down? event of the string "control" and shift focus to a hidden string control to catch the typing.
    The transparent control is actually an indicator, and the hidden control is set to update while typing.
    No indication of the insertion point which is a bit odd, but like all things it is probably hackable.

  • 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

  • Apple Mail syncing while typing, multiple updates on BB for same message.

    First of all, thanks for looking and helping. Second, it's probably my fault as I am a tweaker often to my detriment. So, with disclaimers out of the way, here's what is happening:
    I have a MacBook Pro and my mail is IMAP from my GMail account. When I respond to an email on the Apple, using Apple Mail, WHILE I AM TYPING, the BB retrieves a NEW email with the latest installment of the email!!! Here's an example that just happened:
    Open email, start replying... "Paul, I wanted to explain"
    BB announces new mail with that sentence
    I continue typing... "why I like pasta"
    BB announces new email with "Paul, I wanted to explain why I like pasta"
    Etc., etc., etc.
    So, my work around it to go to gmail.com and write the email within that program as opposed to using Apple Mail on laptop.
    My BB is Tour 9630 with 4.7.1   and the Gmail app is 2.0.7, if it matters.
    The Apple is running OS X 10.6.2 and Apple Mail is 4.2
    Oh, Bluetooth is not turned on on either device.
    Let me know if you need any further info. Thanks again for looking!
    Peace.
    Solved!
    Go to Solution.

    I have the same problem.
     Just bought the MAC book Pro and while typing on Apple mail everything is syncing on my Blackberry,...This will go on until I finish the mail..Depending on the length of the mail, I can heave more than 15 copies of the same mail that is redundant and constantly updating. Frustrating. I did unchecked the box under preferences, mail box behavior but nothing happened. Has anyone figured out what is the solution?
    Thanks

  • [Problem] Updating Numeric Controls on a Tab Problem

    Using LabWindows CVI 8.0.1
    I have a UIR with a button on it and a tab control.  On the tab control there are 23 numeric controls.
    When the button is pressed the code reads a file and populates an array.  It then populates 23 controls on the tab.
    I have a constant array defined for the controls.  The button call back gets the panel handle and then loops through each control and populates it from the array of values.
    The problem I am seeing is if I click the button 22 of the controls update, the first one does not.  If I save the data (another button) it saves the values which are loaded (i.e. it knows the first control contains a value even though it is displaying 0.000). 
    If I click the button twice, then all 23 controls update.
    I added ProcessDrawEvents and ProcessSystemEvents but it made no difference.  However if, in my code I modified the callback to call the function that populates the tab controls twice it populates all 23 controls correctly first time. 
    Is this a known issue, or has anyone seen this before?
    Should mention that the code is compiled as a DLL and is called via TestStand 3.5.  It makes use of #include "tsutil.h" library.  There is also a ActiveX control on the UIR (not on the tab) which is a date picker.
    Christopher Povey
    Senior Test Systems Engineer for BAE Systems.

    Global:
    #define NumberOfCrosses 23
    const int CrossCtrlAzimuthHandles [NumberOfCrosses]   = { CROSSPOSN_X_CROSS_1,  CROSSPOSN_X_CROSS_2,  CROSSPOSN_X_CROSS_3,  CROSSPOSN_X_CROSS_4,  CROSSPOSN_X_CROSS_5, 
                                 CROSSPOSN_X_CROSS_6,  CROSSPOSN_X_CROSS_7,  CROSSPOSN_X_CROSS_8,  CROSSPOSN_X_CROSS_9,  CROSSPOSN_X_CROSS_10,
                                 CROSSPOSN_X_CROSS_11, CROSSPOSN_X_CROSS_12, CROSSPOSN_X_CROSS_13, CROSSPOSN_X_CROSS_14, CROSSPOSN_X_CROSS_15,
                                 CROSSPOSN_X_CROSS_16, CROSSPOSN_X_CROSS_17, CROSSPOSN_X_CROSS_18, CROSSPOSN_X_CROSS_19, CROSSPOSN_X_CROSS_20,
                                 CROSSPOSN_X_CROSS_21, CROSSPOSN_X_CROSS_22, CROSSPOSN_X_CROSS_23 };
    const int CrossCtrlElevationHandles [NumberOfCrosses] = { CROSSPOSN_Y_CROSS_1,  CROSSPOSN_Y_CROSS_2,  CROSSPOSN_Y_CROSS_3,  CROSSPOSN_Y_CROSS_4,  CROSSPOSN_Y_CROSS_5, 
                                 CROSSPOSN_Y_CROSS_6,  CROSSPOSN_Y_CROSS_7,  CROSSPOSN_Y_CROSS_8,  CROSSPOSN_Y_CROSS_9,  CROSSPOSN_Y_CROSS_10,
                                 CROSSPOSN_Y_CROSS_11, CROSSPOSN_Y_CROSS_12, CROSSPOSN_Y_CROSS_13, CROSSPOSN_Y_CROSS_14, CROSSPOSN_Y_CROSS_15,
                                 CROSSPOSN_Y_CROSS_16, CROSSPOSN_Y_CROSS_17, CROSSPOSN_Y_CROSS_18, CROSSPOSN_Y_CROSS_19, CROSSPOSN_Y_CROSS_20,
                                 CROSSPOSN_Y_CROSS_21, CROSSPOSN_Y_CROSS_22, CROSSPOSN_Y_CROSS_23  };
    const int CrossCtrlDistortionTolerancesHandles [NumberOfCrosses] = { DISTTOL_TOL_CROSS_1,  DISTTOL_TOL_CROSS_2,  DISTTOL_TOL_CROSS_3,  DISTTOL_TOL_CROSS_4,  DISTTOL_TOL_CROSS_5,
                                       DISTTOL_TOL_CROSS_6,  DISTTOL_TOL_CROSS_7,  DISTTOL_TOL_CROSS_8,  DISTTOL_TOL_CROSS_9,  DISTTOL_TOL_CROSS_10,
                                       DISTTOL_TOL_CROSS_11, DISTTOL_TOL_CROSS_12, DISTTOL_TOL_CROSS_13, DISTTOL_TOL_CROSS_14, DISTTOL_TOL_CROSS_15,
                                       DISTTOL_TOL_CROSS_16, DISTTOL_TOL_CROSS_17, DISTTOL_TOL_CROSS_18, DISTTOL_TOL_CROSS_19, DISTTOL_TOL_CROSS_20,
                                       DISTTOL_TOL_CROSS_21, DISTTOL_TOL_CROSS_22, DISTTOL_TOL_CROSS_23 };
    Function:
     // Get the panel handles.
     tsErrChk (GetPanelHandleFromTabPage (panelHandle, MAIN_PANEL_TAB, 0, &calibrationTabHandle));
     tsErrChk (GetPanelHandleFromTabPage (panelHandle, MAIN_PANEL_TAB, 1, &tolerancesTabHandle));
     // Get the cross positions.
     for (loop = 0; loop < NumberOfCrosses && error >= 0; loop++)
      tsErrChk (SetCtrlVal (calibrationTabHandle, CrossCtrlAzimuthHandles   [loop],            calibrationValues.crossAzimuthPosition      [loop]));
      tsErrChk (SetCtrlVal (calibrationTabHandle, CrossCtrlElevationHandles [loop],            calibrationValues.crossElevationPosition    [loop]));
      tsErrChk (SetCtrlVal (tolerancesTabHandle,  CrossCtrlDistortionTolerancesHandles [loop], calibrationValues.crossDistortionTolerances [loop]));
    No errors are returned to TestStand.
    Christopher Povey
    Senior Test Systems Engineer for BAE Systems.

  • How to create a numeric control (of any type) that can ONLY be increased or decreased by one 'unit' at a time?

    As in the title.  I wish to create a numeric control (no current limitations on its type) with a range of 1-10 (and a step of 1).  The only difficulty I'm having is that the user must only be able to increase or decrease it by 1 at any time.  The code initiated by this value change must have completed at least once before the value can be changed again.  This is because the VI's code is mostly contained in a while loop, and the control is read once every iteration and its last value must not differ by more than 1.
    Is this possible with LabVIEW 6.1 and if so, how?
    One of the solutions I've come up with so far is to disable the control immediately after it's read, and to enable it again immediately before it's read for the next time (I have to assume that the user is unable to click twice before the control is disabled).  Is this an acceptable method or is there a better way?
    I also had an idea of partially disabling a normal numeric control such that it could not be typed in - only the arrows remained operational.  However, i don't know quite how to do this.
    James
    Never say "Oops." Always say "Ah, interesting!"
    Solved!
    Go to Solution.

    Yes, i realize my solution needs the idea that followed it to be feasable in order to work properly.  My bad!
    I did wonder about using a combination like that, but I hoped it could all be done with one object.  Ah well - just means adding an extra little bit of code.  No probs.
    Thank you anyway.
    Never say "Oops." Always say "Ah, interesting!"

  • Strange appearance of numeric control

    Hi....
    I encounter a strange appearance of a numeric control, see the two screen shots below.
    Background: on a tabpanel, two attributes of several numeric controls are changed programmatically if I set a flag using a check box located on a different tab panel:
    - the control mode is switched from indicator to hot
    - the precision is changed from 6 to 4 digits to compensate for the space of the numeric arrows
    These changes are applied to three controls, but only the first (top most) behaves unexpected, while the others are fine...
    A) If both attributes are changed, the two upper controls look like this:
    that is, the left most characters of the upper control are somehow overlapping, giving the impression of a fat O.
    B) If only the control mode of the upper control is changed to hot, the following result is obtained:
    This makes it more obvious that somehow the two left zeros of the upper control are squeezed together.
    Interestingly, if I operate the upper control by clicking on the up/down arrow, the resulting display (1.0000E-3) is ok.
    I was very much afraid of posting this mystery which could well be a stupid error of mine, but being unable locating a problem in the code I thought it might possibly be related to the tab panel problem reported here
    Comments, suggestions?
    Thanks, Wolfgang
    Solved!
    Go to Solution.

    Hi Markus,
    thanks for looking into it.
    I have slightly modified the example which now even shows the more dramatic case A.
    Concerning your reply: I disagree with your guess!
    1a) The control is large enough, actually I am setting a precision of 4 to have the number short enough
    1b) If a number is too long, the usual behavior of a control is that you see only part of the number (or text for string controls), while here digits overlap.
    2) The control behaves properly if you change the order of the function calls, i.e. reverse the order of precision and control mode
    3) The control behaves properly if no tabpanel switch is involved: if you put the checkbox on the same tabpanel as the numeric control, everything is fine. This is actually how I found out, because in my original code the checkmark was a menu item until I decided to change it.
    So my guess is that the visual update sequence of the control/tabpanel is flawed.
    Wolfgang
    Attachments:
    bug.zip ‏6 KB

  • Trackpad dose not move while typing

    Hi i have 2 problems with my pc. 1. I cannot seem to move my mouse pad while pessing any keys e.g i press W,A,S,D and try move my mose its froze at that pont. i have tried to disabled the PalmCheck-Enhanced and nothing happens ive serced for weeks to find a sulution but i have found nothing that works. 2. Since ive updated to windows 10 (for free) i have the "command Prompt" window open and close with in a milisecond this is really fustrting because sometimes it will delete my text im typing or close a window sometimes nothing hapens. ive tried sercing for this problem and cant fine anything on it due to windows 10 is new.  Need quick replies

    I fixed this on Elantech doing this: 
    This was fixed by me with a simple regestry edit. 
    Open regedit.exe as admin, navigate to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Elantech\SmartPad
    Find the key named:
    DisableWhenType_Enable
    Double click and change the value to 0, close out and restart. Your touchpad is active while typing!
    I bet if you naviagate to the synaptics folder under the control subnode, there is a similar setting. 
    Tyler

  • Numeric control error handling

    Hi all,
    I have two question about numeric control.
    1) "How to handle invalid inputs?"
    Let say, I have one numeric control that can only accept 0 to +inf (Range). So negative input will be invalid data input. Whenever I typed the negative value on it, this control automatically changed back to default (min) value. What I want is that. Is there anyway to detect invalid user input? So that I can program whenever user input negative number, it will automatically change back to previous valid input (not default value).
    2) "How to assign the dynamic range of numeric control?"
    I used property node to assign the range but my problem is that. I assigned min 0.1, max 1.2 and increment 0.1 but I cant able to select 1.2 or sometime 0.1 by using increment/decrement arrow. Maybe because of floating points? And also I want to do when user input overrange value (eg.1.3) by typing, the value should go back to previous valid input.
    Any idea? Thanks

    You can choose how LV will react on entries exceeding a limit. The default is, that LV coerces the value to the limit. But you can also ignore the limit and the user can enter any value.
    Nevertheless, if you ignore the limits, you always have to check in your software for invalid values!
    Regarding 2) i couldn't reproduce what you described. Maybe you should post a little example....
    For the 2nd part of your question, please see my answer above...
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to change numeric control and indicator radix programmat​ically?

    Hi All,
     I need to know how can we change the radix of numeric control as well as numeric indicator while program is running.
    Regards,
    Pramod M G
    Solved!
    Go to Solution.

    Right.  Sorry   Display Format -> Format
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Keynote crashing every 2-3 minutes while typing

    Hello All,
    I'm going slighty nuts, because keynote (latest version and revisions) are crashing every 2-3 minutes while typing.
    I make presentations for a living and the situation is getting a litte precarious.
    So... I did the full monthy: uninstallation, disk permission repair, reinstallation... permission repair...
    The weird thing is, my business partner has an identical machine and has no problems...
    Any clue? Buggy memory? buggy gpu memory?
    Thanks
    Michel

    There are two options, try option 1 first, if that does not work use option 2:
    1 -  a custom repair for Keynote 6.1
    Try this repair for iWork applications, its sorted out many similar problems in the past
    ensure you complete all the tasks and in the order shown:
    1  delete all the iWork applications if you have them, not just Keynote by usingAppcleaner from Mac Update to      do this, its freeware
    2  restart the Mac;   Apple menu > restart
    3  immediately after the start chime,  press the shift key until you see the Apple symbol.
             let it fully boot up,  it will take longer as the OS is repairing the drive
    4  when fully booted, go to Applications > Utilities > Disc Utility; click on the boot drive  then First Aid tab and      click  repair disc permissions
    5  when complete, restart the Mac normally
    6  install Keynote from the Mac App Store
    Please report back to let us know if this helped.
    2  - Clean install Mavericks by      back up all your work and user files, repartition the hard drive,
    then re-install Mavericks
    To reinstall OS X, you must be connected to the Internet
    Choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    If you’re not connected to the Internet, choose a network from the Wi-Fi menu (in the top-right corner of the screen).
    Select Disk Utility, then click Continue.
    Select your startup disk on the left, then click the Erase tab.
    Choose Mac OS Extended (Journaled) from the Format menu, enter a name, then click Erase.
    After the disk is erased, choose Disk Utility > Quit Disk Utility.
    Select Reinstall OS X, click Continue, then follow the onscreen instructions.

  • Numeric control outside limits

    Hello,
    I have a numeric control and I have set data entry llimits and selected coerce. It behaves fine using the increment/decrement buttons and when I type data in.
    I want to be able to load a preset value read from a text file into the control . The problem is that using a local variable or property node to set the value the limits seem to be ignored.
    Is there a way to update the control so it checks the limits or a better way of loading a preset value (the value will be different depending on the informtaion in the text file).
    Thank you
    Solved!
    Go to Solution.

    Use "in range and coerce" before applying the value programmatically and handle exceptions as needed.
    LabVIEW Champion . Do more with less code and in less time .

  • While typing characters disappear

    While typing an email or entering search text in Safari after about 3-4 letters are type they start disappearing or the word totally disappears.
    This is sporadic, and can not make it happen.
    Restarting does not seem to fix the problem.
    What do I look for ?
    MacBook Core 2 2Ghz 10.6

    Since the last Safari update I have run into the same issue a few times on my iMac.  Never had the issue prior to this update.  I just quit Safari and relaunch it and it works properly, at least for a while.  As for th eissue happening while using mail, are you making sure you are not touching the track pad while typing. I have seen a lot of people do that by accident.

Maybe you are looking for

  • Links not working in Reader for some

    Hi, I'm making PDF documents from InDesign and then opening up the PDF in Acrobat Pro on my Mac and adding in links. Once I save and open the PDFs again, I'm able to click on the links in both Pro and Reader and they work on my computer, but for othe

  • Mass change of vendor purchasing data: price cat.(LFM1-MEPRF)

    Hi all, I faced a problem of Mass change vendor's price cat. IN T-code XK99, I select table LFM1,LFM2 for the initial screen. Then i input a vendor in the selection criteria screen, It always say no data selected. But actually the vendor is existed!!

  • How to combine rows with small numbers into single "other" row?

    How can I combine rows with value 6(for example) or lower to single row representing the SUM of all this values and label OTHER, so the pie chart will have a chance to display all small values combined? I'm using Numbers 09

  • Test data for mb01

    Hi, Can we get some test data for posting GR in mb01?If yes, where can we get the data? I am on a 4.7 ides system. Regards, CA

  • One connection user with full rights for a bunch of schemas

    How can I give all rights of one user to another without declaring each object privilege one by one? For my application I would like to devide the data to maintain into four different schemas to. Never the less I would like to connect to the db by on