Closing subvi with a button?

Hi all,
i have a question here. Well i needs to put in a button in my subvi front panel so that when the button is clicked, the subvi will closed.
i needs the subvi to actually save the data during runtime in a configuration file. fyi the 'OK' button is for saving it.
attached is my program.
Attachments:
newUImotor.vi ‏37 KB

Dear nyp,
Thank you for contacting National Instruments.
To address your question, instead of placing a FALSE constant to the STOP of the outermost while loop, include constants in every case of your case statement. This way whatever happens in the case structure determines whether or not the VI closes.
Include a button in your Menu for closing your program (EXIT). Add another case (3) to account for this button. Inside this case, have a True constant wired out to STOP. From every other case, make sure to wire a False constant to STOP. If you fail to wire constants from all cases, the program will not compile without an error.
I've included the VI you sent with the new ability to close it.
Let me know if you have any further questions or
if this does not resolve your issue.
Thanks again and have a great day!
Chad AE
Applications Engineer - National Instruments
Attachments:
Stopping_Sub_VI.vi ‏40 KB

Similar Messages

  • How to create a dialog window with no button that opens along with the main window?

    When the main window is open, the dialog window opens up immediately and can be closed by key press. At other times, when the next step, ie: decision, comes to, the another dialog window pops up again and is again closed by key press. Does anyone know how to do? Use the sub-Vi? notification method? occurrence method?
    And another thing: how to create a reusable dialog window with no button so that different messages can be sent to it and it can closed by key press. And how to pass the string to the title of the dialog window programmatically?

    For your functionality (If I understand it right), nothing needs to be in the event structure. Pressing any key just triggers the event, thus finishing the VI (there is no while loop).
    Could you tell me what you mean my "it won't run properly"? Make sure that the front panel of the subVI is closed before starting the main VI. Remember that the subVI is set to "open when called" and "close afterwards if originally closed". So, if you had the panel open already, it won't of course close when finished!
    (Actually, the problems is worse when you have the subVI panel open when starting the main VI. you get a catch22 and labVIEW locks up because (1) the subVI is set to dialog and grabs all attention but (2) it has not been
    called, thus the event cannot be triggered. So don't do that!!!! As a quick workaround, add the modification shown in the attached image to ensure the panel of the subVI is closed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CloseNoButtonDialog.gif ‏3 KB

  • Integrating PL / SQL with a Button on a Web Page ...

    I would be very grateful if someone could help with the following query.
    I have a database with a table called '*Tbl1*', which contains the following columns:-
    1). tbl1_unique_id (number, primary key);
    2). tbl1_title (VARCHAR2, 200);
    3). tbl1_description (VARCHAR2, 2000);
    4). tbl1_notes (VARCHAR2, 500);
    5). tbl1_status (Open, Closed).
    I have also created a page, which displays all of the records where the tbl1_status is equal to 'Open'.
    What I would like to do is add a button to the page, which when pressed, replaces whatever information is in the tbl1_notes column with a default statement.
    I have managed to produce PL / SQL code, which will query the table and update only those rows where tbl1_status is equal to 'Open' when using the 'SQL Commands' window, but I am having trouble integrating it with a button on the web page.
    I think that I need a 'Page Process', but I do not know what type (Data Manipulation, On Demand, PL / SQL, etc) or how to set it up correctly.
    Any help you can provide with regard to the above query will be appreciated.

    Trevor,
    Navigate to the page where you would like to add the process. Add the button if you've not already done so. Then click the "create page process" button under the Page Processing column.
    Select PL/SQL and click Next >.
    Enter a Name and click Next >.
    Paste your code from the SQL Workshop and click Next >.
    Enter success/failure messages if you like and click Next >.
    Select the button you added and click Create Process.
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/apex/

  • 'Reply with meeting' button causes "... operation failed. The messaging interfaces have returned an unknown error"

    Hi all
    We're running Outlook 2010 SP2 on W7 SP1 64-bit and getting this error when clicking the "Reply with meeting" button:-
    The same error occurs whether we click this button when the message is closed or open and when we untick "close original message window when replying or forwarding".
    Any ideas please?
    Thanks
    Scott

    Hi,
    You can try if this issue persists when you switch Outlook to Exchange Online Mode:
    1.Click the File tab.
    2.Click Account Settings, and then click Account Settings.
    3.On the E-mail tab, click the Exchange account, and then click
    Change.
    4.Under Microsoft Exchange server, clear the Use Cached Exchange Mode
    check box.
    5.Exit and then restart Microsoft Outlook 2010.
    This issue may be related to 3rd-party add-ins, you can verify this by running Outlook in Safe Mode:
    Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
    If there’s no problem in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    I hope this can help.
    Regards,
    Melon Chen
    TechNet Community Support

  • Alert with no buttons?

    I want to present a simple modal alert, but with no buttons,
    instead closing it with a timer event.
    Can this be done? How?

    Hi,
    I don't think so. If that is what you want, you could try
    using a PopUpWindow.
    Hope this helps.
    Alice

  • How can i redirect to with one button to different pages!

    Hi All,
    For any application, for the first time,if a new table exists then there will no data in that table.
    based on this scenerio,in my application,i am handling apex validation staying that "you have no data. Please click here to go Reset symbol page.
    when it redirects to Reset symbol i am providing a text box and with a button. Once there enter a symbol and click on button it will inert in that table and again redirects to Home page for say-39.
    simillarly what are the functionality available in home page i had implemented same thing but only it differs page no for say-115.
    In both the scenerio's i will be redircting reset Symbol page where there can insert a symbol explained in above scenerio case.
    My problem is when i am throwing the error msg from page-39 i am redirecting to Reset symbol and when there enter symbol and click on button again i will be redirection t page -39 because the error had came from page-39.
    If the same error comes from page-115 then also i will redirecting to same Reset Symbol where there will be entering symbol and click on button, in this case it should redirect to page-115 instead of page-39 because i have got error from page-115 but not from page-39.
    How to handle the above scenerio, please help me out.
    Thanks in advance,
    Anoo.

    Hi Andy,
    Thanks for your suggestion, it is working fine..But i am facing one problem in page 115, i have two regions and both regiosn have same name but only difference is items names.. when i had tried to rediect to page-115 the umwanted one regions is showing instead of expected region. It is getting failed here bec it is rediecting to differnet region.
    Any suggestion on this!
    Thanks,
    Anoo..

  • Problems with home button on iPhone 4

    problems with home button on iphone 4

    If its due to sensitivity issues, these self help guides might help.
    http://www.youtube.com/watch?v=zNwr_mxgs9Q
    http://www.youtube.com/watch?v=lSqPC1V0PPg&feature=related
    By the way, alcohol based hand sanitisers work too.
    Don't overapply it in one go though. You'll have to allow the alcohol to evaporate.
    One final tip, after its dried, I'd recommend you to leave your iPhone's home button facing a laptop's vent just to bake it a little drier.

  • Inventory opening and closing stock with value report

    Hi All,
    Is it possible to get details of both opening and closing stock with value of each items of last financial year (2009-10) in inventory report?
    Mizan

    Hi..
    you can  try this query
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    set @FromDate =
        (Select min(S0.Docdate) from OINM S0 where S0.Docdate >='[%0]')
    set @ToDate =
        (Select max(S1.Docdate) from OINM S1 where S1.Docdate <='[%1]')
    select * from
        SELECT T0.itemcode,
        min(T0.Dscription) as 'Item Description',
        min(B1.ItmsGrpNam) as 'Item Group', W1.Whscode, C1.Location,
        (isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate ),0)-
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate),0)
        ) as [Opening Stock],
        isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate
            and O1.docdate<=@ToDate and O1.inqty>0
            and O1.transtype in (20,18)),0
        ) as [Purchase Quantity],
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate
            and O1.outqty>0 and O1.transtype in (21,19)),0
        ) as [Purchase Return Quantity],
       isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate and O1.outqty>0
            and O1.transtype in (13,15)),0
        ) as [sale Quatity],
        (isnull
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate<=@ToDate),0
            isnull((
                Select sum(isnull(outqty,0))
                from OINM O1
                where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
                and O1.docdate<=@ToDate),0)
        ) as [Closing Stock]
        FROM OINM T0
        INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
        INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode
        INNER JOIN OITB B1 ON T1.ItmsGrpCod=B1.ItmsGrpCod
        INNER JOIN OWHS W1 ON T2.WhsCode = W1.WhsCode
        INNER JOIN OLCT C1 ON W1.Location=C1.Code
        Group by T1.itemcode, T0.Itemcode, W1.WhsCode, C1.Location
    ) a
    where (a.[Opening Stock]
            +a.[Purchase Quantity]
            + a.[Purchase Return Quantity]
            +a.[sale Quatity]+a.[Closing Stock]
           ) !=0
    Regards,
    Bhavank

  • How can I switch to a different Nib file with a button

    Hi there Im working on a Xcode application for IOS and I must admit im kinda new to Objective C. This specific application requires me to switch between different nib files. I am having quite a difficult time trying to figure this out on my own so some help would be appreciated. I have got the button linked with an
    - (IBAction) but i can't quite get the coding to get the buttton to open the next application or nib file.
    Thanks ~Cal~

    What i want is that it opens an application menu with several buttons, and then you press one and it opens a new window full of buttons
    and i want it to be a mac osx app:)

  • How do i view photos in macbook pro, and while viewing how can i delete the unwanted photos with delete button?

    1 My questions are about viewing and managing photos from a folder.
    a. How do i view photos in macbook pro - i know the space bar thingy but does not help my purpose?
    b. While viewing how can i delete the unwanted photos with delete button?
    c. How can i increase the size of the photos that i am seeing in the form of icons?

    double clicking in iPhoto will open the photo.
    The left and right arrow key will move between photos, as well as swiping on a trackpad or Apple mouse.
    See >System Preference>Trackpad or mouse  for options and tut
    While selected or in the smaller icon view hitting the Delete key will delete the pic.
    Command Z will undo the last action taken.
    Periodically you have to empty the iPhoto trash.  iPhoto drop down menu>empty trash
    Same applies for viewing pics in a Folder NOT in iphoto,  Use the up and down arrows does not work in Preview, but as you know in QuickLook (spacebar) the up and down arrows will navigate.

  • How do I move a table with radio buttons to another page?

    I created a document in Word, converted to PDF, added a page (which was created in Adobe Forms Central, only way to get a table with radio buttons - see below for example).
    The issue I have is whilst using the Trial of Adobe XI Pro I was able to move this table up a page and place it under the header.  Now that the trial has run out I cannot complete this task with other documents.
    I started to edit using LiveCycle but it won't let me move the table.
    We have Acrobat X Pro but when I go to edit, it directs me to edit in LiveCycle.  I have tried moving the table using all of these programs.  Can anyone help/guide please? 

    Thank you for your reply.  I am new to editing a pdf and using these programs. I have subscribed to Acrobat XI Pro.  When I try to edit the document it directs me to LiveCycle.  I cannot move the table in LiveCycle.  It won't let me, and I cannot make changes in XI Pro as I did in the trial as it directs me to edit in LiveCycle.  Am going in circles.

  • Why is the left hand window and bar with the buttons for TOC/Search/Glossary not displaying in one client location?

    Greetings all:
    I have more years of experience with RoboHelp than I want to admit, but I have never run into this before. I have a published RoboHelp 9 project for an overseas client that displays exactly as it should when the published version is viewed by myself or another RoboHelp developer (not located where I am). However; the users at 1 of 2 two client sites do not see the left hand TOC window or the bar above the project with the buttons (the other site does see it). The users at both sites are using Internet Explorer 9, and I have been told there is no difference in their security set-up. I suspect that at the site where it is not displaying there is a security setting that is throwing it off, but I am not sure what to have them look for. Anyone have any ideas?
    W. Keith

    Do they not simply see the bar or is it empty? In the first situation, it seems they are opening the topic directly instead of via the start file.
    What is the URL the users are using on both the locations? And do the users have a hyperlink 'Show' at the top of the topics?
    Kind regards,
    Willam

  • How to get the view in editable mode with OCA button.

    Dear Experties,
    I am new to CRM WEB UI ,I have got the requirement to develope a view with OCA button on it and when i click on the button it should direct to the second view  and it should open with edit mode.
    The Source view is table type and target view is form type.
    I am able to achieve this but unable to get it in editable mode.
    I have added the below code in do_prep_output method but getting dump  at the line
    lr_entity ?= me->typed_context->EMAINLEG->collection_wrapper->get_first( ).
    The error message is
    Long text During a 'CAST' operation ('?=' oder 'MOVE ? TO')a type conflict occurred. The source type '\CLASS=CL_BSP_WD_MIXED_NODE' is not compatible for assigning with the target type '\CLASS=CL_CRM_BOL_ENTITY'.
    Please somebody help me on this
    lv_display = me->view_group_context->is_view_in_display_mode( me ).
      IF lv_display EQ abap_false.
      ELSE.
         me->view_group_context->set_view_editable( me ).
      ENDIF.
      DATA:    lr_tx           TYPE REF TO if_bol_transaction_context,
              lr_entity       TYPE REF TO cl_crm_bol_entity,
               lr_comp type REF TO ZL_BT131QI__BSPWDCOMPONEN_IMPL.
      lr_comp ?= me->comp_controller.
      Check lr_comp is BOUND.
      lr_entity ?= lr_comp->typed_context->BTADMINI->collection_wrapper->get_current( ).
      CHECK lr_entity IS BOUND.
      IF lr_entity->lock( ) = abap_true.
        me->view_group_context->set_view_editable( me ).
      ENDIF.
      lr_entity ?= me->typed_context->EMAINLEG->collection_wrapper->get_first( ).
      WHILE lr_entity IS BOUND.
        lr_entity->lock( ).
        lr_entity ?= me->typed_context->EMAINLEG->collection_wrapper->get_next( ).
      ENDWHILE.
    The following error text was processed in the system:
    Source type \CLASS=CL_BSP_WD_MIXED_NODE is not compatible, for the purposes of assignment, with target type \CLASS=CL_CRM_BOL_ENTITY
    Exception Class CX_SY_MOVE_CAST_ERROR
    Error Name MOVE_CAST_ERROR
    Program ZL_ZBT131QI_EMAINLEG_IMPL=====CP
    Include ZL_ZBT131QI_EMAINLEG_IMPL=====CM00C
    ABAP Class ZL_ZBT131QI_EMAINLEG_IMPL
    Method EH_ON_EDIT
    Line 33 
    Long text During a 'CAST' operation ('?=' oder 'MOVE ? TO')a type conflict occurred. The source type '\CLASS=CL_BSP_WD_MIXED_NODE' is not compatible for assigning with the target type '\CLASS=CL_CRM_BOL_ENTITY'.
    Thanks in advance!!!

    Hi,
    in CRM a context can consist of model nodes,  value nodes and, unfortunately, mixed nodes. While mixed nodes implement the same interface as model nodes they can't be casted into a CL_CRM_BOL_ENTITY directly. Instead you need to perform the following conversion in order to get the model node from the mixed node:
    DATA:  mixed_node     TYPE REF TO cl_bsp_wd_mixed_node,
               entity              TYPE REF TO cl_crm_bol_entity.
    mixed_node = me->typed_context->EMAINLEG->collection_wrapper->get_first( ).
    entity = ?= mixed_node->if_bsp_wd_ext_property_access~get_model_node( ).
    Best,
    Christian

  • My wife's new iphone4 (a replacement for a 5 month-old iphone 4 with home button issues) is not recognized by itunes. Every other ios device in the house using that computer and Apple ID is. Any suggestions?

    My wife's brand new iphone4 (which was a replacement for a 4month-old iphone4 with home button issues) is not recognized by itunes. Every other ios device on  the computer/Apple ID in question is recognized and syncs perfectly. Any suggestions?

    If the new phone has already been setup, make sure the phone and iTunes are both set to the same account.
    You might also have to authorize this computer for the new device under the store menu.

  • How to insert into 2 tables from the same page (with one button  link)

    Hi,
    I have the following 2 tables....
    Employees
    emp_id number not null
    name varchar2(30) not null
    email varchar2(50)
    hire_date date
    dept_id number
    PK = emp_id
    FK = dept_id
    Notes
    note_id number not null
    added_on date not null
    added_by varchar2(30) not null
    note varchar2(4000)
    emp_id number not null
    PK = note_id
    FK = emp_id
    I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
    Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
    In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
    How do I go about doing this?
    Thanks.

    Hi,
    These are my After Submit Processes...
    After Submit
    30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
    30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    50     Insert into Tables     PL/SQL anonymous block     Conditional
    My pl/sql code is the same as posted earlier.
    Upon inserting data into the forms and clicking the add button, I get this error...
    ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table EMPLOYEES.
    Is there something wrong with the pl/sql code or is it something else?

Maybe you are looking for

  • Clustering across File systems

    Folks!           I have a question... Does Weblogic support a clustering env. across           filesystems. We are running into this problem. We are using the NES proxy           lib to switch between two weblogic app server. If both are started from

  • SRW.RUN_REPORT_OBJECT 10gR2  from Forms

    Dear all, I describe my situation : I have an application Forms 9 installed in a server A. I have a report server instance 9 running in server A. I have a report server instance 10gR2 running in server B. The report of the report instance of server A

  • JAXB, element order and optional elements

    Hi, I am trying to write a program that depends on JAXB and I am encountering a number of problems. The first is that the party from which we get our XML data from is capable of sending the elements in a given element in any order and JAXB is very st

  • Why can't i use siri to get directions to one of my contacts

    If i ask siri to get directions to one of my contacts it says that it doesn't have an address for the contact even though all the information is stored in the contact

  • Signing In to Business Catalyst

    I changed the email address in my Adobe ID this morning and can't get into Business Catalyst.  I can log into Adobe but not BC.  I thought they were supposed to be the same login info?  Can someone please help????? I've tryed to change my password by