Range of number in numeric control

hi,      im new to this program and im trying to generate a range of number (ex. 5.0 1.0 0.25 and 0.10) using a numeric control. can anyone please shed some light? thanks.

It is not entirely clear what you really want, but you could just create an array control showing 4 elements. For that, you would first drop an array container on the front panel, the drop a suitable numeric control inside it. Now resize the container (horizontally or vertically) to show as many elements as you want.
On the block diagram you would get a 1D array terminal.
Message Edited by altenbach on 04-08-2007 07:50 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
array.png ‏2 KB

Similar Messages

  • Setting Range for a Digital Numeric Control

    Hi,
    to control the numeric range of my Numeric Controls i wants to read the
    limits from an ini-file. To this point no problem. But how can i set the
    minimum and maximum values to the control? I created an attribute node,
    but there is no range property avaible?
    Is there a way to do that?
    regards
    Henrik

    Thanx, in the next weeks i will start with 6i and so i will wait.
    Henrik
    Greg McKaskle wrote:
    >
    > > to control the numeric range of my Numeric Controls i wants to read the
    > > limits from an ini-file. To this point no problem. But how can i set the
    > > minimum and maximum values to the control? I created an attribute node,
    > > but there is no range property avaible?
    > >
    > > Is there a way to do that?
    > >
    >
    > If using LV6, the attribute node has properties for min, max, incr, and
    > range mode. Previous versions didn't; so can do the feedback and
    > filtering on the diagram, but not by setting properties/attributes.
    >
    > Greg McKaskle

  • How to modify input range (DAQ assistant) with a numeric control ?

    hello every one
    I am currently working with the NI USB-6218 acquisition card.
    I would like, in order to acquire a signal, to be able to choose the input range of the DAQ assistant with a numeric control ( and not by opening the DAQ assistant window ) (like the "number of sample" and the "rate" entry...)
    Is it possible and if yes, how ?
    Thanks so much in advance for your answers !
    Solved!
    Go to Solution.

    hello
    sorry I forgot it. but after spending a few hours on the problem this morning, i solved it Apparently, I corrupted the general DAQmx assistant last friday. By restarting my computer this morning, this issue was solved and I was able to transform the constant into command for the input range.
    Thanks a lot for your help !!!
    Guyua

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

  • 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

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

  • 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

  • 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

  • Dynamically set the upper limit of a numerical control

    I want to dynamically setting the upper limit of a numerical control. The maximal value that is allowed to input is calculated by the code, so that if the value input by the user exceeds the upperlimit,  a warning comes out and the input value is automaticaly reset to zero.
    I wired the calculated upper-limit to the property node of the numerical control using ''Data Range > Maximum" property, but it does not work as I expected.
    Anyone has suggestion on this? Thanks a lot.

    Can you attach your code?
    Dejun wrote:
    ... but it does not work as I expected.
    I cannot read your mind. What do you expect? What to you see instead?
    Overall, you are in a catch22 scenario if I understand you right. If you set the max of the control to coerce to a certain value and you enter a larger value, it will be coerced to the upper limit and the code does not see the original out-of-range value and you cannot successfully test it with a comparison operation. Maybe you can set it to "ignore" instead of "coerce" or not even set an upper limit. Simply use "in range and coerce" and reset the value under the desired conditions (e.g. via  a local variable) before handing it to the rest of the code. You could even wrap this into an xcontrol.
    LabVIEW Champion . Do more with less code and in less time .

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

  • 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 ǝɥʇ'

  • Numeric Control Disable

    Hi, I have a numeric control. I want to disable the option of having the user enter a number and hit enter. I only want them to be able to use the up and down arrows to change the control. Is this possible and how do i implement this? Thanks!

    Wait...I posted the wrong one
    EDIT: Actually I didn't post the wrong one...When you save this make sure you save it disk then place the control on the front panel....I added it the block diagram via drag/drop, but came in as a constant (which I converted to a control), and it didn't work right....So save it, then add the control to the front panel via the controls pallete.
    Message Edited by TWGomez on 04-22-2008 07:15 AM
    Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
    using LV 2010 SP 1, Windows 7
    Attachments:
    Control 1.ctl ‏5 KB

  • Displaying hex values when editing a numeric control

    The hex display is removed when editing a numeric control (in Control Settings) in cvi 2012. Is this a bug or am I missing something?
    Solved!
    Go to Solution.

    I have informed our R&D department of the format of the control settings in CVI 2012 . I have filed a Corrective Action Request (CAR# 379345) on this issue, but can not guarantee when this behavior will be fixed. You can check if this issue has been fixed in future versions of CVI by looking for the CAR identification number listed previously in the CVI Bug Fix Information.
    Regards,
    Anjelica W.
    National Instruments
    Applications Engineer

  • Controlling numeric slider with numeric control

    Hello,
    what i have is a numeric slider and
    a numeric control.  i would like to be able to move the slider and have
    it update the value in the numeric control and vice versa.  the problem
    is that i can update the value in the numeric control when i move the
    slider, but i can't update the slider if i try to change the value in
    the numeric control.  i was trying to use the 'value' property node for
    each of them and and wire each of the controls to the opposite property
    node.  i know they are both control but i thought if i change the
    'value' to an input then it may update.
    i have attached the vi.
    thank you
    Attachments:
    numeric_slider.vi ‏10 KB

    AdamKrzy16 wrote:
    Any help or insight would be appreciated beyond measure!
    Well, since the event structure only executes when one of the controls changes, it is blocking the loop. Dataflow in action!
    A quick solution would be to make the event structure "transparent" by adding a short and empty timeout case. Now just use a feedback node to retain the existing value if the controls did not change.
    There are probably definitely better ways to do this, but they would require more fundamental changes to your code.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    PID LabVIEW Program_slider try number 2MOD.vi ‏282 KB

Maybe you are looking for

  • Use G5 iMac as external monitor/display for Intel iMac?

    I have a 24" Intel iMac and a 20" G5 iMac (which is sort of mothballed now).I was wondering if it is possible to use the older iMac as an external monitor, mainly to save the expense of buying a "proper" external display when there seems to be a perf

  • How to store images in BLOB field in MySql database using java

    Hi.... Currently am able to store character string into BLOB using byte array....in MySql. but i cannot store images or pictures....... to do this.........please help me out............... Thanx..........:)Bye...........

  • Error on Java Stored Procedure

    I am trying to create a Java Stored Procedure that I will be calling via a trigger on the OP metadata. I have deployed my Java code, created a PL/SQL procedure "AS LANGUAGE JAVA" etc, and verified that the procedure works in a schema on the same inst

  • Previous Employment data

    Hi, Is there any application in the ESS for the Previous Employment data(info type 23) ? Thanks, Anumit

  • What is Virtual Key Figure ?

    Hello, I would like to know about Virtual Key Figure. What is Virtual Key Figure ? How to we created ? what is use of Virtual Key Figure? Thank you Anup G shah