How do I create an event driven dialog box that allows the user to input constants into my program?

My goal is to have a box pop up when the executable for my program is run. The box will have a bunch of fields, and an OK and Cancel button. Ideally, the user will be made to change some of the values, and warnings (with another dialogue box) will pop up if the values are nonsensical, allowing the user to proceed or go back and change them. The constants will be clustered, to be used later in other VIs.
Does anyone have a good template for this sort of VI? I looked at this article: http://www.ni.com/tutorial/8768/en/, but it doesn't go into enough detail to be helpful to me.

This should get you started down the pathJust replace User data with your cluster and do the data integrity check in the value change event use a simple one button dialog to notify the user which values are out of compliance and disable and grey the OK button untill all conditions are met.
Jeff
Attachments:
Prompt(Date).vi ‏50 KB

Similar Messages

  • HT4528 how do I create an event in my calander that repeats the second thursday of every month

    how do i create an event in my calander that repeats the second thursday of every month

    This should get you started down the pathJust replace User data with your cluster and do the data integrity check in the value change event use a simple one button dialog to notify the user which values are out of compliance and disable and grey the OK button untill all conditions are met.
    Jeff
    Attachments:
    Prompt(Date).vi ‏50 KB

  • When opening the email client on my iPad3 I occasionally receive a dialog box that states "the user name or password or user name for Bellsouth are incorrect".  This condition usually lasts for 2 or 3 days.

    I am using the correct user name and password as I can access email via the web.  This situation is on all email clients except the web, ie; Outlook and iPhone also.

    Hi Kitbear,
    Thanks for visiting Apple Support Communities.
    See this article for some troubleshooting steps you can try on your iPhone and iPad:
    iOS: Unable to send or receive email
    http://support.apple.com/kb/ts3899
    Best Regards,
    Jeremy

  • How to insert a dialog box which prompt the user enter the general information in the SDI application?

    Im using the SDI application to build a system and now i would like to insert a dialog box which allow the user to enter the general information about themselves and then it will be saved into a text file. How to insert the dialog box and show the dialog box at the beginning of the program.

    Hi Lee,
    The easyest way to achieve this is to declare an object of your dialog box derived class (e.g. CUserInfo, public CDialog) into the InitInstance method of the main application class.
    Depending on the behavior you want you can place the code before dispatching the commands from command line (in which case the main frame of the SDI application will not be shown), or after, in which case the UserInfo dialog box will be shown over the main application window as modal.
    The code snipped bellow can be more helpfull:
    BOOL CSDIApp::InitInstance()
    AfxEnableControlContainer();
    // Parse command line for standard shell commands, DDE, file open
    CCommandLineInfo cmdInfo;
    ParseCommandLine(cmdInfo);
    //prompt user for data
    CUserInfo dlg;
    if (dlg.DoModal() == IDOK)
    //do something here with the data
    else
    return FALSE;//i.e. quit the application if the user presses the 'Cancel' button
    // Dispatch commands specified on the command line
    if (!ProcessShellCommand(cmdInfo))
    return FALSE;
    // The one and only window has been initialized, so show and update it.
    m_pMainWnd->ShowWindow(SW_SHOW);
    m_pMainWnd->UpdateWindow();
    return TRUE;
    Hope this helps,
    Silvius
    Silvius Iancu

  • How can I Create custom pop up dialog box with question/answer

    I need to create a pop up dialog box that asks a question and accepts an answer input.  The form needs to be able to be emailed out (not server based)  Can someone help me do this?  I am a designer,  with very (Very!) limited coding skills.   Looks like the windjack program that I keep running into does not work with Acrobat X.
    Thanks for any help you may have

    I am not able to help you with the current method you are using - which seems an odd one in that you are using a menu script to do this????
    I would have done the page completely differently - instead of slicing it up into a vastly complex table, I'd have added the image to the page and then used an imagemap.  Then I'd have used this script to add the popups (as toolitps) that you can be as simple or as complex as you wish: http://boxover.swazz.org/.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • How do I get rid of a dialog box that keeps coming back even though I press Cancel?

    How do I get rid of a dialog box that keeps coming back even though I press Cancel?

    I was looking up Olympic stats on  Norwegian website, and must have inadvertently clicked a link. The dialog box says: "There is no application set to open the URL nasjoner:2"
    It goes on to tell me to search the App Store , choose an application, or cancel.

  • How to stop "Create New CSS Rule" dialog box

    Made the mistake of allowing an Apple tech talk me into an OS X "Install in place". He assured me that all application settings would remain the same as before.
    Now, when holding down the "shift" key and typing a word in all caps (in Design View), the "Create new CSS Rule" dialog box pops up and writes:
    <span style="font-size: 14px; margin-center: 1px; text-align: left; font-weight: bold; margin-bottom: 6px; padding-bottom: 0px; line-height: 1.3em; margin-top: 3px; font-family: Arial, Helvetica, sans-serif;"><font color="#006666">TEXT</font>
    I am trying to find the setting in preferences to disable this, and since the behavior started after OS X "install in place", something must have changed. I just want to type in design view and not have to deal with Dreamweaver overriding what I'm doing.

    I am attempting to type some text in "design", not "code" view. I want the text to be caps. I hold down the shift key, type the first letter, and immediately the "New CSS Rule" dialog box pops up. I cancel, but the code...
    <span style="font-size: 14px; margin-center: 1px; text-align: left; font-weight: bold; margin-bottom: 6px; padding-bottom: 0px; line-height: 1.3em; margin-top: 3px; font-family: Arial, Helvetica, sans-serif;"><font color="#006666">TEXT</font>
    ...is created anyway.I just want to type a word into an existing div with no changes or dialog boxes or any input from Dreamweaver. I was able to do that before, and cannot do it now. There must be some setting that I am missing in preferences.

  • Can I create a fillable PDF that allows the user to attach a file to the submitted form?

    There are suggestions in the Help documentation and on this site that indicate it is possible to attach files to a fillable PDF form that is being submitted. But I do not see any instructions for adding this functionality to a form. I am using Acrobat 9 Pro to create my form. I have a Submit button with an Action/Menu Item/Submit a form option, and the URL link for the submission is a local coldfusion file with a #FDF suffix. The export format is HTML. The form also contains a hidden EMAILTO field, with an Options/DefaultValue option identifying the recipient's email address. (I'm guessing the local cfm file uses this field.) There is also a hidden URL field in the form, and its Options/DefaultValue specifies the URL of the fillable form itself. (Perhaps the local cfm file uses this field too.)
    How can I add functionality to this form, using Adobe/PDF, to allow the user who submits the form to attach a file to the submission?

    You have to first configure a text field so it can be used for file selection. You do this on the Options tab of the field properties dialog. In order to select the corresponding check box, make sure only the "Scroll long text" option is selected.
    You then can set up a button that has the following JavaScript attached to the Mouse Up event:
    // Mouse Up script for button
    getField("upload_text_field").browseForFileToSubmit();
    Replace "upload_text_field" with the actual name of the file selection text field.

  • How do I create a customer header in photoshop that I can merge numerous individual photos into from Lr?

    Let's say I want to use custom text in the top that reads Run for the Community Charity Event and then apply 100 photos individually to give to participants. I think I need to create a customer background layer and save it? I then need to apply all the images separately, but there must be a way to automate the workflow.

    Thank you. I know how to do a watermark. I may not have  asked the right question. What I really want is a banner that I could include text, logo, block color or any combination. I think I need to make a background template and drop the photos in. I was hoping for a way to do it as an automated workflow instead of one by one. I've seen photographers do this for running and biking events and have the photos for sale at the end. I'm not looking to be that quick, but want to be able to create a memory image with the event name for a group of people.
    Now that I read your post again, your latter comment about a custom watermark in Lr might work if I compose the shots right!
    Thanks!

  • How do I create gradients (only a few steps) that follow the contour of the artwork?

    I am creating a 'How to' diagram using illustrations from a previous artist. As such I need to recreate his way of creating image gradients. He seems to do it by using only a small amount of gradient steps creating quite block like gradients. Like this: How would I go about getting my smooth gradients like this? At the moment I am creating a smooth gradient filled object, expanding it then specifying the steps in the dialogue box that then appears. But this does not really recreate the same gradient (please see as follows):So my question is does anybody know how this artist has done this? As the gradients also seem to follow the contours of the object.
    Thanks in advance,
    Olly

    Olly,
    If you do wish a more precise recreation, I am afraid you need to approach it some other way.
    As I see the original artwork, it has small roundings at the left end, and it has a dark outer stroke and a blend inside from bottom to top, and on top of that it has three slightly shorter parts, the two lower ones abutted. Everything narrower at the left end, except for the stroke which is uniform.
    You may recreate all that in this maybe rather silly way:
    1) Create a rectangle with the original width and right side height and with the same Stroke Weight and colour as the original and with a solid fill the same colour as the original at the bottom, then create a corresponding rounded rectangle with Corner Radius corresponding to the roundings to the right, and place it on top of the rectangle;
    2) Select both and Pathfinder>Divide, then delete the corner paths to the right, then select the rest and Pathfinder>Unite (or whatever it is called in your version to get one path with rounded corners to the right, then scale the H value to the original left side height;
    3) Copy 2) to the front, remove the fill, and lock the copy (which holds the stroke), to work on with the fill/nostroke path;
    4) Create two copies of 2) and hide the topmost one;
    5) With one of the top Reference Points ticked in the Transform palette, select the visible copy path 4) and reduce the H value to a small suitable value (1pt or something, depending on the size);
    6) Select 3) and 5) and Object>Blend>Make (with Smooth ticked in Object>Blend>Options), this should give you the background fill;
    7) Show the copy hidden in 4) and reduce its height to 1/6 (divide the H value by 6), change the fill to the right (darker) solid colour/shade, move it to a position 1/6 up, and reduce its W value by a small amount so the bottom fill shows at the ends;
    8) Move a copy of 7) 1/6 up;
    9) Move a copy of 8) 1/3 up;
    10) Adjust the colours/shades of 8) and 9), unlock the stroked path from 3), and Group everything, now you should have the whole artwork represented, only rectangular;
    Depending on version, you may then:
    11a) For the newest version(s) create an Art Brush to be applied to simple paths with decreasing width towards the right, or
    11b) For any version, Direct Select the Anchor Points to the far right, and Object>Transform>Scale vertically to get the original height to the right.
    Here is an image in greys, indicating the look after 10) and 11) (the stroke should have been wider, eating away more of the height of the bottom fill blend):

  • The dialog box that contains the Firefox icon stays on my desktop even though I've already loaded it into my applications folder. How do I remove it????

    I updated to Firefox 4.0 and moved the Firefox icon into my applications folder and tool bar. However, the dialog box with the icon still sits on my desktop. How can I remove it??? Thanks for your help.

    OMG I think I just figured it out.... I was dragging the disk icon to the apps folder.  I was supposed to drag the icon within the pop up window to the apps folder.  As you can tell, I'm a PC user and new to mac!  I think this is going to solve the mystery!

  • Is there a LabVIEW function that will pop-up a dialog box to prompt the user if he is sure he wants to do when a boolean switch is pressed?

    I want to prompt the user by asking, "Are you sure you want to do this?" when the user presses a switch.  If the user clicks "Yes" then the switch changes state, if the user clicks "No" then the switch retains the current state.  Does such a thing exist or do I have to invent it?  I am new to LabVIEW.
    Thanks.

    You can use an event structures filter event on mouse down for something like this.  Pop up a dialog and invert the logic for the output and sent it to the Discard? modifier on the right side.  See example for assistance.
    Attachments:
    Untitled 1.vi ‏24 KB

  • How do I place a link in a PDF that takes the user to an online order form that is pre-populated in different ways, depending on what button they pressed?

    Hi There,
    My question is basically in the top there. Essentially I want to create a marketing brochure that really gives my clients the easiest way to get to and purchase my product.
    Is the only way to do it to create a separate order form for each product and just send them to that?
    I'd love some feedback,
    thanks
    Alex.

    There are various ways this can be done. One way is to use a back-end application to pre-populate a copy of the PDF with the data and then serve it to the user, but that is quite complex to implement. Another way would be to use parameters in the URL to do it. That can be done more easily with a script.

  • How do I create an installer for my project that allows for variable data entry like a server unc path?

    Hello All,
    I have a questions and a few hours of scouring the internet hasn't brought me much closer to an answer.
    Here's what I want to do. I have created a visual c# wpf application. I want to have an installer that during install time will have a text box or something where I can enter a server path as a string. Basically my application needs to know where to look
    for a server unc path \\server\somesharedfolder that it will be accessing primarily for its work. Secondly, how do I reference said information from within my code.
    I have come across application/user scoped settings, which appears to be what I'm looking for. However I can't find a way to have the installer prompt for a value "Server Path:" __________ that I could type into during installation. So far it appears
    the only way would be to edit the config.deploy file before running the installer, which isn't a big deal but you'd think there'd be an easy way to take in variables during install.
    EDIT: Apparently I can't edit the config.deploy file as I get an error message about the hash not matching.
    Thanks for your help!
    Lance

    Hello,
    The forums I found confusing, didn't know the best place to put this question so I put it here.
    I have found the answer over at stackoverflow and will detail here for anyone who may stumble across the same problem.
    The problem is ClickOnce seemingly doesn't support this feature. Installshield LE either doesn't or does but its incredibly too complicated if all you need is one variable passed to the registry during installation. And it seems the words used for googling
    this particular problem will never lead you to the solution.
    So here's how to do it (we will be first adding the Visual Studio Installer Add-on to restore original installer project functionality):
    1) Inside of visual studio 2013 go to Tools -> Extensions and Updates
    2) On the left-hand side click on Online -> Visual Studio Gallery
    3) In the upper-right search box search for "Visual Studio Installer"
    4) Download the extension labeled "Microsoft Visual Studio Installer Projects"
    5) Install, then open a new project under Templates -> Other Project Templates -> Visual Studio Installer -> Setup Project
    6) Now for the gold. In the solution explorer there are icons in a bar just below its title bar, highlight till you see "User Interface Setup" and open it.
    7) Now you can right click on Start, Progress, End etc any Category heading and hit Add Dialog.
    8) From here for my purposes, I used TextBoxes A
    9) Once you add it, click on it and observe its properties window. You will see Label, Property, and Value. Make a note of the property name as it will be used to store the data directly into the registry. *Note: there appears to be no way to perform data
    validation using the built in textbox dialogs, users can enter whatever they want and move on.
    10) Go to the registry editor on the same icon bar under solution explorer.
    11) Specify your registry folder, make a new value (I used string) and name it whatever you like. In the value section enter the property label formatted as such   [EDITA1]   depending on your value. 
    12) Now when you run the installer for your project, it will take data into that field and place it into the registry provided it has access to that key with the permissions you run the program under.

  • How can I create a buffer, array or pipeline that stores the last 5000 dates of a voltage measurement with PCI6036 & SCXI1104C and continously drops the last date and inserts the latest date (scanrate 200 or 2000Hz)?

    I develope a porgramm for continious monitoring. If the voltage of a channel exceeds or is lower than the upper or lower limit of tolerance the actual date must be stored and additionally the dates being stored 10sec before and after this event. Can somebody give some advice how to create the buffer to keep the dates 10s before the error event? Thank U.

    I've written you a quick array buffer vi. I'm not sure if it'll be fast enough though.. Try it and see! I've used the loop numbers in my array, but i'm sure you can feed in the dates instead.
    Attachments:
    Array_buffer.vi ‏26 KB

Maybe you are looking for