Dialogue box critique

Hi all,
I've been trying (in vain) to create a good dialogue box that does some bounds checking on user inputs before allowing them to be sent to the main application. Ideally, when an input is out of range, it'll blink until it gets put into range. Generally this means that bounds can only be positive (nonzero, nonnegative numbers) and that VISA resources cannot be left blank. Additionally, the difference between two of them must be bigger than or equal to 40(Range Max - Range Min >= 40). Normally, my code is pretty modular, but I think this being my first real foray into UI design has left me struggling to make things look and work nicely. I've posted the VIs thus far for critique.
I've described how it should work. As to how it's actually working, I've noticed that whenever I have two things that are out of range, and I fix one, the OK button is no longer blocked. I think this may have to do with how my events are set up, but can't be sure. What do you think? How can I make this better? Am I missing something fundamental in my design layout?
thanks,
ijustlovemath
Attachments:
constant control_test.ctl ‏8 KB
constants_dialog.vi ‏55 KB

ijustlovemath wrote:
Range Min and Range Max need to be set exactly by the user, so while I do like the idea behind the slider, I think it would just end up cluttering the dialogue while not adding much. Could you explain the "Abort VI" suggestion a little more? Also, what do you mean by using shift registers? Would that be used for just reading new values, or what?
So you make them "Coerced" as well, force them to be done first (by making only Min visible, using Min's value to set the Min for Max, making Max visible, then using Max and Min's value to set the other Range Control and make it Visible).  Once you have the range set, make Min and Max invisible.  By doing this, you gently lead the user by the nose through the correct steps.
Here is a Snippet of (some of) the rest of your question.  This picture can be "dragged" onto a blank Block Diagram and it will magically become LabVIEW code.
Here are points to note:
Following Standard NI Practice, Error In and Error Out are present.
The Invoke node to reset Constants to its default value comes next.
The (now default) Constant is brought into the While/Event loop on a shift register.
In a frame that you don't see, the Weight-changed Event is used in a Bundle-by-Name to change the Weight on the wire in the Shift Register, thereby storing the new value.
This shows what happens when Cancel is pushed.  First, we generate Error 5001, with the Error Message "User Cancelled!".  Then we exit the While loop by setting the Stop Indicator to True.  It is the User's responsibility to check if there is an Error present on the Error Line (wire the Error line to a Case Statement selector) and take appropriate action (but, please, not Abort VI).
The OK case is identical to this except there is no Error Cluster.
Bob Schor

