stop a VI when its FP is closed

I'm having a problem getting the interaction I want between two VI, I did.  I have a high level of the VI page that allows the user to choose options for tests to execute.  When they choose a Subvi opens (and in the block diagram of high level VI, it shows the Subvi called with the green arrow to traffic it runs).  The test works very well with the Subvi and when the user is done I wish they were able to close the window.  However if you are using the X in the corner to close this PF, top-level block VI still shows this Subvi as going and gets stuck there.

Everythign works fine if you press the button stop in the Subvi, the highest level VI will continue as it should.  That would be good enough for me, but I know that other users will try to close the window and I can't let it freeze until the highest level VI each time.

I guess what I'm really looking for here is to be able to close the window of this sub - VI, but there first stop the execution so that the high level VI is not stuck.

I tried using a structure of the event that will trigger TRUE to be sent to the stop button when the front panel is closed.  The Subvi seemed just sitting there waiting for the Panel before closing rather than make the rest of its interior.  I think this may be due to the fact that I use a state machine, it does not seem to get to the next State.  When I looked with highlight execution on this subject seems to be stuck to the event now.

The lights that you can give on this subject would be greatly appreciated

You can set properties of the Sub - VI so that its front is not closable:

In this way you force the user to press the stop button.

To get control of the Subvi regardless of what state it is,

You can call it dynamically: open a VI reference and use a node "call for reference:

Now that you're able to stop via invoke node from another loop but it's

something you should avoid if you can.

Tags: NI Software

