Dialog Box simulation without interrupting program flow

I'm developing data acquisition/control software and need to give the end
user flexibility to change the file to which the acquired data is being
saved during operations. In the past, users have been confused with a
simple string control that specifies the data file path, so I would prefer
to move to the popup/dialog box standard to windows. Unfortunately, calling
a dialog box results in the stoppage of program flow for the caller until
the dialog box is closed (even though there may be no apparent data flow
from the popup VI.) and stopping the program flow is not an option for this
control system (the computer is controlling pressure, temperature, flow
rates, etc of a very expensive and sensitive bit of hardware, so halting the
control function for an unknown length of time is unacceptable).
I am looking for the best way to accomplish this under LabVIEW 6i.
Using a VI class reference through VI Server, I can essentially detach the
popup window from the base program execution, spawning a separate
application and passing the relevant parameters through judicious use of
global variables. If I call the subroutine via VI server with "Wait until
done" attribute set to false, the appropriate VI appears, functions
correctly, and terminates as expected. Unfortunately, it remains visible on
the screen, an inactive application. I have the VI Properties -> Window
Appearance -> Customize -> Show Front Panel When Called and the Close
Afterwards if Originally Closed checkboxes checked on this popup VI. It
seems that calls through VI Server trigger the "Originally Open" flag, so
the window does not close as I had expected.
The way I have found to get around this problem is to use VI Server to call
an intermediate subroutine whose front panel is not displayed and whose sole
purpose it to call the subroutine that calls the dialog box. This does what
I wanted, essentially. When the user wants to change directories, they
press a button that triggers a call to VI Server to open a separate
application. This application's front panel is never displayed and only
calls a sub-VI that performs all the actual work and ends when it is
completed. As this sub-VI terminates, all visible traces of the subroutines
disappear and I'm left with just the primary program executing, continuing
to take and send control signals through this whole process.
This seems a rather cumbersome way to get a custom dialog box on the screen
without stopping the program flow of the caller, however. Is there a more
efficient way to accomplish this?
Wade C. Eckhoff
[email protected]

Wouldn't it be easier to use two parallel independent while loops in the
main vi, with one taking care of acquisition and the other of user
interaction.
When the UI loop is temporarily 'halted' because of the dialogue box poping
up, the acquiring loop continues without delay.
Regards
Harrie Boonen
www.novonordisk.com
"Default User" wrote in message
news:[email protected]...
> I'm developing data acquisition/control software and need to give the end
> user flexibility to change the file to which the acquired data is being
> saved during operations. In the past, users have been confused with a
> simple string control that specifies the data file path, so I would prefer
> to move to the popup/dialog box standard to windows. Unfortunately,
calling
> a dialog box results in the stoppage of program flow for the caller until
> the dialog box is closed (even though there may be no apparent data flow
> from the popup VI.) and stopping the program flow is not an option for
this
> control system (the computer is controlling pressure, temperature, flow
> rates, etc of a very expensive and sensitive bit of hardware, so halting
the
> control function for an unknown length of time is unacceptable).
>
> I am looking for the best way to accomplish this under LabVIEW 6i.
>
> Using a VI class reference through VI Server, I can essentially detach the
> popup window from the base program execution, spawning a separate
> application and passing the relevant parameters through judicious use of
> global variables. If I call the subroutine via VI server with "Wait until
> done" attribute set to false, the appropriate VI appears, functions
> correctly, and terminates as expected. Unfortunately, it remains visible
on
> the screen, an inactive application. I have the VI Properties -> Window
> Appearance -> Customize -> Show Front Panel When Called and the Close
> Afterwards if Originally Closed checkboxes checked on this popup VI. It
> seems that calls through VI Server trigger the "Originally Open" flag, so
> the window does not close as I had expected.
>
> The way I have found to get around this problem is to use VI Server to
call
> an intermediate subroutine whose front panel is not displayed and whose
sole
> purpose it to call the subroutine that calls the dialog box. This does
what
> I wanted, essentially. When the user wants to change directories, they
> press a button that triggers a call to VI Server to open a separate
> application. This application's front panel is never displayed and only
> calls a sub-VI that performs all the actual work and ends when it is
> completed. As this sub-VI terminates, all visible traces of the
subroutines
> disappear and I'm left with just the primary program executing, continuing
> to take and send control signals through this whole process.
>
> This seems a rather cumbersome way to get a custom dialog box on the
screen
> without stopping the program flow of the caller, however. Is there a more
> efficient way to accomplish this?
>
>
> Wade C. Eckhoff
> [email protected]
>
>
>