Similar Messages

  • When I allowed an upgrade to Itunes on my HP Windows 7 computer now I have this error message when I turn on my computer:  AppleSyncNotifier.exe-Entry Point Not Found.  The the explanation in the dialogue box says:  The procedure entry point sqlite3_wal_

    Error message after allowing an upgrade:My dialogue box in the error message says:  The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll--this happened after I allowed an upgrade to be installed.  I have HP Windows 7.  Now my Iphone will not sync.  What do I do?

    Found this fix here which worked for me with a similar problem.
    https://discussions.apple.com/thread/3196594?start=0&tstart=0
    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well.

  • Eclipse blank grey dialogue box on startup, fixed with rm of workspace

    Hello,
    I wanted to get coding today, but.... eclipse isn't starting up like it usually does. The splash screen pops up, it asks where I want my workspace folder, and then a small grey dialogue box pops up. It will never exit on it's own, pressing close does nothing, I have to kill it.
    I tried running eclipse in a terminal in the hope it complained about a library error or something, but it's silent, it doesn't say anything back to me when run in a terminal. I'm not sure what other info to give you. It was working yesterday, and today it's not opening. I just shut down my computer after that day and started it up the next and it didn't work. So I removed the .eclipse folder in the hope that would clear some temporary data that was causing it, nothing.
    I eventually moved my workspace and let it start fresh, it worked. Unfortunately, I need those files. Can I import the folder to fix this issue? How can I?

    thurisaz wrote:
    I'm experiencing the same problem. Additionally the whole update configuration seems to be damaged. There are no update sites listed anymore (I had quite many).
    Furthermore I'm having some other problems (Eclipse icon seems to be missing, Saros plug-in and Gnome Battery Applet doesn't work anymore, no wallpaper on desktop) which all appeard after my update yesterday. Eclipse was updated too.
    The following error messages are displayed when I start eclipse via terminal:
    (Eclipse:8741): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed
    (Eclipse:8741): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed
    (Eclipse:8741): Gtk-CRITICAL **: IA__gtk_window_resize: assertion `width > 0' failed
    gdk-pixbuf2 was updated too.
    In the update log I found this message regarding gdk-pixbuf2:
    [2011-06-30 22:58] g_module_open() failed for /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so)
    (more error messages follow which name the other libpixbufloader-*.so libraries.)
    I can't open images anymore because the programs can not recognize the image format.
    Therefore this seems to be a problem with gdk-pixbuf2. At least for me. Don't know how to fix this. Will try to downgrade gdk-pixbuf2. Will post results.
    EDIT: Yup, that did the trick. At least for all the image related stuff. Eclipse starts fine now, I can see the wallpaper and the battery applet is working now.
    Eclipse plug-ins are still messed-up but that's worth a separate topic.
    EDIT2: I still can't figure out how that gdk-pixbuf stuff could make eclipse "forget" about the workspace.
    Do you know what version last worked? How should I downgrade?

  • I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

  • Can't bookmark certain web pages. I press Ctrl-D and the "Bookmark this page" dialogue box does not appear.

    For example: If I open the home page of The New York Times and press Cntrl-D, the bookmark dialogue box appears but pressing "done" has no effect, the bookmark is not saved. If I go to a page with a particular article, then the bookmark function does not even appear. At first i thought this had something to do with the web site, but that isn't the problem. I just can't bookmark anything. On some pages the dialogue box appears and on others it doesn't, but the result is the same everywhere: zilch.
    And here is something really strange: when i press Cntrl-D on the Firefox start page, the bookmark dialogue box appears with "Board of Education" in the page title field. What is ''that'' all about?
    I have tried all manner of fixes: deleting "places.sqlite" and "localstore.rdf" files, operating in "safe mode", disabling add-ons, re-installing Firefox, etc. etc.. Nothing seems to work. I am running the latest version of Zone Alarm Security Suite. It has an advanced browser security function that includes virtualization. I tried disabling the browser security option, but this did not solve the problem, although I still suspect that Zone Alarm could be the culprit somehow (it often is). \
    Any and all ideas will be welcome as I am fresh out.

    The problem with bookmarking (which I thought I had eliminated with a clean reinstall) has returned after a Firefox update.
    Checked out /questions/743526.
    A scan with Malwarebytes did not detect any malware. Not in normal mode, not in safe mode.
    And look at the solutions offered by st4dog and jimcou: they each deleted different registry values to get rid of XULRunner.
    My problem remains as it was: I don't want to mess with my registry unless I know ''exactly'' what I am looking for (deleting). At least my PC is running, and scans with Malwarebytes, SpyBot SD, Pest Patrol and Zone Alarm AV reveal no infections. If I screw up the registry I think I'll be in a lot worse shape.
    Again, until I have ''specific'' instructions on how to get rid of this thing I guess I'll just have to be content with using IE if I want to do any bookmarking.
    Thanks for the reference. I do appreciate all of your - and other user's - help in trying to solve this problem.

  • Save Password Dialogue Box Not Displaying

    I am seeing behavior that suggests that the dialogue box for saving passwords is invisible:
    * I can frequently see the outline of a box where the dialogue box would be
    * On a couple of occassions, the dialogue box would appear for a few seconds before disappearing - I was once even able to save it
    * On sites where I enter a password, hyperlinks are not recognized in the area where the save password dialogue would normally appear - it's as if the window is there but not visible.
    I have uninstalled and reinstalled.
    Private Browsing is Off. Save passwords is checked.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Authentication dialogue box not displaying properly in 10.6.5

    I've updated to 10.6.5 last night. Everything seems to work just fine except for the authentication dialogue box. All letters turn out to be capital A's in boxes. Authentication itself still works, but the improper displaying of characters just bugs me. Does anyone have that problem? Thanks guys!

    Wow thanks! It wasn't a 10.6.5 bug after all. I downloaded a Leopard UI set, and thought it would be nice to include the Lucida fonts in my OS. I didn't see the fonts in the fonts folder, but it turned out that they were there and I just duplicated them. Thanks

  • Text wrap dialogue box is blank in CS3

    I am not able to view the options in the text wrap dialogue box - why? I have restarted InDesign and my computer but there are no options showing in the dialogue box. I use text wrap all the time so this is a major problem for me. Thanks for your help!

    Try resetting preferences. http://livedocs.adobe.com/en_US/InDesign/5.0/help.html?content=WSa285fff53dea4f86173837510 01ea8cb3f-6d1e.html
    Immediately after starting Indesign, hold down Ctrl-Alt-Shift (Shift-Opt-Cmd-Cntrl on Mac). If you don't get a message about deleting preferences, you weren't fast enough.
    Ken

  • Removing the "Security Warning" dialogue box on default when a PDF is opened

    Hey
    I have created a pdf document with a specific data written using iText Libraries. I have actually created a beacon that generates a notification sent to the owner's email when the pdf is opened.
    The code is under OpenAction. The problem I am facing is that as I open the document, a dialogue box is opened saying "Security Warning" The document is trying to connect to : URL. How do I get rid of this dialogue box. ? I don't want this dialogue box to appear and allow the connection by default. I have tried playing with the Trust Manager - but that doesn't seem to be the solution, as  am trying to execute my PDF document at a remote machine.

    There was a lot of media fuss years back when it was found out that PDF files could "phone home", i.e. do what you want to do. So Adobe put this warning in. It wouldn't be much good as a warning if the creator of a PDF could choose to turn it off!
    Document creators like to track people opening documents. Privacy advocates consider this a breach of privacy. The latter group shouts louder. http://en.wikipedia.org/wiki/Phoning_home

  • REGISTRATION UNSUCCESFUL DIALOGUE BOX WON'T GO AWAY

    I am running Adobe Acrobat 8 Standard under Windows 8.1 running on a new Lenovo laptop, which I bought when my old Vista laptop stopped running.  Whenever I start up Acrobat, a dialogue box appears headed "Registration unsuccesful." Beneath that there is an error message saying "A problem was encountered while trying to send information over the Internet."  If I simply close the dialogue box, and later shut down Acrobat, the dialogue box simply reappears the next time I start up Acrobat.
    The dialogue box has three radio buttons, one for each of three options.  The first option is "Try submitting the online registration again".  Selecting that option has no effect - the dialogue window flashes for a moment and then returns to normal.  The second options is "Register later (you will have to fill out the registration form again".  Selecting that option makes the dialogue box close, but if I then shut down Acrobat and re-open it,  the dialogue box appears again almost immediately.  The third option is "Never register".  If I select that option, the effect is similar to that for the second option - that is, the dialogue box closes, but shutting down and re-opening Acrobat causes the same dialogue box to reappear almost immediately. 
    This is very frustrating and irritating!  What can I do to stop the dialogue box reappearing?  I should like to register, but whenever I go to the Help menu and select "Registration..." the same dialogue box appears, and behaves in the same way.  Could this be connected to the fact that I first registered Acrobat 8 from my old Vista machine, which is no longer working?  Is is relevant that my copy of Acrobat, which originally came with my Fujitsu ScanSnap scanner, comprises Acrobat 6 on CD and an upgrade to Acrobat 8 Standard on another CD?  I never had any trouble on my old Vista machine, which I can no longer get to start up properly (so I cannot remove Acrobat from that machine).

    Just a small correction: my "old Vista machine" had, as I now belatedly remember, been upgraded to Windows 7.  My copy of Adobe Acrobat 8 Standard ran without any registration problems under both Vista and Windows 7.

  • While trying to open Firefox, the dialogue box says another version is open and I'm unable to open any version

    I am running Mac OSX 10.6.6. After running Firefox with no problem, it now won't open. When I attempt to open Firefox a "Close Firefox" dialogue box says " A copy of Firefox is already open. Only one copy of Firefox can be open at a time".
    I searched my computer, threw out all firefox related items and when I download a new Firefox App. the same dialogue box still appears. How can I find the hidden application, close it and successfully open Firefox?

    Have you deleted the original files you copied? Deleting means moving to the Trash and emptying the Trash.

  • Custom Keyboard Shortcuts Not Working In Layer Style / Blending Options Dialogue Box (Mac OS 10.6.8)

    In the Layer Style / Blending Options dialogue box, my custom Keyboard Shortcuts to zoom in and out of the image is no longer working. Cmd+opt+shift+1 acts as cmd+1 (jumps to Drop Shadow), and cmd+opt+shift+0 acts as cmd+0 (jumps to Stroke). Outside of this box the commands seem to be working fine.
    Example 1: Create a new RGB document, cmd+j the background layer, double-click this layer to open the Layer Style / Blending Options dialogue box, mash Cmd+opt+shift+1.
    Result 1: The dialogue box shift focus to the Drop Shadow Options instead of the image zooming in to 100%.
    Expected Result 1: The image should zoom to 100%.
    Example 2: Create a new RGB document, cmd+j the background layer, double-click this layer to open the Layer Style / Blending Options dialogue box, mash Cmd+opt+shift+0.
    Result 2: The dialogue box shift focus to the Stroke Options instead of the image zooming to “Fit on Screen”.
    Expected Result 2: The image should zoom to “Fit on Screen”.
    This same thing happened in the CS5 Beta, and it was quickly fixed, so I hope this is not a complicated issue.
    Thanks, and keep up the wonderful work!
    Jacob
    Mac OS X 10.6.8 on a 3.33, 6-Core MacPro5,1 with 16GB RAM w/ separate Scratch Disks & ATI Radeon HD 5870

    Hi,
    If you are experiencing issues with Software Update you could try the Combo Update:
    http://support.apple.com/kb/DL1399
    Cheers,

  • Open and Save dialogue boxes are useless

    I have recently moved from Windows to Mac after being told I would never look back and I am already 'looking back' somewhat in terms of the OS. I work with photos and graphics and I'm on the move a lot so went for a Mac Book Pro Retina with SSD and I am not going to lie it is lightning quick and the display is beautiful. But when it comes to saving and opening workflow it does not work how I expected it would.
    It seems such a simple thing but you cannot rename files from within mac open and save dialogue boxes. I'm so used to right clicking on a PC to create a new folder, hit F2 or right click and hit rename to rename to what I want then save the file into that new folder. You can also directly edit the name of the files and folders from within the open save dialogue box. If you right click on a mac you can create a new folder but it defaults to the name 'untitled folder' and you then can't change it's name. It find it unbelievable that you can not do this on a MacOS! So unbelievable that I went into an Apple store and spoke with someone there. When I showed them the problem they weren't even aware of it and pointed out I should just use finder. But that is not convenient if if you want to rename a new folder to then have to come out of the open save relocate in finder and change from there.
    I know there is the new folder button down to the left hand side and you can rename the folder as soon as you create it using that but sometimes you may make a mistake and want to change it. Same with file names.
    Why can't you do this on a Mac? It's crazy. After searching about, I came across the Default Folder X app which appears to fix this issue which isn't really that cheap for something I consider should be 100% native in any OS.
    There are other issues that frustrate me from moving over from Windows to Mac (like the ability to snap windows to screen edges, Better Snap Tool fixed that for me at a much more reasonable price but still would have expected this to be native), which I know I will just have to get used to but this one really surprised me.
    Considering I was promised so much in terms of better efficiency with work flow and ease of use overall there is still a lot that's left to be desired.

    As Axeman1020 noted, the Mac OS is not Windows. Things are not going to be exactly the same. It's no different than if you went from Windows to Linux. So expect a month or so of getting used to a different OS. Once muscle memory gets used to the different keyboard commands, and just where things are in general and how they behave, it'll seem just as easy as Windows.
    To answer some of your statements or questions:
    It seems such a simple thing but you cannot rename files from within mac open and save dialogue boxes.
    Renaming items in the Open or Save dialogue boxes are not what those are for. I know Windows allows it, but why? That's a function for the desktop so you can't accidentally change a file or folder name in a dialogue box that has nothing to do with opening a file or saving one. If opening a file, that's all you're doing. If saving, only the name of the file you're saving can be modified. That's what those dialogue boxes are for - nothing else.
    Yes, you can give a file you're saving any name you like. You can even click on any name shown in the save dialogue box to give it that name if you want. You can also highlight the default name and change it.
    If you right click on a mac you can create a new folder but it defaults to the name 'untitled folder' and you then can't change it's name.
    Of course you can. Either highlight the folder and press Enter, or slowly click on the name twice. Either action will make the name editable.
    When I showed them the problem they weren't even aware of it and pointed out I should just use Finder. But that is not convenient if you want to rename a new folder to then have to come out of the open save relocate in finder and change from there.
    You're crossing over two different things. I believe you mean renaming a folder from the Save dialogue box. When you click the New Folder button, you have the opportunity to give the new folder any name you want before clicking Create.
    If you type the wrong name, then yes, you have to finish the save before you can rename the folder. So either be sure you type the name in correctly before clicking Create, or change the misspelling afterwards. You're not saving any time fixing a typo within the Open dialogue box. It will take the same amount of extra time to do it there as opposed to fixing it on the desktop after you complete the save.
    I know there is the new folder button down to the left hand side and you can rename the folder as soon as you create it using that but sometimes you may make a mistake and want to change it. Same with file names.
    You are again trying to force a Windows feature into an OS that is not Windows. The Mac does some things that I wish Windows could do, and visa versa. However, you can't force any OS to do something it simply isn't designed to do. Expecting it to change by sheer willpower is only going to drive you crazy. You need to let go of what you want the OS to do as opposed to what it will do.
    Considering I was promised so much in terms of better efficiency with work flow and ease of use overall there is still a lot that's left to be desired.
    I find the Mac OS to be incredibly efficient. This from a person who has used Windows for many more years overall than the Mac OS. Yes, it took time to get used to how the Mac OS behaved. But rather than fighting it (which is pointless), I simply took the time to learn how to use it as it's designed.

  • Quality and Media options don't appear in Print Dialogue Box

    I recently upgraded my OS and now when I try to print on either my Lexmark Z65 or my Epson R300 (both USB connections), I don't see the "Quality & Media" option in the print dialogue box.
    I need these settings to appear so I can choose Glossy Photo Paper. This is the only setting that will give me the saturated prints that I need for my projects.
    I have tried:
    - reinstalling the latest drivers for each printer
    - deleting and then re-adding the Printers
    - restarting
    I've been reading that others are having similar problems when they upgraded to Tiger, but none of the posted solutions seem to work for me. Any ideas?
    Thanks,
    Jen

    Options such as Quality & Media are known as PDEs (Print Dialog Extensions) and they are added to the standard print dialog by the driver installer. For the new Intel Mac's, to get these extensions to appear (or appear without a line through them) you need to have a driver that is written in Universal Binary.
    You mentioned that you have the latest drivers. Check back to the web site to see if they mention them being Universal Binary versions. If they are Universal, then the previous drivers that were PPC may be interferring with the UB version. Try opening the Printer Setup Utility, click on the title menu and select Reset Printing System. Then close the Printer Setup Utility and open Finder. Navigate to /Library/Printers/ and delete the contents of the Epson and Lexmark folders. Empty the Trash, restart the Mac and try adding the new drivers again.
    If there aren't any Universal Binary versions available, then you can set most applications you are printing from to open using Rosetta. Before opening the application, find its location in the Finder view and go a Get Info on the icon. In the Info window, if there is a setting 'Open using Rosetta', then enable it and open the application. Now you should have the option.

  • Sending an email via AppleScript and Dialogue Boxes

    I am trying to write a script to send an email via Mail of which the body of the message is from a dialogue box. I decided upon using Automator and AppleScript. I have, so far, the following workflow:
    1. Run Apple Script:
    set mypass to text returned of (display dialog "What are you doing?" with icon 1 buttons {"Tweet", "Cancel"} default button "Tweet" default answer "")
    2. New Mail Message.
    3. Send Outgoing Messages.
    4. Run Apple Script:
    on run {input, parameters}
    tell application "System Events" to set visible of process "Mail" to false
    return input
    end run
    I wand this workflow to allow the user to input an answer and this answer to be in the message field of the email. I can use the "Ask for Text" action in Automator but it does not allow for any control over the appearance of the dialogue box. The first script returns the result "<whatever is typed>" (ie. "Test") in the Results field below the script box, as does the "Ask for Text" action but it does not insert it into the message. Does anyone know what is going wrong here?
    I am relatively new to AppleScript which is why I am using Automator but would like any information on how this could be done entirely in AppleScript. My previous attempts at sending email using script was unsuccessful.
    My aim is to save this as an Application with a proper icon.

    see my reply to your post in the snow leopard forum.
    http://discussions.apple.com/thread.jspa?messageID=10318297&#10318297

Maybe you are looking for

  • Cannot move or copy Projects or Events to external drive

    Short version: I have a project that I have been working on for a few months. Now that it's burned off to DVD, I want to store the whole thing on an External (Seagate) drive, in case I want to come back to it later. (For now, it's just sucking up spa

  • ITunes won't let me log in.

    I don't understand what is going wrong. I have followed every single suggestion. I recently got my old desktop pc out and hooked it up and reloaded iTunes onto it. When I first opened it an old screen name was signed in that belonged to another famil

  • Change Bankfile name outgoing and incomming.

    Hello everybody, I like the possibility to set a default filename and location for the filename of Bankfiles pro Bank. At this moment every time I export a payment file for the Rabobank with the Payment Wizard I have to change the filename. Rabobank

  • Mapping to offline media

    I copied a project from one computer to another.   All the media is contained is several subdirectories under a main project directory.  When the project is opened on the new computer all the media appears under Project Assets, but it is all offline.

  • Centring Strings in a JTable

    I am stuck with which method to call to have the strings displayed in a simple JTable centred, they are currently left-aligned. Any help would be much appreciated