Stopping a SubVI without stopping the main VI

Hi,
I have a VI with two SubVIs which are being executed sequently, with the second SubVI waiting for an user event in the first SubVI. The SubVI front panels are open and used as the user interface when they are executed. When I push the stop button on the second SubVI's front panel, I do not want the whole VI to stop, but only that SubVI and execute the first SubVI once again.
Does anyone have any idea how to achieve that?
Thanks,
LordSnow.

P@Anand wrote:
LordSnow wrote:
Hi,
I have a VI with two SubVIs which are being executed sequently, with the second SubVI waiting for an user event in the first SubVI. The SubVI front panels are open and used as the user interface when they are executed. When I push the stop button on the second SubVI's front panel, I do not want the whole VI to stop, but only that SubVI and execute the first SubVI once again.
Does anyone have any idea how to achieve that?
Thanks,
LordSnow.
I am bit confused of what you try to achive. How you are executing your sub vi's if you can attach your ode it would be easy to see what you are trying to do.
Regretfully, I can't upload my code. Therefore, I will try to be more precise in my description. I open the main VI and execute it. This opens and executes the first SubVI, which waits for the user to interact with the front panel. Once this interaction has taken place, the second SubVI is executed which includes pretty much all the code there is. When I did everything I wanted to do in this second SubVI I push the previously mentioned stop button in order to stop that SubVI and that SubVI only, but right now all the VIs stop. My intention is to open the first SubVI again after I stopped the second SubVI.
Does that help?