Similar Messages

  • Preferences dialog box: buttons without text

    Since updating Dreamweaver CC from 13.0 to 13.1, the buttons "Apply" and "Cancel" of the preferences dialog box are without text. Also clicking "Apply" has no effect, only "Cancel" works.
    Disable sync settings, and also a reset of Dreamweavers preference files within ~/Library/Application Support/Adobe and ~/Library/Preferences/ did not solve this issue.

    Just to update: Issue got resolved on a re-install .

  • Upgrade to Acrobat Pro XI on Window 8.1 downloads, installs and configures. Then pressing the launch button in the dialog box doesn't launch program.

    Upgrade to Acrobat Pro XI on Window 8.1 downloads, installs and configures. Then pressing the launch button in the dialog box doesn't launch program.

    Using the start button, Acrobat Pro should appear. But it might not, being Windows 8. Maybe it puts an icon on your desktop, maybe not.
    How about checking c:\program files (X86)\adobe\acrobat 11.0\acrobat. If you have this folder, look for Acrobat.exe.

  • Dialog Box  Problem in BDC Program...

    Hi friends,
    I am facing a problem while  creating service entry sheet no  throgh bdc ( Tcode ML81N) . I use 'no disply' mode in call transaction method.
    whenever i regarding in our development client there is no dialog box with the following screen.  But in QAS server it displays the same. I have already include the following code in my bdc program. But the dialog box  been displayed finally. Our user doesn't require this interaction. Kindly give solutions.
    perform bdc_dynpro      using 'SAPLMLSR' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'IMKPF-BLDAT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=OK'.
    perform bdc_transaction using 'ML81N'.
    Thanks & Regards,
    SP.Manavalan.

    Hi,
    Thanks for reply.
    I have checked log using SM37, it is not showing any error.
    Log details are as follows...
    Date       Time     Message text                                                                             Message class Message no. Messag
    08.05.2010 11:47:10 Job started                                                                                00           516          S
    08.05.2010 11:47:10 Step 001 started (program ZSDB_J1I5_REG_UPDATE_BDC, variant 1101_1_RMA, user ID STK)      00           550          S
    08.05.2010 11:47:20 Job finished                                                                                00           517          S

  • How to get mac to open dialog box before opening specific program?

    Hi
    I was wondering if there is a way have my computer ask me before opening a spacfic program. I have a program with a limited number of start-ups (demo) and would like a safe-gaurd from opening it unnesscaraly when clicking through files. Can this sort of dialog-box function be eneabled?

    Try:
    My mac keeps on asking me for keychain passwords ...which I have either forgotten or never used
    Frequently asked questions about iCloud Keychain

  • Need help regarding Modal dialog box in module pool programming

    Hi experts,
    my program need a dialo box to popup and take some data and on pressing save button in the dialog box, the popup should close and the values in the previous screen should be updated.
    my problem is, when i execute the program, i am unable to close the dialog box. i tried use sy-ucomm but found it of no use.
    please tell me the way to access the close button in the dialog box.

    Hi,
    Use the function module :-
    Call function ‘LC_POPUP_TO_CONFIRM_STEP’
    Exporting
    TEXTLINE1 = ‘YES’
    TEXTLINE2 = ‘NO’
    TITEL = ‘R U WANT TO SAVE’
    Exporting
    ANSWER = ‘Y’.
    IF SY-SUBRC = ‘Y’.
    LOGIC TO SAVE DATA….
    ENDIF.
    REGARDS,
    Mekala vijay

  • Save Dialog Box

    Apparently I am in the extreme minority, but I really do miss the save dialog box when saving attachments in Mail. Is there anyway to kill off the automatic saving to the Downloads folder? And no I am not interested in merely moving the default from automatically saving all attachments to Downloads to automatically saving to some other folder.
    I maintain some 2000 plus clients and multiple projects for each client on my hard-drive. Each client and project is set up in hierarchical folders. I have been too busy recently to go through the Downloads folder and move the downloaded attachments to the proper client and project folders so my Downloads folder built up a sizable backlog. After spending more than two hours just moving files from Downloads to the folders where they are supposed to be I have finally reached my breaking point.
    Prior to the creation of the Downloads folder Mail would offer you a save dialog box like most other programs and you could navigate to where you wanted particular files saved. Is this just impossible to do in the current incarnation?
    I am almost positive this is not something that can be fixed through the standard preferences dialog box, but I am hopeful that it may be one of those things that can be edited in the plist file. Any ideas?

    The Downloads folder defined in Mail/Prefs/General is just to temporarily store decoded attachments.
    The Save dialog is available by pressing *and holding* the Save lozenge button next to the attachment(s) in the message header header, or right-clicking/save attachment on files visible in the message body.
    (Having to click and hold the save button to get something useful is extremely bizarre, and IMO broken)
    You can also drag and drop items from the message to a Finder window or whatever.

  • How to Show a Model Dialog box in a JApplet

    I have a JTable in a JApplet.
    I need to display a JDialog box as a Model Dialog. The JDialog expects a Frame as parent. How do I create a Frame and show my own dialog box? without a parent Frame the dialog shows up as a Modeless dialog box.
    Any help would be appreciated.

    I found the answer in
    http://www.jguru.com/faq/view.jsp?EID=27423

  • Which shortcut can I use to move the highlight in a dialog box to the first field in the dialog box?

    I am working with FrameMaker 10. There used to be a keyboard shortcut  for moving the highlight to the first field in a dialog box. Without  this command I do not know how to move the highlight to the field I want  to modify. I assume the highlight is on a random field when my script  enters the dialog box.

    In iPhoto
    You need to switch Photo Stream on from System Preferences > iCloud not from iPhoto.
    See instructions here >  iCloud - Learn how to set up iCloud on all your devices.

  • No Dialog Box available for printing

    All of a sudden my print dialog/preview box is not showing in my PS CS6.  Everytime I try to print I get an error message saying:  There was an error opening your printer. Printing functions will not be available until you have selected a printer and re-opened document.
    I see no place to pick a printer as there is no longer a dialog box.  All other programs on my network have no problem with choosing a network printer.  Please help. 

    @jaguar1969 - I had the same problem and note that it occurred when the default Windows 7 printer was set to a printer that was actually hosted on a printserver. I changed the default printer to something other than "network connected" and the problem went away. I'm still able to print to a network printer from Photoshop, just not able to have any network printer set as default.
    Jim

  • Sms send message VI Dialog box

    Whenever I get an error using the SMS Send Message.vi I get a dialog box that disables my program unless I manually answer the prompt.  Can NI (or anybody else) please
    1. Have an option to disable the dialog box
    2. Unpassword protect the VI so I can do it myself
    3. Give me some other option I missing.
    Thank you
    Robert

    Hi Robert,
    Since the Clear Errors VI is not available with a PDA application, you can use a case structure to clear errors instead.  Wire the error out of SMS Send Message to the case selector.  In the Error case place an error cluster constant (right click on error out and Create >> Constant) to pass through the remainder of your program.  For the No Error case, pass the error wire straight through. 
    Message Edited by Jennifer_R on 02-04-2008 06:54 AM
    Jennifer R.
    National Instruments
    Applications Engineer
    Attachments:
    Clear Error.JPG ‏5 KB

  • Labview pauses when dialog box displayed

    When I display a dialog box in LabView, the program waits for the user to click ok. I would like for the program to not wait but keep running after it displays the box. How can I do this and how can I customize the dialog box?

    You drop an Invoke Node from the Application palette onto the block diagram, wire up a reference to the subVI, right click the invoke node and select the method. There's an example here that shows how an invoke node is used to make a front panel visible. There are other examples on the developer zone and several have been posted to this forum. You question seems to pop up once week or so and a little searching of the forum will give you a lot of examples.

  • PC-UI Dialog box

    Can a dialog box raised without an message ? and what is the difference between event and action_event in blue print ?

    As I said , an action_event is just a type of event.
    Basically when you define an event in blueprint customizing(crmc_blueprint_c->Application Element->event) and then assign it to a message(crmc_blueprint_c->navigation for log messages->assign message log to navigation) it becomes an action_event .
    You can check out my weblog
    /people/sap.user72/blog/2005/06/07/customizing-popups-in-people-centric-user-interface
    which shows the customizing for popup.
    The event and action_event are shown there.
    Regards,
    Satyadeep
    Message was edited by: Satyadeep Dey

  • How can a dialog box close itself?

    I have a dialog box which displays a little form for some extra information.  I have some non-standard buttons which are under my control.  The form is created as a view in a window which is launched by CREATE_WINDOW.
    I want the window to be able to close itself.  The concept is easy - get a ref to the window, then call close( ).
    But I cannot find a way to get a reference to the window from inside the window.
    Here is my current solution which I do not like, but it works.
    I create a context node 'POPUP' which has an attribute ME of type ref to if_wd_window.
    When I create the window, I do this:
    lo_window         = lo_window_manager->create_window( ... )
    lr_node = wd_context->get_child_node(   'POPUP'   ).
    lr_node->set_attribute( exporting name  = 'ME'
                                          value = lo_window ).
    lo_window->open( ).
    In the window, it gets ME out of the node, and does a lr_me->close( ).
    But there is a better way, right?  How does a dialog box close itself under program control?
    I should add that the dialog box is displaying a view from a used component, so POPUP is defined in the used component and mapped into the context of the using component. I don't think this changes the problem, though.

    Hi
    Try this following code in method of button you have created for popup i.e  method for example  ok,cancel etc in the view which you have emebedded in ur window for popup.
    Close the popup
      DATA:
        lo_api         TYPE REF TO if_wd_view_controller,
        lo_window_ctlr TYPE REF TO if_wd_window_controller,
        lo_popup       TYPE REF TO if_wd_window.
      lo_api         = wd_this->wd_get_api( ).
      lo_window_ctlr = lo_api->get_embedding_window_ctlr( ).
      lo_popup       = lo_window_ctlr->get_window( ).
      IF lo_popup IS BOUND.
        lo_popup->close( ).
      ENDIF.

  • Dialog boxes looking strange

    Since the last update to the OS, all of my dialog boxes and even some programs have looked strange. Here are some examples:
    http://cl.ly/1RU
    http://cl.ly/1QF
    http://cl.ly/g5
    Does anyone have any idea what could be going on or how I could go about fixing it?

    I finally had time to reinstall the OS from the DVD. I did not reformat and reinstall, just a reinstall. It did not work, my dialog boxes still look wrong. Does anyone have any other suggestions?

