Sloppy text ... in numeric control

Our software validation folks are banging on my latest app. One of them went to a numeric control and tried to input text. He said it's"weird". I think it looks like garbage. I have never noticed this before. Any way I can get rid of it?
PaulG.
"I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

PaulG. wrote:
crossrulz wrote:
Yep, you can type anything into a numeric control (silver, modern, classic, and system).  But when you hit enter or click out, it goes to 0.  I don't know of any way to get rid of this.
No, you can't type "anything". Some of it appears in the control and some of it doesn't. It looks like garbage.
Sorry, any alpha, numeric, plus, minus, period, and/or space.
Probably has something to do with being able to handle all of the formats (hex, exponential, decimal).
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • How to stop text labels on numeric controls from disappeari​ng

    Got a nuisance problem I'd like to correct.  When I've got a previously defined numeric control (such as a slide or knob) with text labels, upon entering the control properties window and selecting the "text labels" tab, the first label defaults to clear/empty.  This is a nuisance because the text has to be retyped every time when modifying the text labels.  Is this a bug or a feature?  Is there any way to turn it off?  Thanks.

    "I've always wanted to be the first to discover a bug in a new LV release! "
    Thank you for sharing that with us. You are helping to make LV even beeter than it is.
    regarding your quote "I've always wanted to be the first to discover a bug in a new LV release! "
    Please see the LabVIEW Champions Blog titled "The Leaders Lead" that can be found here.
    http://forums.lavag.org/blog/champions/index.php?
    How is your nose?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Numeric Control - Text and Background Color changes when operating inc/dec arrows

    Hi,
    I'm developing an application that has a panel with black background and green or red numbers. I've added numeric controls and configured the text color and text background color attributes accordinglingy. I set the numeric control to hot or validate  control mode and show the inc/dec arrows, since I want to be able to incr/decr the numbers.
    The problem is that when I run the application and I hit the inc/dec arrows, then the colors inside the numeric control frame become inverted: the black background becomes white and the green number becomes cyan. I've created a callback function assosicated with the numeric control and tried forcing the text and background color, in the EVENT_VAL_CHANGED section, using the SetCtrlAttrribute() function, but to no avail. Also added ProcessDrawEvents didn't help.
    When I mouse click again outside the numeric control, then it reverts back to its original colors (green text, black background).
    Any suggestions as to how I can fix this ?
    I want it to keep its original colors at all times, even when I'm clicking the incr/decr arrows...
    Kind regards,
    pgriep
    Solved!
    Go to Solution.

    Ok, now I see what's happening.
    The effect you are seeing is a resul of standard numeric control behaviour combined with the black bcakground: when you use arrows to increment/decrement a numeric control its value will be automatically highlighted; on the default background you'll see the white area and figures highlighted in black (white numbers on balck background). If you set the background to black the system will automatically change the colors used to highlight the text, and that's what you're seeing.
    By the way, this does not happens if you use up and down keys on the keyboard: text is not highlighted so colors are not changing.
    Additionally, this is not only valid for numerics: see the behaviour of the string controls on the bottom of your panel when you tab up to them. This effect does not happen on controls set as indicator like the big clock in the upper part of the panel.
    The only way I can see to overcome this behaviour is to hide control built-in arrows and create your own up and down buttons with which you can manipulate the numeric control. I am attaching a modified version of your project with buttons on the left numeric; sorry for the poor aesthetic:  I have used some arrow icons I had on my disk, you may want to create your own arrows with the colors and shape you prefer.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?
    Attachments:
    ModifiedApplication.zip ‏9 KB

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

  • Resize numeric controls

    If I RIGHT CLICK on a Numeric COntrol and select 'Properties', the appearance tab show's the 'SIZE' as Height=23 & Width= 78. However, the Height is "grayed Out" and I cannot change it. I have investigated the "Custom" approach will does allow me to change the Font Size attribute, but the actual control still has the same 'height'.
    QUESTION:
    How can I change the height to a size that will allow me to use a 74pt font...a very large indicator.
    ...thanks everybody for the much anticipated reply.
    Solved!
    Go to Solution.

    Ciphertech,
    You cannot change the height of a numeric control or indicator directly.  Select the value displayed and then go to the font menu to select the size.  The indicator size will change to accomodate the font. If the exact size you want is not available on the menu, choose the closest available size and then use the Smaller or Larger keyboard shortcut to get what you want.
    Another way is to use the Numeric Text.Fontize property node.  Set it to the size you want.
    Lynn

  • Numeric control question! help me.

    can anybody help me?
    For the numeric control,I want to achieve the funciton that when the numeric at range of 100-1000,the increment is 100.And at range of 1000-10000,the increment is 1000.
    I attempted to realize it,but I found,case make the numeric reach 1000 use click up button to add 100 method,follow-up click down button,the numeric can't return 900.
    I'm stumped, so I turn to you for help & inspiration.
    any help would be more than welcome!Thank you in advance!
    Eric

    There are many alternatives:
    You could hide the real increment/decrement buttons and replace them with small booleans. Now do everything with code. You could even wrap it into an Xcontrol (LabVIEW 8 only).
    You could also use a value change event on your numeric control and compare previous and current values whenever the value changes. Coerce the input to the correct value (depending on the range and the direction of change) and write it back to the control using a local variable before handing the value to the rest of the code.
    If there are only ~20 allowed values, replace it with a text ring containing the sorted  list of values. Now the increment buttons will step through all allowed values only.
    etc.....
    LabVIEW Champion . Do more with less code and in less time .

  • 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

  • Issue in wrapping of text in TextEdit control

    Hi,
    I'm developing an occasionally connected application using NetWeaver Mobile 7.1. In one of the view, I use TextEdit control to display the address information where the address is a multiline text data. During testing of the application in the simulator, the wrapping of text in the TextEdit control is not working properly. The wrapping property of TextEdit control is set to "soft" but the text is not getting wrapped. Even I tried the other option "hard" wrapping but it throws some error while building of the application.
    Please suggest a solution to do wrapping of text using TextEdit control.
    Thanks in advance.
    Regards,
    DVR.

    Hi Nipun,
    The rows and cols properties are already set and also the data is multiline but the text is not wrapping.
    Say the properties of a TextEdit control rows is "4" and cols is "30" was set. The data is also a multiline text say each line has more than 30 characters. During wrapping of text with in TextEdit control the first row should have only 30 characters and rest should be wrapped off to the next row and so on.
    But during execution what happens is the text is not getting wrapped instead the first row itself has all the characters of first line of the text and second row has next line of text and so on. The text in a row can be scrolled through using horizontal scrollbar.
    My need is the horizontal scroll bar should not come and the text need to the wrapped off with number of cols specified.
    Regards,
    DVR

  • 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!"

  • How can I highlight the default data in a numeric control when a VI loads.

    I have a VI that features a string constant that asks for a numeric response via a numeric control, a "next" button that enters the data (controlled by the enter key), and two leds, one that lights if the data entered is correct, and one that lights if the data entered is incorrect.  Is there anyway that I can make sure that when this VI loads, the zero in the numeric control is highlighted?
    Currently the opeator must use the mouse to highlight the zero in the numeric control, type the number and press enter ("next") to advance in the program.  I want the operator to be able to simply type the number after the VI loads and press enter.  This would require the zero to be highlighted when the VI loads.
    Is there anyway that I can format the numeric control to do this?

    If you set the key focus of the control to true (Right click on
    control->Create->Property Node, then on the property node, select
    "Key Focus") before anything else, it should be highlighted when you
    run the program.

  • Can you use the value from a numeric indicator in a numeric control?

    Hi!
         I have to develop a code where I have to find the maximum value of a waveform and draw a line at 50% of the value. So I chose to find the amplitude of say 10 cycles of waveforms and found the maximum value out of the amplitudes. 
    But my real problem is, I have to use the maximum amplitude value that I get from the max. array VI and put it back in program to calculate the 50% value. 
    So is it possible to use the value from a numeric indicator and put it in a numeric control? Like in MATLAB or C, you give the variable a name and use it later to do any computations. Is it possible to do something similar in LabVIEW? 
    Solved!
    Go to Solution.

    Hi!
         Thank you very much for taking some time out. I have been trying to do this since 2 months and I am stuck right where I am.
    The situation is, I have to calculate the amplitude of the irregular waveform for a few trials and then find the maximum amplitude out of the trials and display a line at whatever % of amplitude the user chooses. I tried using property nodes but I am getting Error 1055 for some unknown reason. Then I decided to draw the line using DC offset but it turns out it calculates the amplitude each time and so the line keeps dancing everytime. Now my challenge is to have the amplitude calculated for say, 20 loops and then calculate the max from that. I ran out of ideas so I am posting here. I am using LabVIEW version 8, and I'll upload a few of my attempts. I hope I am not troubling you'll much.
    Attachments:
    amplitude display.vi ‏217 KB
    amplitude display 1.vi ‏148 KB
    Using property node.vi ‏56 KB

  • 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

  • Dynamic header text in table control - Dialog programming

    Hi All,
    I have a table control on one of my dialog screens.  I need to dynamically change the column header texts on this control in my PBO.  Does anyone know how to do this?  I have found all kinds of ways to modify the other characteristics of the fields at run time in the PBO (active, input/output, invisible, etc.) - but not to change the header text!  Any help is appreciated.
    thanks,
    Matt

    Hi Hymavathi,
    I appreciate your help!  This didn't solve the issue, however,...I have used the method you'd mentioned before (many times) for setting it inside the loop at screen:
    %_<screenname>_%_APP_%-TEXT = <text something>.
    - but only in ABAP reports.  It doesn't seem to recogize it (the table control column header text) within a dialog program.  I keep getting a compile error. (saying that the %_<screenname>_%_APP_%-TEXT doesn't exist.
    I tried the suggestion that you stated below (from lateesh) - yet it only let me place i/o field in title text area (not the column header text).  Am still searching...

  • Default value of a numeric control

    Hello I want to fix the default value of a numeric control using his node property but I haven't found this attribute. It's possible to fix this value through the node property of a block?
    I've tried to fix it, right-clicking on the control....properties....default value....but when I save the vi's and I reopen the vi's, his value has disappeared and value is set 0.
    Do you know another way to fix this value?
    Thank you in advance
    Larson

    The default value is only relevant when the VI is loaded into memory, not every time you start running it. Your code is probably changing the value to some out-of-limit value (probably 0 if your calculations are incorrect) and it is coerced to the minimum. If you want a value to remain constant, don't change it.
    The answer is simple - DON'T RUN CONTINUOUSLY! If you want something to repeat, use a loop. That way, the value will only need to be read once, when the VI starts running. If this didn't help you, you should post the VI and explain more about your problem.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • With Traditional NI-DAQ Compatibility VI's the acquisition locks when I press the increment or decrement button of a numeric control.

    Hello all.
    I´m using a PCI-6220 and the Traditional NI-DAQ Compatibility VI's to make the acquisition that is in the attached VI. But when I click the increment/decrement button on the numeric controls my acquisition stops. In the same PC I made the same experience with a 6040 and I could not see this problem. I tried with the PCI-6220 with the DaqMX VI's and I could not see this problem too, for these reasons I believe that the problem has something to do with the Traditional NI-DAQ Compatibility VI's.
    I built machines that can have one or the other board (depending if it is low-end or normal). Does somebody knows the solution for this problem?
    Thanks in advance.
    Paulo Carmo
    Attachments:
    experiencia.vi ‏49 KB

    Hello
    For what I’ve seen on National web site, using the “Traditional compatibility VI’s”, it sould be possible to control a NI-DAQmx using code written in NI-DAQ Traditional. This information was obtained from the following NI link:
    http://digital.ni.com/softlib.nsf/954feaeea92d90918625674b00658b83/9d67f671bcc6850586256e630059308b?...
    Please read this information and then tell me something please.
    Best regards!

Maybe you are looking for

  • How do i move itunes from one profile to another?

    does anyone know how to move my itunes from one profile to another?

  • Upgrade Failed, WL Express 6.1 to 8.1

    Last nite, we finally upgraded our WL servers to 8.1 from 6.1 (Express). This lasted about 4 hours, and then the connection pool started throwing a massive amount of errors. (so much so, that we had to roll back @ 6 am this morning). Configuration: W

  • Issue In Distribution Line

    Hi All, We are currently using 12.0.4 to migrate to 12.1.3. we have facing one issue in distribution line I am not able to select Withhold Tax Group because Withholding Tax Group column is freeze. Even I enable Withholding Tax Group on my supplier. R

  • Push data from XI to BW 3.1c ??

    Hi Gurus, Can anyone tell me, is it possible to push data from XI to BW 3.1c for a Non-SAP Source System?? and how ? any document links are welcome. [email protected] Cheers Praveen Message was edited by:         Praveen Vujjini

  • Copying & pasting clips question

    We're trying to copy a clip and paste it right above the first one, but it REALLY wants to go to track 1 every time. We looked it up in help and here's what it says: "Adobe® Premiere® Elements 8 pastes clips to the Video 1 or Audio 1 track at the loc