How do I prompt a user to enter numeric data while a vi is running?

I am writing a Labview vi that to calibrate angle sensors. I need to prompt the user to enter numeric or string data for the low and high angle points so the vi can then calculate the span based on these values and the a/d output differences at these two points. I can't use preset points because the angle data is resolute to 0.1 degrees, and having the user raise or lower a boom to a predefined point is not within reasonable expectation. I would be much obliged for any help that is offered.

Build a subVI that has two numeric controls for the user to input the data (name them something appropriate like "High Angle" and "Low Angle").
Add and "Enter" button to the front panel.
Set the subVI preferences to include Open Front Panel When Called and Close Afterwards if Originally Closed. these are in Windows Appearance, Customize.
Put a delay (say 50 ms) and a while loop on the block diagram to wait until someone presses the button.
Connect your front panel controls to outputs on the connector pane.
This will pop up a dialog type of window when you need the user to input data. And make the dialog window disappear when done. You can also add valid data checking to the subVI and whatever else you need.
Rob

Similar Messages

  • How do I prompt a user to enter in a string name and set it so it can be used as an input for a DLL

    I was having problems entering in a string name and setting it. Any suggestions.

    Entering the string is easy. Just use a string control.
    To setup the Call Library Function, right click on it and select Configure. Type in the path to the DLL (or use the Browse function) and then use the Function Name dropdown box to select the function within the DLL. From here, you have to setup the parameters. The return type parameter should already be selected in the Parameter drop down box, so click on the Type drop down box and select the type of parameter that the selected function will return. From there, click on the Add Parameter After button to add an input parameter and then select the type of parameter. Continue doing this for all of the input parameters to the DLL. For strings you'll see a new drop down box appear for String Format. Choose the
    format that the DLL expects.
    You need to know what the DLL is looking for. Have fun with it.
    Rob

  • How can we prevent a user from entering a value in Parameter Field?

    how can we prevent a user from entering a value in Parameter Field and Select-options Field?

    make it invisible, make it inactive, make it display only.
    if the field is not there or not to be seen the user WILL have problems inputting data.
    BUT once the field is there you can NOT prevent that the user fills it with data.
    all you can do is on PAI check if the data the user inputted was good or bad, and clear his inputs, but you can NOT prevent him inputting something.

  • How to Restrict user to enter the data in CAPS ONLY

    Hi,
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    can any one help me on this.
    Karthik

    Hi,
    h1.
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    -------u need to set the CSS class for this item
    Regards
    Meher Irk
    Edited by: Meher Irk on Oct 24, 2010 11:16 AM

  • I don't want to allow a user to enter a date that is before January 2014

    I don't want to allow a user to enter a date that is before January 2014. I want to restrict users from entering a date that is or prior to December 31, 2013 in a date field. Is this possible?

    Seems like it is a little more complicated just to create a new Date() object in livecycle...
    the way I found to create a new Date() object is using the dateTimeEdit pattern to be 'date{EEEE, MMMM D, YYYY}'
    then u can create a new Date
    var date1 = new Date(DateTimeField1.editValue);
    date1.getTime();
    or
    you can also click the following link and download the pdf from the blog...
    Adobe LiveCycle Designer Cookbooks by BR001: Date handling in Livecycle Designer ES forms
    using XFADate object make it easy to manipulate dates with javascript
    The XFADate object created by BR001 is very good but to be able to see if a date is prior to another date you can just add this function in the object script..
    you can add that function at line 200...
    that.isPriorTo = function(date) {
         var toDate = newDate(date);
         if (isNaN(this) || isNaN(toDate)){
              return false;
         } else{
              var interval = this.getTime() - toDate.getTime();
              if (interval > 0){
                   return false;
              } else{
                   return true;
    To use that function above you can just use this code:
    if (XFADate.newDate(dateFrom).isPriorTo(DateTo)){
         //dateFrom is prior to dateTo
    hope this help

  • Prompting the user to enter Parmeters

    I am trying to create a parameter code that prompts the user to ask for input dates between Date1 and Date2 my code is below. How can I correct this ?
    WHERE
    ( OI_ADJUSTMENT_DTL_PAYMENT.RESP_GUAR_NBR=OI_ADJUSTMENT_HDR_PAYMENT.RESP_GUAR_NBR
    and OI_ADJUSTMENT_DTL_PAYMENT.SUPP_PAT_NBR=OI_ADJUSTMENT_HDR_PAYMENT.SUPP_PAT_NBR
    and OI_ADJUSTMENT_DTL_PAYMENT.ADJ_HDR_ID=OI_ADJUSTMENT_HDR_PAYMENT.ADJ_HDR_ID
    and OI_ADJUSTMENT_DTL_PAYMENT.AR_PROC_SET=OI_ADJUSTMENT_HDR_PAYMENT.AR_PROC_SET)
    AND OI_REVERSAL_PAY_ADJUSTMENT.REVERSAL_DT BETWEEN @variable('Enter Begin Date MM/DD/CCYY')
    AND @variable('Enter End Date MM/DD/CCYY')
    AND OI_ADJUSTMENT_DTL_PAYMENT.TABLE_TYPE = 'C'
    Thanks!

    If you are simply running SQL statements in the worksheet (ie F9), you can use either substitution variables or binds as follows:
    Substitution variables:
    REVERSAL_DT BETWEEN to_date('&begin_date', 'MM/DD/YYYY') and to_date('&end_date', 'MM/DD/YYYY')
    Binds:
    REVERSAL_DT BETWEEN to_date(:begin_date, 'MM/DD/YYYY') and to_date(:end_date, 'MM/DD/YYYY')
    If you are running your statements as a script (ie F5), you can use substitution variables as follows:
    accept begin_date char prompt 'Enter Begin Date [MM/DD/YYYY]:'
    accept end_date char prompt 'Enter End Date [MM/DD/YYYY]:'
    select ...
    from ...
    where ...
    and REVERSAL_DT BETWEEN to_date('&begin_date', 'MM/DD/YYYY') and to_date('&end_date', 'MM/DD/YYYY')
    You can use bind variables when running as a script (F5), but you need to use substitution variables to prompt the user for values, so for your case, there wouldn't be a benefit for using bind variables with F5.
    Note that substitution variables are not character values, but rather part of the statement, which is you you need to put the quotes around them when simply using them for character values. Binds on the other hand are treated as character values and we don't need the quotes when using binds.
    theFurryOne

  • Prompting the user to enter a valid value in an applet

    hi everyone!
    i have this code and i want to prompt the user to set a value<1000.
    this doesnt work.if i enter a value <1000 the input dialog appears again.
    whats wrong?
    public void init()
       String j = JOptionPane.showInputDialog(null, "Enter a number less than 1000 but greater than 0");
       int i = Integer.parseInt(j);
       while(i>1000||i<1)
          String k = JOptionPane.showInputDialog(null, "Enter a number less than 1000 but greater than 0");
          int y = Integer.parseInt(k);
    ....code executed while i<1000 or i>0

    Your while is looping on i, but inside you're setting
    y not i. This should work:
    do {
    String k = get input from option pane
    int i = Integer.parseInt(k);
    } while (i > 1000 || i < 1);
    In BinaryDigit's code, you won't have access to "i" after the loop. Declare it outside the loop (as you had it).
    int i = 0;
    do {
    String k = get input from option pane
    i = Integer.parseInt(k);
    } while (i > 1000 || i < 1);

  • How do it force a user to enter a time in a date time field??

    I am new to live cycle, not to acrobat pro. I must say live cycle is pretty cool and i may just switch to live cycle forever...
    But i can not figure this out. I have a HR form. I need to make the time of occurence field, required, validate and wont let you move on until you enter a time.
    Right now it functions as required, it shows a custom message, but the user can enter garbage text and skip through. How do i set up this field where the user can only enter a time and not skip through??
    I am sure this is rather easy, i just dont know where to start.. Thanks in Advance

    Hi Paul:
    That completely makes sense... Only problem what would or could the javascript be??
    I have already inserted some for the save as and print buttons sucessfully
    BTW in my form the time/date field is selected and to format to show time only. In my other date fields is does show a calendar after you hit the little arrow and the user can still insert garbage.
    What i would ultimately want is for the user not to insert garbage and forcing them to insert a time in the time field.
    It is possible that i forgot or missed a step being as im new to Live Cycle.

  • Want user to enter a date

    I am using Oracle 9i.
    I want the user to be able to enter a date and the report runs using values that are after this user inputted date, but am unsure how to do this. I have already created a user parameter that created a drop down list for the user to select something and then the report was run based on the selection. But I also want to run a report based on the date they enter.
    Sorry this is a bit rambling but is the best I can do! Any help on this would be great.
    Thanks

    Hi,
    Create a second user input date "p_user_input_date"
    make your drop down list optional .
    I mean add a NULL for the date parameter list.
    static list: blanc, dynamic list: append "union select '' from dual;" .
    then change the query where clause....
    with NVL(p_parameter_date, p_user_input_date);
    regards,
    CB

  • Restricting User to Enter Only Date Value

    Dear Expertsl,
    Can we restrict users to insert only date value (in RRMMDD format ) in a column whose data type is number,
    Note that i cannot modify the column because there are already values entered in the column and cannot delete it.
    Regards

    Try to convert it to a date in the WHEN-VALIDATE-ITEM-trigger, if it works, its a date, like
    DECLARE
      dt DATE;
    BEGIN
      dt:=TO_DATE(:THEITEM, 'MMYYYY');
    EXCEPTION
      WHEN OTHERS THEN
        -- Show error message
        -- then raise error
        RAISE FORM_TRIGGER_FAILURE;
    END;

  • How do you sort a text field with numeric data in numeric order

    We have a text field (varchar2) that has numeric data. When we sort it the items display as
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    *101*
    12
    Instead of
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    12
    101
    How can I make it display in numeric order if the field is a varchar2
    Howard

    To avoid string-to-number conversion:
    SQL> with t as (
      2  select '1' a from dual union
      3  select '2' a from dual union
      4  select '3' a from dual union
      5  select '4' a from dual union
      6  select '5' a from dual union
      7  select '6' a from dual union
      8  select '7' a from dual union
      9  select '8' a from dual union
    10  select '9' a from dual union
    11  select '10' a from dual union
    12  select '101' a from dual union
    13  select '12' a from dual)
    14  select a from t
    15  order by length(a), a;
    A
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    12
    101
    12 rows selected.Max
    http://oracleitalia.wordpress.com

  • How do I prompt a user to download a file

    I have reference to something that is similar to a txt file
    extension. Instead of IE displaying the file I would like the user
    to be prompted with the Save As dialog box or even better have word
    open the document on their computer, any of you clever sparks have
    a solution for this? I am using Dreamweaver 8.0

    If you zip the file and then link to the zipped file you will
    reliably get a
    download prompt. Failing that, you would have to manipulate
    the headers for
    the file (using server scripting).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Tumatawhero" <[email protected]> wrote in
    message
    news:gi7aqe$o2d$[email protected]..
    >I have reference to something that is similar to a txt
    file extension.
    >Instead
    > of IE displaying the file I would like the user to be
    prompted with the
    > Save As
    > dialog box or even better have word open the document on
    their computer,
    > any of
    > you clever sparks have a solution for this? I am using
    Dreamweaver 8.0
    >

  • How do i prevent the user from entering a RETURN/ENTER key into their username?

    Hello,
    i am currently trying to make a login system where the
    username will obviously enter their username.
    I have made my user input box editable and set up variables
    to accept the user input and store them into variables, along with
    error prevention for blank fields.
    However i cannot prevent the user from hitting the
    "enter"/"return" key. When i hit "enter" the user input box box
    gets larger as the type curser moves onto the next line and when
    the username is stored in a variable it is stored as "theuser
    RETURN" so when variable is passed to the next frame and is
    recalled by another text box to display the username, the user name
    has a carriage return.
    I want to prevent this, anyone got any suggestions? or know
    of any websites i can visit which will explain this to me nicely??
    Thank you

    suggestion:
    don't make the edit field editable right from the start.
    rather attach a behaviour to the field/text-sprite like:
    property mySprite, myMember
    on beginsprite me
    Sprite = me.spritenum
    -- this is the channel-number of the editbox
    myMember = mySprite.member.number
    -- this is the field/text-member
    member(myMember).editable = FALSE
    end beginsprite
    on mouseup me
    -- when i get clicked for editing, then set me editable
    member(mymember).editable = TRUE
    the keydownscript = "MyKeyhandler"
    -- this sets the keyhandler to YOUR keyhandler, see below
    end mouseup
    You would then need to have YOUR keyhandler in any mociesript
    and there you
    would block any unwished key, while editing
    on MyKeyhandler
    case the key of
    RETURN:
    stopevent;
    otherwise
    pass;
    end case
    end MyKeyhandler
    in the end you would attach a behaviour to any
    "Submit"-button (this is the
    one that "gets" the userinput" and performs further action
    according to your
    wishes and decisions)
    on mouseup
    the keydownscript = EMPTY
    -- this resets to normal
    user-ID = member("Whatever the number or name of your
    editfield
    is").text
    member("Whatever the number or name of your editfield
    is").editable
    = FALSE
    -- any further actions to make in your project
    -- to get along with the entered User-ID
    end mouseup
    something like this, I guess
    Peter

  • How do I allow a user to enter multiple lines of text within a Text Entry Box?

    I need a text entry box that allows for multiple lines to be inputted with in a Text Entry Box.  How can I make this possible?

    Go to the Options accordion and check 'Show scrollbar'.
    Lilybiri

  • How can i limit the user to enter only A to Z and space in JFormattedText

    dear
    i want to use JFormatedTextField in two manners
    1.Limit the no of charecters.means in a text field only 20 charecters r allowed.
    2.and also check the enterd charecter must be a to z and space not other chareters r allowed.
    3.same for numbers means 0 to 9 and decimal.
    how can i do by using the JFormated TextFilef.

    Probably lacks in some cases but what the hell.
    * Filename:           JSMaskedTextField.java
    * Creation date:      22-mei-2004
    * Author:                Kevin Pors
    package jsupport.swingext;
    import java.awt.event.KeyEvent;
    import java.util.Arrays;
    import javax.swing.JTextField;
    * A masked textfield is a textfield which allows only a specific mask of
    * characters to be typed. If characters typed do not occur in the mask
    * provided, the typed character will not be 'written' at all. The default mask
    * for this <code>JSMaskedTextField</code> is <code>MASK_ALPHA_NUMERIC</code>
    * @author Kevin Pors
    * @version 1.32
    public class JSMaskedTextField extends JTextField {
        /** Masking for alphabetical lowercase characters only. */
        public static final String MASK_ALPHA_LCASE = "abcdefghijklmnopqrstuvwxyz ";
        /** Masking for alpha-numeric characters (lcase/ucase) only. */
        public static final String MASK_ALPHA_NUMERIC = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
        /** Masking for alphabetical uppercase characters only. */
        public static final String MASK_ALPHA_UCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ ";
        /** Masking for numbers only. */
        public static final String MASK_NUMERIC = "0123456789";
        /** Masking for hexadecimals. */
        public static final String MASK_HEXADECIMAL = "0123456789ABCDEF";
         * An array of keyevent constants defining which keys are always to be
         * allowed, no matter what.
        private final int[] ALWAYS_ALLOWED = new int[] { KeyEvent.VK_BACK_SPACE,
                KeyEvent.VK_DELETE, KeyEvent.VK_UP, KeyEvent.VK_DOWN,
                KeyEvent.VK_LEFT, KeyEvent.VK_RIGHT, KeyEvent.VK_SHIFT,
                KeyEvent.VK_HOME, KeyEvent.VK_END};
        /** Boolean specifying whether casing should be ignored. */
        private boolean ignoringCase = true;
        /** Specifying whether the maskin is enabled */
        private boolean isMaskingEnabled = true;
        /** The mask for the textfield. */
        private String mask = MASK_ALPHA_NUMERIC;
         * Creates a default number field.
        public JSMaskedTextField() {
            super(null, null, 0);
            Arrays.sort(ALWAYS_ALLOWED);
         * Creates a number field, with a specified number of columns.
         * @param columns The columnnumber.
        public JSMaskedTextField(int columns) {
            super(null, null, columns);
            Arrays.sort(ALWAYS_ALLOWED);
         * Creates a JSMaskedTextField with a masking.
         * @param mask The masking to be used.
        public JSMaskedTextField(String mask) {
            super(null, null, 0);
            Arrays.sort(ALWAYS_ALLOWED);
            setMask(mask);
         * Gets the masking for this masked textfield.
         * @return Returns the mask.
        public String getMask() {
            return this.mask;
         * Gets whether this JSMaskedTextField should be ignoring casing.
         * @return Returns if the component should be ignoring casing.
        public boolean isIgnoringCase() {
            return this.ignoringCase;
         * Checks whether masking is enabled. Default should be true.
         * @return Returns true if masking is enabled, false if not.
        public boolean isMaskingEnabled() {
            return this.isMaskingEnabled;
         * Sets whether it should be ignoring casing when checking for alpha-chars.
         * @param ignoringCase The ignoringCase to set.
        public void setIgnoringCase(boolean ignoringCase) {
            this.ignoringCase = ignoringCase;
         * Sets the masking for this textfield. The masking will determine which
         * characters can be typed. If the characters in de <code>mask</code> do
         * not occur in the typed character, it won't be typed.
         * @param mask The mask to set.
        public void setMask(String mask) {
            this.mask = mask;
         * Sets the masking enabled. If <code>false</code> this component will
         * behave just like a normal textfield.
         * @param isMaskingEnabled true if masking should be enabled.
        public void setMaskingEnabled(boolean isMaskingEnabled) {
            this.isMaskingEnabled = isMaskingEnabled;
         * Sets text of this textfield. If the blah blah.
         * @see javax.swing.text.JTextComponent#setText(java.lang.String)
        public void setText(String text) {
            for (int i = 0; i < text.length(); i++) {
                if (getMask().indexOf(text.charAt(i)) < 0) { // does not occur
                    return;
            super.setText(text);
         * @see javax.swing.JComponent#processKeyEvent(java.awt.event.KeyEvent)
        protected void processKeyEvent(KeyEvent e) {
            if (!isMaskingEnabled()) {
                return;
            char typed = e.getKeyChar();
            int code = e.getKeyCode();
            for (int i = 0; i < ALWAYS_ALLOWED.length; i++) {
                if (ALWAYS_ALLOWED[i] == code) {
                    super.processKeyEvent(e);
                    return;
            if (typed == KeyEvent.VK_BACK_SPACE) {
                super.processKeyEvent(e);
            if (isIgnoringCase()) {
                String tString = new String(typed + "");
                String ucase = tString.toUpperCase();
                String lcase = tString.toLowerCase();
                if (getMask().indexOf(ucase) < 0 || getMask().indexOf(lcase) < 0) {
                    e.consume();
                } else {
                    super.processKeyEvent(e);
                    return;
            } else { // not ignoring casing
                if (getMask().indexOf(typed) < 0) {
                    e.consume();
                } else {
                    super.processKeyEvent(e);
    }

Maybe you are looking for

  • It there a way to disable the time consuming animation, when leafing through iCal for Lion?

    When klicking forward or backward the month- and year-view, iCal 5 displays displays a leafing animation. This is not only childish, but also time consuming. And iCal accepts only one click at a time. Klick. Watch the sheet leaf. Klick. Watch the she

  • Opening an image from LR3 or LR4 into Ps

    I still have Ps 4 on my computer and installed Ps 6 Beta.  Now when I am in LR (I have both LR 3 and LR 4 full versions) and right click an image to "edit in Ps) I only have the option of editing in Ps6 Beta. What happened to the "edit in Ps 4" optio

  • After latest updates keep getting extension issues

    After updating with the newest updates today, we have been having to repair permissions to mount a firewire disk. It seems we keep getting messages that certain extensions are not loaded or installed properly. Ths is firewire to HP print drivers  to

  • Incorrect CF Syntax Near And

    Looks like createodbcdate is upset with me - I have attached the parameters and the query in the code. If you need more let me know. Maybe someone can shed some light. Thanks in advance. - Jon Error Executing Database Query. [Macromedia][SQLServer JD

  • I can not get mozilla firefox on my pc desktop

    i have downloaded mozilla firefox on my desktop pc, i con has appeared on my pc, when i double click on i con, p c loads but mozilla firefox does not load, in the adress bar , www.searchqu.com/406 appears, please can you help, des weaver