Maybe you are looking for

  • Best Way to Connect MacBook Pro (without Mini Display Port) to HDTV?

    Hello, Although I am fairly confident that I know at least one answer to this question, I thought it would be best to pitch it to the members of Apple communities, just to see if there is a better way to get to where I need to go. I have a MacBook Pr

  • How do you install Windows 8.1 on a system with multiple hard drives?

    Specifically a system with a User folder located on more than one drive. I have programs installed on both drives in order to save space on one (a small SSD boot drive). Upon trying to install windows 8.1, the Windows Store tells me my PC can't run W

  • Outlook 2007 Folders do not synch to iPhone w/ mobile me and two issues

    My gmail account set up and accessed by Outlook 2007, syncs all the folders to the iPhone via imap to Mobile Me. Great! 1.) Outlook also is used for my Verizon pop account and none of the folders synch via mobile me to the iPhone. Help! This is frust

  • View access on triggers

    Oracle DB version 9.2.0.6.0 on HP Unix - Itanium 11.23 Is it possible to give view access on triggers to the developers. I just want them to view the code. I need this so that when the Application Users receive in error due to the triggers created ,

  • Elements 12 organizer quits unexpecteldy on iMac

    I am new to Mac. I downloaded Elements 12. The organizer quits unexpectedly about every ten minutes. How do I fix this problem?