Similar Messages

  • I can't stop my music without turning the ipod off

    I can't stop my music without turning the ipod off

    Try the standard fixes:
    - Reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod.

  • My i-touch music is interrupted by voice memo. the music also fast forwards, changes tracks or stops and starts without touching the i-touch

    my i-touch music is interrupted by voice memo. the music also fast forwards, changes tracks or stops and starts without touching the i-touch. can you help?

    Try the standard fixes:
    - Rest. Nothing is lost
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defauslts/new iPod.

  • HT204370 I JUST purchased a movie then when i stopped it to go to the main menu my movie was gone.

    I just purchased a movie then when I stopped it to go to the main menu the movie was gone

    I just did, it says that all purchases have been downloaded for this account.

  • MASTER/SLAVE PATTERN: how to stop slave loop without stop main loop

    Hi All, I am studying the master/slave loop and saw an examples are like this (only master block shows)
    From this case, as I understand, if we click "set" button, slave loop will run. If we click this button again to mak it "Flase", the slave loop will be stopped as well as the main loop will be stopped as well.
    Now if I have a multi-function main loop, I just want to start or stop slave loop when click "set" button, how can I do it? Thank you very much! 

    bhl3302 wrote:
    From this case, as I understand, if we click "set" button, slave loop will run. If we click this button again to mak it "Flase", the slave loop will be stopped as well as the main loop will be stopped as well.
    Your understanding is completely wrong.  There is nothing in the image you show that would stop either loop.  In this situation the "set" button would normally have a latching mechanical action, meaning that when it is pushed, it will stay true until it is read once, at which point it will return to false.  Placing the control terminal inside the event case causes the terminal to be read and resets the button to false.  With a latching mechanical action, there will be only one event generated even though the boolean will change value twice (from false to true, and from true to false).  You'll never have a situation where you push the button once to set it true, and again to set it false.  However, even if the mechanical action is switching, not latching, it still won't make a difference here - the event case does the same thing whenever the value changes, regardless of whether it's true or false.

  • How to stop a session without use the kill

    We are developing an application client/server using DELPHI and ORACLE (10.1.0.5.0).
    Into our application we would like to have the a button to stop a query on the database.
    Delphi programmers explain me that they are unable to implement that function because DELPHI is unable to stop a query started into a thread: if you start the query into the main thread, DELPHI can stop the query.
    So they ask me if they can kill the session using the ALTER SYSTEM KILL.....
    What do you think about it?
    Do you have any suggestion to resolve the problem?

    Of course, if your query is running, this is not a solution, you should have the hand to run an "alter session". And if your query is running, you have not.
    So, in your Delphi application, you fire a query, and if no response after some time, you want to allow the user to cancel the query, right ? Like there is such button in Toad ? It is more or less a simulate of CTRL-C in SQL*Plus. Maybe some specific Delphi function.
    Nicolas.

  • How to load different html files in one page in order to load them without leaving the main stage?

    Hello,
    I'm new with edge animate, but i fell in love with it.
    I'd like to know, is it possible to load different html pages dynamically in the main stage in order to avoid the preloader to be load?
    I can figure out how to save all the pages of the site, but i can't merge them in a continuous animated browsing experience.
    As sample.
    I've got a index.html and home.html, how to switch form index to home without having a clear division between the two pages?
    I can place all the animations within a file and this will allow me to have a continuous surfing experience but it won't generate specific and google indexable pages within the site.
    Example, index.html will generate www.mysite.com, home will generate www.mysite.com/home. How ho switch dinamically between them and integrate them in a unique fading experience?
    Thanks in advance for any help. I'm a newby, but i would like to learn.
    Fea.

    Look into using the Loader class to load the swf files.  If you want to have it happen in different frames then you can put the code into the different frames.

  • How do I only show thumbnails in the photo gallery without showing the Main Image?

    Hello,
    I need help customizing the Spry Photo Gallery Demo...
    I would like for the Main Image To Be Hidden when the html
    page loads. After the user clicks the thumbnail, I would like to
    have the Main Image load centered on the page(with div containing
    close button) on a z-index above the thumbnails. While the
    thumbnails layer has a fade effect to 10%. After the user clicks
    the close button the Main image disappears and the thumbnails layer
    fades back to 100%. Then the user can click another thumbnail and
    so on and so forth...
    Is this possible? I have tried everything I can think of with
    my limited knowlege of spry and cant get it to work. I just need
    help with the Large image part. The close button and fades I can
    handle.
    Any help would be most appreciated. Please let me know if
    further information is needed from me. Thank you in advance.

    There is a third-party program called Attachment Tamer that will do that for you.  In the Terminal, you can type this:
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes
    Also note that while Attachment Tamer does some things with the encoding that makes certain email clients display the item as an attachment, what shows up at the receiver's end is solely dependent on their email client and its settings.

  • Call a methode without opening the main view

    Hi,
    I have a function that calls a web dynpro application. The handledefault methode of the window from this web dynproapplication searches for a url of a picture and opens it with my browser.
    This works well.
    But there are two windows open: my picture and the empty web dynpro main view.
    How can I stop this? I just want the window with my picture.
    Thanks,
    Martina.

    Hi Manigandaan,
    I deleted  the empty main view from the webdynpro window.
    But the result is always the same:
    1 empty window and
    1 window with my url
    this is the code in the handledefault (after the data declaration):
    DATA lo_window_manager TYPE REF TO   if_wd_window_manager.
       DATA lo_api_component  TYPE REF TO   if_wd_component.
       DATA lo_window         TYPE REF TO   if_wd_window.
       DATA ld_url            TYPE          string.
       lo_api_component  = wd_comp_controller->wd_get_api( ).
       lo_window_manager = lo_api_component->get_window_manager( ).
    ld_url = lv_doclink.
      data lo_api_controller type ref to if_wd_view_controller.
      data lo_window_ctlr TYPE REF TO if_wd_window_controller.
      lo_api_controller = wd_this->wd_get_api( ).
      lo_window_ctlr = lo_api_controller->GET_EMBEDDING_WINDOW_CTLR( ).
    * get the control for window to be closed
      lo_window = lo_window_ctlr->get_window( ).
    * this will close the window
      lo_window->close( delete_window = abap_true ).
    if the ld_url is i.e. 'http://www.google.com' I get one browser window with google and another
    browser window which is empty. The URL of this empty browser window is the url with which
    i called the web dynpro application. But I don't need this window, how can I avoid this?
    Thank you very much!!!
    Martina

  • My screen on IPad2 temporarily blacked out; now I cannot collapse without using the main home screen button

    My screen on the IPad2 temporarily blacked out, Now when trying to collpase apps with finger tips the screen does not respond.  Anyone with this issue?

    Sounds like it is dying. Is it still under warranty? If it is, I suggest you take it to Apple and ask them to repair it.
    Allan

  • I am having trouble stopping a sub VI from the front panel of my main VI.

    Whenever I try to stop my sub VI from the main panel i cannot get it to work. It has entered the value of the switch from the main VI and does not update it within the sub VI after it has started the sub VI and hence does not look for a changed value on the switch. Is there any way that I can get the sub VI to check the state of the switch on the Main VI on each loop?
    Thanks
    Ross H

    Hi,
    I am including 3 VI programs, here main vi controls the sub vi, i mean sub vi can be stopped either from main vi or from stop button put on its front panel. Also main vi still works incase sub vi is running.
    Hope it works. If above does not answer your problem completely, Pl. do write.
    Best Regards,
    Nirmal Sharma
    India
    Attachments:
    Main_Vi.vi ‏56 KB
    sub_vi.vi ‏25 KB
    global_stop.vi ‏6 KB

  • Why does a movie or TV show stop during play and then takes you to the main ATV icon screen?

    This weekend while watching a movie it stopped and went directly to the main ATV screen?  Also while watching TV shows I witnessed the same issue about halfway through each.  Also, when returning to the movie or TV show it acts like the first time viewing and does not give you the option to resume playing.

    Same issue, just cuts out to black and then goes back to the home screen.  Happened about 4 times while watching one TV show. I'm using Software version 6.0 (6646.65)

  • Start and stop data saving while running the vi

    Hi everybody!
    Maybe someone can help me on this topic:
    I
    would like to run a vi which displays voltage values on a waveform graph without saving the values automatically. But - while running the vi - I would like to have the option to
    save the data. That's why I created a switch (on: save data, off: don't
    save data). I wanted to wire the switch to a case structure, but I
    don't know where to put the case structure and the "open/create
    file-vi". If I put both into the while loop (where I write the data to
    the spreadsheet file) then - of course - it asks me with every run of
    the loop where to save the data.
    If I put the "open/create file-vi"
    outside the loop it asks me at the beginning of the application where
    to save the data, even though I maybe don't want to save data.
    I don't know if it's understandable what I mean:
    If
    I run then vi I would like to see the data without saving it first
    (on the waveform graph), then I maybe would like to save it, so I
    want to press a button to save the data. The vi should ask me where I
    want to save the data while still running. I would also like to stop
    saving data without stopping the run of the vi. Maybe I would like to
    save data to another file within the same run.
    Do you know what I mean?
    Thank you very much.
    Kind regards,
    Steffi

    Hi Steffi,
    your first solution was ok as long as you don't restart the vi without removing it from memory before.
    When loading the vi into memory the shift register (SR) is reset to zero and is keeping the value from last iteration.
    Now you initialized the SR in each iteration to zero, hence the 0-0.250 range of the time scale. To keep the last value you can use another SR as shown in the attachment or use some math based on the iteration count (start time= i * 0.25).
    You should only learn from this: initializing SRs makes your vi more reliable... A SR is nothing more than a variable in text based languages, so keep them initialized!
    Message Edited by GerdW on 11-07-2007 01:27 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    ekg2_mod.vi ‏394 KB

  • How can I display data gathered in a subVI in a graph of the main VI?

    I have written a largish application (~50 VI's) which acquires, analyzes, display and saves data from an instrument with a built-in DAQPad. My problem is that my block diagram is rather messy by now. I'm using an event structure in my main VI which reacts to buttons being pressed on the front panel. During data acquisition (one frame of the event structure), I need to do a lot of data processing, and I'm displaying both raw data and analyzed data on the front panel. I'm using a lot of subVI's for this, but I always need to get data out of the subVI's again to display it on the front panel, cluttering my block diagram. It would be much nicer if the subVI could update the main VI's graphs and indicators. I just found two examples with control references which show how a subVI can modify e.g. a 3Dgraph of the main VI, but I'm unable to use this with normal graphs and charts - I can't find a way to update the actual data in the plots (I can scale the plot or color it blue etc - but I really want to change the data it's displaying, not color it blue). Is there anything I'm missing? Is there example code for this kind of problem?
    best regards
    Martin

    im assuming that you want to update your graphs and indicators as you are performing your DAQ, otherwise, you can pass out your value/s when the DAQ completes.
    I have attached a very simple example of using a reference to update your front panel graph.
    Hope this helps.
    Attachments:
    Reference Example(LV7.1).zip ‏17 KB

  • How to initialize the variables in the subvi when the main vi running?

    Hi, friends!
    Now I am working on a project with labview. I make a main vi  including many subvis.
    When the main vi running, I want to reinnitialize the variables in the subvi to zero.
    I know that I can realize that  using the local variable when I enter the subvi,
    but I want to keep the the values when I left the subvi and saw them when I
    click in this subvi again. So, I do not reinitialize the subvi when it runs. But, I
    don not know how to reinitialize the indicators in the subvi when I run the main
    VI in the first instance. I try to use the global variables, but it seems do not work
    well. Would you like to give me some advice? Thanks a lot!

    Hi dec,
          If I understand your question, try using the "First Call?" node in your Sub-VI - to initialize values the first time the VI executes every time the top-level VI is Run.
    If this doesn't work for you, just post again!
    Cheers.
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Maybe you are looking for

  • Time is not being displayed in the menu bar.

    Hi, I this morning i woke my mac from sleep to find that it is not displaying the time in the menu bar anymore. How do i fix this?

  • Searching in Mail AND Spotlight does not reveal BCC recipients

    Dear Folks: Searching in Mail does not reveal BCC recipients. I found a post pointing this out from 2006. There were no replies and you cannot reply if you try, it been "archived." Does that mean Mail simply does not search BCC's? What's really weird

  • Deploying a project from Jdeveloper

    I have created a project consisting of four classes, in order to connect webservices (Content Services). I want to be able to deploy this project from different client machines based on Operative system timer such as "AT". How do make a deployment se

  • Location Bar not automatically going to pages

    I like Firefox 4, but a very important feature that I loved that was only even in Firefox was not to be found in 4.0 but it was in 3. Firefox would automatically redirect me to pages that would often appear first in Google when I typed them in the lo

  • New to Reports

    HI .. Please give me any good online tutorial Link that can me make me master in oracle reports ..