Similar Questions

  • computer Vista laptop does not stop when the lid is closed

    I have all the correct power settings. mode when the lid is closed, I tried setting Hibernate and sleep. It just keeps running and running, I'm afraid it will overheat. but it should stop when the lid is closed, correct? Thank you sissy

    Hello banditpunpun2,

    Thanks for the return of the response.  I also go to your manufactures website and confirm you are updated with the lates drivers, updates the firmware and BIOS.  I even watch the forums on the manufacturer's Web site to see if others have experinced the same question.

    Please let us know status.

  • Microsoft Arc Mouse will stop when the lid is closed

    I have a samsung R505 running vista. Now, I chose to connect it to my TV with an HDMI cable. I would like to place the laptop in a cabinet under the TV and use my keyboard and mouse wireless Arc MS, but when I close the lid of the portable computer, the mouse freezes and jumps from one point to the other when he moves. This happens when the cover is open.

    I have configured windows not to sleep when the lid is closed and I checked and my mouse drivers are up to date.

    Any help on this would be appreciated. Please let me know if you would like more information on my put upward.

    Thank you
    Chris

    Hi Chris,

    You can uninstall the mouse and try to download the latest version of the software and the mouse drivers and check.

    You can read the following article and try Method 1 to uninstall the software.

    Troubleshoot installation of Intellipoint and IntelliType LifeCam software

    You may rfer to following article to download the latest version of the software and drivers.

    ARC mouse Software and Driver Downloads

  • Inspiron 17R SE 7720 wake from its slumber when the lid is closed through the usb keyboard/mouse

    So I have an Inspiron 17R SE 7720 which has all of the latest drivers with BIOS A11 (Win 7 Ultimate x 64)...  I have all the settings properly configured for sleep power (no hibernation), however no matter what I try, I can't get the laptop to wake up when the lid is closed through USB keyboard.

    I use a combo of MK560 Wave from Logitech (unifying receiver) - keyboard and mouse have the wake-up option enabled in the settings of their material.  I also wake up from USB enabled in the BIOS.

    What is interesting is that if I put the computer to sleep with the lid open, I can do/wake it from Logitech devices.  With the lid closed, I can only do sleep - the only way to wake up, he is to open the cover and press the power button.

    Anyone know a solution to this?

    Cliffs Notes:

    Cover open: CAN sleep/wake from USB keyboard/mouse

    Cover closed: can sleep ONLY - don't wake up if I open the Start button / cover & press

    It seems that a new A13 BIOS was released on 18 March, all it says in the section '' correction '' is to "maintain the release." Download it now and see if it fixed more on the question of the USB.

  • Inspiron 15R (5537) wake from its slumber when the lid is closed through the usb keyboard/mouse

    I have an Inspiron 15R (5537) which has all the latest drivers from Dell BIOS A01 Reference (Windows 8). I have the options of closing the lid set to "do nothing" for the two battery and plugged in, but no matter what I try, when the lid is closed I can't the laptop to wake up via USB keyboard or mouse.
    The keyboard and mouse have the wake-up option enabled in the settings of their material.  I also wake up from USB enabled in the BIOS.
    What is interesting, is that if I put the computer to sleep with the lid open, I can wake him up from the keyboard or the mouse.  But with the lid closed, the only way to wake up, it should open the cover and press the power button.
    Anyone know a solution to this?
    Summary:
    Cover open: CAN wake from USB keyboard/mouse.
    Cover closed: don't wake up if I open the lid and press the power button.

    Pete,

    Depending on where you live, you will have the rights of consumers.  I live in Australia and we have pretty good consumer protection.

    I asked Dell - repair, replace it with one that works, or pay back me.

    They went away for a few weeks, and when I "called home" a few times, they acknowledged that they could not solve the problem and offered me a full refund. The laptop was picked up yesterday and I expect the refund within about five days. The guy on my "case" has been very professional!

    I guess that you informed Dell FORMALLY of the problem via a support ticket?

    I did that and followed by chat and phone calls.

    Whist, the ability to wake up via USB is not explicitly described in any of their literature, the bios has available and W8.1 has the facility.  they built it all - EXCEPT that they forgot the lid...

    see you soon

  • Firefox ends when all tabs are closed in V36

    In V35, Firefox continues to work even if all the tabs are closed.
    Now in V36, Firefox ends when all tabs are closed.
    Y at - it a configuration back to the original schema option used in V35?

    1. Type "subject: config ' in got and then press on enter
    2. Type "lasttab" in the filter
    3. find the entry "browser.tabs.closeWindowWithLastTab", right-click to toggle its value to 'false '.
  • How can I prevent the Satellite to sleep when the lid is closed?

    Hello

    I connected my Toshiba with an external HDMI monitor.
    The problem is that when I close the lid (I chose the monitors in dual options) instead of sending output to the screen external, portable sleeps.

    How can I stop the laptop to sleep when the lid is closed?

    Thank you for your time.

    Hello

    Go to control panel-> power options control
    Now on the left you will see the option called choose the closing cover

    Here you choose do nothing

    Concerning

  • NB520 - Wifi stopped working suddenly on its own

    Hello

    I bought my NB520 to Singapore.

    WIFI worked fine for almost 3 years, until very recently, I have a strange problem.
    It stopped working suddenly on its own during almost 2 weeks in June.

    Just when I was about to send it to the repair center, he returned.
    But WIFI comes on and off for a few weeks before he stabalised.
    It works well since then, up to 3 days ago, he set out again like last time.

    Usually, when I switch on the netbook, WIFI (red light) lights a few seconds.
    To use Bluetooth, I just right click on the Bluetooth icon and press "Turn on Bluetooth function" and Bluetooth turns on.

    But now when I do that, it tells me to "connect Bluetooth device".
    Is it a hardware problem or software?
    I spoke with a local technician, but she is not sure too.
    Would appreciate if you can help me with this problem. Thanks in advance.

    Kind regards
    Fionna

    > Is it a hardware problem or software?
    This can very easily get the laptop back to factory settings.
    But I guess that this is not an option for you at this time. Isn t it?

    However, the question that you talk about in your message looks like the isn t correctly chosen and active WLan.
    Usually, you can use the secret key FN + F8 to activate and deactivate the module WiFi and BT.
    Both keys would switch WLan BT as well as disable and enable the modules.

    Have you tested this in the past?

    Where the FN + F8 does not work as it should, I recommend you download the driver Wlan from Toshiba published page for this series of laptop and reinstall the driver Wlan.

    Your comments would be greatly appreciated.

  • Satellite U - Vista starts when the lid is closed

    Hello

    The title says it all!

    My girlfriend showed me her cell phone yesterday. She manually stop it on the start menu, leave for a few minutes, close the lid, then watches in joy as the computer laptop Springs revive again.

    I checked and the judgment indeed makes a stop, not a hibernation or something like that. I also changed the lid closed to "nothing" action and "stop" and I tried various methods to stop this strange behavior. My only solution was to have vista recognize the lid close like a stop action and have this control by turning off the laptop. Unfortunately, my girlfriend is a woman of routine and like to manually turn off the laptop before closing the lid, so my solution is not a long-term one.

    One thing that I've seen is that she had managed to install Uniblue Registry Booster. I quickly removed it, but wonder if it could have changed his behaviour of the laptop? Surely the fact if boots up when it is turned off when the lid is closed could not be attributed to Vista or whatever it is that was done for her?

    Thank you

    Chris

    Hello

    Can you please tell us what laptop you have exactly?

    I assume this has something to do with the alarm clock on the keyboard/LAN feature in the BIOS

  • Get the Internet script error when Internet Explorer is closed

    get internet script error, even when internet Explorer is closed. its Web site also comes in my speakers when no one is around the computer? Everyone please help my os is xp home edition

    First thing I would do is to restart the system and download MSE and install if you don't the have not already installed. Update and run. Download of Malware bytes and install and run this update from.

    Then, you can run chkdsk from the command prompt. Type chkdsk /f at the prompt and press on enter then type y to run check disk on the next reboot. Exit command prompt and restart the system to allow running chkdsk.

    Let us know if that fixes it or what the results were.

    Hope this helps,

    JB

  • CC of Photoshop closes when one photo is closed.

    In the latest edition of Photoshop CC when one photo is closed Photoshop stops in low - is this a fault?

    I solved the problem by disabling the graphics processor in versions of Preferences.Previous worked OK with verified graphics processor.

  • On incoming emails: how to stop creating customers when no Match?

    On incoming emails: how to stop creating customers when no Match?

    We have encountered a problem using the incoming e-mail. (RP08 V9.0)

    It seems that when an incoming e-mail message is processed, he tries to associate with a customer by matching the email address.  If it cannot find a match with the email, a new customer is created.  In our case with this client, they have something like 20,000 customers, but few have corporate e-mail addresses and they are employees of causality.

    We need these incoming calls to be bound to a generic customer or not, so the service desk can make a corresponding manual.  All clients are automatically filled from their payroll in a mansion controlled system, so with the current behavior of get us many customers duplicate being created, which is an administrative nightmare.

    Does anyone know how you can stop this happening and creation the link that these incoming calls to a generic customer account set in place for this purpose.

    There is no setting of system to stop this behavious, I know.  Would be nice if there was J

    Simply replace the value of the parameter in the stored procedure EMAIL_ID. All of the parameters passed to the stored procedure are used as return values (i.e. all the changes will be accepted by VSM and used to change the content of the e-mail, before it is sent to its destination).

  • Local HTML storage when the application is closed

    Hello

    I would like to know if the local storage of a html page included in an application will be saved only when the application is closed, or the machine to stop.

    Yet, I use Adobe Viewer v30 for the test on an iPad and local storage is lost when I left Adobe's Viewer.

    Thank you very much.

    Yes, he does. Using localStorage.getItem () and localStorage.setItem (), Yes? We used recently for a game of treasure hunt in our publication to record what elements have been found in different articles of the folio. He worked in the LCA for us on the iPad, but also our custom application.

  • How stop the audio when I get out of the frame AS 3?

    Hello

    Could someone find out how to stop the audio when I get out of the AS 3 mounting frame? I had around 20 slides running in a swf file. Each slide has the distinct voice on attached to it. I added slides in a layer and voice in the next layer on the timeline.

    Ago next and previous buttons placed throughout this swf to navigate between slides. This is where the question arises. I can travel easily from 1 to 20 slides and even can return trip. But the voice does not stop as soon as I click on the previous or next buttons. It overlaps with the next or previous voice just above.

    I searched online and suggested its use as channel to bring voices on the slides to have a better control. But honestly I don't know how to do. Could someone help me in doing this? This problem can be very simple for others. As I am a beginner in Flash and Actionscript, it hurts.

    Carry me nicely, if this code seems to be bit annoying and even lenthy :-(

    Thanks in advance.

    Code:

    Forward_Button.addEventListener (MouseEvent.CLICK, forward);

    Previous_Button.addEventListener (MouseEvent.CLICK, prev);

    function forward(event:MouseEvent) {}

    if(this.currentFrame == This.totalFrames) {}

    Stop();

    }

    ElseIf (this.currentFrame > = 55 & & this.currentFrame < 201) {}

    gotoAndPlay (201);

    }

    ElseIf (this.currentFrame > = 201 & & this.currentFrame < 310) {}

    gotoAndPlay (310);

    }

    ElseIf (this.currentFrame > = 310 & & this.currentFrame < 430) {}

    gotoAndPlay (430);

    }

    ElseIf (this.currentFrame > = 430 & & this.currentFrame < 530) {}

    gotoAndPlay (530);

    }

    ElseIf (this.currentFrame > = 530 & & this.currentFrame < 640) {}

    gotoAndPlay (640);

    }

    ElseIf (this.currentFrame > = 640 & & this.currentFrame < 750) {}

    gotoAndPlay (750);

    }

    ElseIf (this.currentFrame > = 750 & & this.currentFrame < 860) {}

    gotoAndPlay (860);

    }

    ElseIf (this.currentFrame > = 860 & & this.currentFrame < 970) {}

    gotoAndPlay (970);

    }

    ElseIf (this.currentFrame > = 970 & & this.currentFrame < 1080) {}

    gotoAndPlay (1080);

    }

    ElseIf (this.currentFrame > = 1080 & & this.currentFrame < 1200) {}

    gotoAndPlay (1200);

    }

    ElseIf (this.currentFrame > = 1200 & & this.currentFrame < 1310) {}

    gotoAndPlay (1310);

    }

    ElseIf (this.currentFrame > = 1310 & & this.currentFrame < 1420) {}

    gotoAndPlay (1420);

    }

    ElseIf (this.currentFrame > = 1420 & & this.currentFrame < 1530) {}

    gotoAndPlay (1530);

    }

    ElseIf (this.currentFrame > = 1530 & & this.currentFrame < 1690) {}

    gotoAndPlay (1690);

    }

    ElseIf (this.currentFrame > = 1690 & & this.currentFrame < 1780) {}

    gotoAndPlay (1780);

    }

    ElseIf (this.currentFrame > = 1780 & & this.currentFrame < 1880) {}

    gotoAndPlay (1880);

    }

    ElseIf (this.currentFrame > = 1880 & & this.currentFrame < 2010) {}

    gotoAndPlay (2010);

    }

    ElseIf (this.currentFrame > = 2010 & & this.currentFrame < 2130) {}

    gotoAndPlay (2130);

    }

    }

    function prev(event:MouseEvent) {}

    If (this.currentFrame > = 201 & & this.currentFrame < 310) {}

    gotoAndPlay (55);

    }

    ElseIf (this.currentFrame > = 310 & & this.currentFrame < 430) {}

    gotoAndPlay (201);

    }

    ElseIf (this.currentFrame > = 430 & & this.currentFrame < 530) {}

    gotoAndPlay (310);

    }

    ElseIf (this.currentFrame > = 530 & & this.currentFrame < 640) {}

    gotoAndPlay (430);

    }

    ElseIf (this.currentFrame > = 640 & & this.currentFrame < 750) {}

    gotoAndPlay (530);

    }

    ElseIf (this.currentFrame > = 750 & & this.currentFrame < 860) {}

    gotoAndPlay (640);

    }

    ElseIf (this.currentFrame > = 860 & & this.currentFrame < 970) {}

    gotoAndPlay (750);

    }

    ElseIf (this.currentFrame > = 970 & & this.currentFrame < 1080) {}

    gotoAndPlay (860);

    }

    ElseIf (this.currentFrame > = 1080 & & this.currentFrame < 1200) {}

    gotoAndPlay (970);

    }

    ElseIf (this.currentFrame > = 1200 & & this.currentFrame < 1310) {}

    gotoAndPlay (1080);

    }

    ElseIf (this.currentFrame > = 1310 & & this.currentFrame < 1420) {}

    gotoAndPlay (1200);

    }

    ElseIf (this.currentFrame > = 1420 & & this.currentFrame < 1530) {}

    gotoAndPlay (1310);

    }

    ElseIf (this.currentFrame > = 1530 & & this.currentFrame < 1690) {}

    gotoAndPlay (1420);

    }

    ElseIf (this.currentFrame > = 1690 & & this.currentFrame < 1780) {}

    gotoAndPlay (1530);

    }

    ElseIf (this.currentFrame > = 1780 & & this.currentFrame < 1880) {}

    gotoAndPlay (1690);

    }

    ElseIf (this.currentFrame > = 1880 & & this.currentFrame < 2010) {}

    gotoAndPlay (1780);

    }

    ElseIf (this.currentFrame > = 2010 & & this.currentFrame < 2130) {}

    gotoAndPlay (1880);

    }

    }

    If your sound is directly on the timeline, then change to Stream will solve your problem, but you need to change every single audio clip.

    For example if VO #1 plays frame 1 to 100, you click anywhere in this layer (where you can see the audio waveform), go to properties and flow the Sync value. If VO #2 play frame of 101 to 200, you must click somewhere in there and do the same thing. Go to the properties, press the Sync drop-down list and change the event to Stream.

    This isn't a level property 'layer '. This is a property ONLY of audio current under your cursor is in. So if you have 500 your, you need to go to each of them and the value Stream Sync event 500 times.

  • Hi, does it give apple gifts when its your birthday

    Hi, does it give apple gifts when its your birthday?


    I don't believe it. My Apple experience gives only birthday gifts to family members and a few close friends. I gave him as a gift at Christmas and Apple gives me nothing in return. I was sad. Apple is not even return my calls more

Maybe you are looking for