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

Similar Messages

  • Invalid input event for numeric control

    Need to catch the event when invalid input being through out, customer doesn't like the notify.
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

    I haven't had a big problem with this, and I plan to continue to use numeric controls instead of making everything strings, but it does seem strange that CVI doesn't catch this.  I like the automatic range checking options, the programmable increment/decrement buttons, and the ease of use.
    You can use a quirk in CVI to catch this: if you enter an invalid number like 1.2.3 or 3...14159 or 1-2, CVI triggers EVENT_VAL_CHANGED, but leaves the original number unchanged.  So you can create a case in the callback for the numeric control for EVENT_VAL_CHANGED, and in that case check to see if the value is the same as the previous value.  If it is, assume an invalid input.  EVENT_VAL_CHANGED does not get fired if you just press Enter without changing the value.
    There are a couple of limitations or drawbacks to this approach.  It doesn't save your invalid entry, so you have to enter the whole thing again instead of just correcting your mistake.  EVENT_VAL_CHANGED also gets fired if you use Delete or Backspace, even if the number you end up with is the same as the previous.  So this approach will flag that as an invalid entry.
    See the attached example.
    Attachments:
    TestInvalidInput.zip ‏6 KB

  • Numeric control to hex(in numeric control) conversion ?

    hi 
    I have n.o (numeric control )  which appears as hex display ,  I want to convert it to decimal number and reverse
    can any please show with help of example please

    Since you want to convert the number:
    There is a very elegant way to do it in the control:
    # Place a numeric control on the FP
    # Change the representation to a 'binary' I/U 8/16/32/64 (my example is with I32
    # In the display properties enable the advanced mode and enter all the formats you want to use
     (Hint: new line is shift-enter)
    You can also add some indication like
    dec:%d
    hex:%x
    bin:%b
    The nice thing is that all conversion is made by the FP on the fly whatever numerical format you change. Hey mom, look without any wire
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • 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

  • Silver numeric controls

    Hi,
    I noticed a small bug while converting some front panels to silver style in LV 2014.
    If you replace a numeric control of another style, which has display increment/decrement buttons turned off, with a silver numeric control then the silver control appears with the buttons missing but the thicker boarder where they would be in place. If you cycle the increment/decrement buttons on then off the thick boarder vanishes
    e.g replace this modern control (with buttons turned off)

    I thought I had but lets try again
    Replace this modern control with buttons off
    With a silver control to get
    Cycle buttons on then off to get

  • 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

  • Why numeric control accept aef but not cds characters?

    I place a numeric control on the front panel. It is just a simple U32. When I click on it, I can type in number, its also accept letter aefpz but when I type in cdor s, these three letters do not appear. Why the numeric control accepts some letters and rejects others?

    Hi trout00
    Some letters are accepted because you can enter numeric values like 13u5 which is 13.5 micro or 1.35e-5. The other letters are for the different prefixes.
    Hope this helps,
    Nick

  • 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

  • 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

  • How do I get rid of blank pdf windows that appear in mission control? My adobe acrobat program isn't even open.

    Everytime I go into mission control I see blank pdf windows. I can't get rid of them except when I restart my computer. Otherwise I have to put them all into 1 desktop in mission control so they don't clutter my other desktops. The windows only appear in mission control and not in the actual active desktop. I've tried closing any open application that uses pdfs but that doesn't help. Any ideas on what could be causing this?

    Hi Bill,
    I came to the problem this morning with a fresh perspective and have solved the problem: I realized the text was in Cambria, so I changed it to the dependable Times New Roman. I created the PDF and NO pound signs appeared scattered around in the PDF.
    Ay, fonts!
    Thanks for replying, and have a great day!

  • Address Book entries have very strange appearance

    Since updating to Leopard, my Address Book entries have a very strange appearance. When I copy and paste them the info is correct, but in the Address Book right-hand window the name (first and last) appears like gobbledigook, as if it was a strange font that is almost like mathematical equations
    With my utmost thanks in advance (as ever) if anyone has the answer to this weird problem
    Kind Regards
    Bernard

    Thanks a million for taking the trouble to respond Ashka.
    I was only reminded of the problem when I opened a web page and saw a similar effect on a couple of lines as I had in my Address Book and having discovered your response, I followed your instructions and on scanning through my fonts, I also turned off "Helvetica Fractions" (as the gobbledigook looked as if it might be fractions). One of these actions seems to have done the trick.
    Whilst looking for a particular font a while back, I ended up downloading absolutely hundreds, but it wasn't until I foolishly installed them all that I realised what a mistake I had made, as Word wouldn't even open, as it couldn't cope with the number of fonts. So I had to keep deleting fonts until Word was happy and even now, I still have far too many fonts. I kid myself that I like having so much to choose from, but truth is I am never going to use 90 per cent of them. Moreover, having discovered this problem, I wonder if there are any others in there that are going to cause me problems in the future?
    Again, can't thank you enough for your trouble
    Best Regards
    Bernard

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

Maybe you are looking for

  • Buying new PC for Adobe, need help

    Hi everyone! First thing, I apologise for my English, I hope you can understand my writing. One of my best friends is photographer and graphic designer and she asked me for help buying a new PC because the old one broke (it was a laptop). She needs a

  • An unknown error occurred while executing the PowerShell script:

    Hello all, Not the most descriptive title, granted. I'm hoping this may prompt the next version toprovide additional valuable content. Kindly requesting any help on this problem. I'm running VMM 2012 R2 version 3.2.7668 When I try to look at properti

  • How do I create such an effect in Photoshop CS6?

    Hi All, I am not a big expert in Photoshop, but I know how to use it. I hope I have chosen the correct community for this question. I want to create a design similar to something I have found in the internet. I have an image with a white background a

  • If I delete photos in "iPhoto" will those photos also delete in the application "Photos"

    Hey guys! I was wondering if I delete photos in "iPhoto" will those photos also delete in the new application "Photos". I transfered all my photos to "Photos" the second it came out, so I'd find it strange if I still needed "iPhoto" Thanks a lot!

  • New problem in Safari 2.0.4?

    If I go to the site http://www.securityawareness.blogspot.com/ I get a popup that looks like a Mac dialog box saying it's from scanner.malware.alarm.com with Cancel and OK buttons, but it also greys out most of Safari's menu items, and it must be cli