How to stop the VI and a Sub VI together

Hi, in my application, I have a vi with a state machine with a loop of event handler. One of the events in my loop of event handler is out who runs the State of the output of my state machine. I also have an under vi outside my statemachine.

The problem:

1. at the exit of pressing my Vi does not stop.

Reason: my sub vi is still running.

Need solution : How tp stop the two loops together using the exit button.

StateMachine P.S:1.My is inside a while loop and while loop runs inside my sub vi also.

2. both the loops are parallel, since I'm on queues in it.

2. both the loops are parallel, since I'm on queues in it.

There are many ways, depending on your architecture.

Can pass you a message from out of your event loop to your another loop on the queue?

Another way is to use a global Boolean variable 'Stop' and use it in your second loop exit condition. Set it in the event loop when you want to stop the program.

The producer consumer example stops the second loop by closing the queue during the first loop stops and then to capture the error when the second loop trying to read the queue.

Tags: NI Software

Similar Questions

  • Could someone tell me how to stop the folders and icons rearrange themselves

    Before I updated to El Capitan I could arrange the files on my desktop or in any folder in the finder, in order that, I opened I wanted and they would REMAIN THAT of the WAY. Now, folders and icons in the folders reorganize themselves, usually in alphabetical order, each time that I add, delete, or move something in a folder. This causes a serious pain for me and make my extremely inefficient workflow.

    I managed to stop the folders on my desk of reorganization by going to view > options > sort by selecting: None (thanks Mac forum) and I can do this in a folder if I want to rearrange things myself, but I seem to need to do this individually for every single folder and there is no guarantee that the next time I turn on my computer it will be always in that order. El Capitan before I could move my files manually on my desk and in a folder and if things got a little messy, or I wanted to start, I simply chose sort > by name and everything would be perfectly back to alphabetical, as a grid, on the right side of my screen, or in a grid at the top of a file. AND... If I wanted to manually move a folder or icon after sorting by name, I could still do it, without having to go to tri: No. Now, if I say sort: None, which seems to be the only way to manually sort the icons or folders, all of a sudden my own grid of files are everywhere in my office or mixed into a folder, unlike before where they would simply stay in a grid in alphabetical order, making it much easier to find things when manually reorganize. In my workflow, I need to be able to fix things and make them stay there, then, how do it works as before. Is could someone please tell me if there is a simple way to get things to work like they used to, when the only time where my files or icons arranged themselves was when I SAID to THEM, keeping in mind I'm not that computer, so if it's code, or go beyond the preferences or settings , you've lost me.

    Click on the desktop, command J > sort by none

  • How to stop the header and printing

    Every time I print a page from my web browser Firefox 8 he also sent to the printer a header containing the name of the page and the URL and at the bottom of the page, it prints a trailer that consist of a page number, for example, 1 of 2 and a date and a time.

    How can I stop this?

    The trailer is causing havoc when I print on ebay mailing labels. Ink is having smeared a page printed to another.

    Firefox has always done, but now that I use in two labels Avery labels (8.5x11.5) leaves split is causing problems. Once half the label upper he used I have Flip on and printing on the other half. The part 'used' label will not ink, where the problem of smearing with the trailer.

    Firefox button >-> Page Setup = print margins & header/footer

    Do the pref for all 6 items in the low - vacuum-

  • How to stop the download and installation of the el capitan operating system

    my download of el capitan has started, but I stopped it because of very bad reviews of this new operating system. How can I permanently stop/block the download and subsequent installation of el capitan? Please LMK. I thank you and have a wonderful holiday season!

    You can expect so he can finish and then delete the installation program. However, there is nothing wrong with El Capitan. Each version of Mac OS X over the past 20 years has had bad reviews. That's what the media. I use it on four computers with no problems.

    Complete the download. You can always install on another partition or an external drive so you can see for yourself. Do not forget that make you a backup of your current system.

  • How to stop the wallpaper and screensaver to automatically change

    original title: Windows 7 Home Premium 64-bit wallpapar and screensaver continue to change. How can I stop this?

    Hello

    Just had brand new laptop and I am setting up the way I like it. Every day my wallpaper and screen saver change on me and I can't figure out how to stop this. It's so frustrating.

    I online have looked for a solution, but fails. Help, please.

    I had the same problem.  This would change all the time and I have to go to personalization and deliver it to a blue background.  No matter how I configured the settings in Windows, the background would still change.

    Eventually, I realized that this is the toolbar Bing control my background image.  To disable, click on the 'i' icon in the Bing toolbar, and then clear "change wallpaper in bing every day."

    This solves the problem for me.

    1. click on 'i' on the Bing toolbar.

    2 uncheck the box to change the wallpaper.

  • How to stop the Animation and Audio

    Hi friends,

    I created the animation with Audio scenario. My Question is less

    1. When I stop the animation of "sym.stop" () code Animation is stopped but no audio should be.
    2. is it Possible audio sync with flash animation.

    Can someone help me

    You must insert a pause in the timeline or add pause() methods in the code:

    • Select the sound element

    • SYM.$("music") [0] () .pause;
  • How to change the text and block of text together by specifying the measures

    Hi all

    I have a block of text that is 200 mm wide (for example) and must be able to scale proportionally, as well as the text that it contains, by specifying the new width in mm (rather than as a percentage). Can someone tell me if this is possible? I use InDesign CC 2014.

    Thank you very much

    Jason

    Just use either scale field in the control panel (NOT the height or the width area - those who say % use) and enter any value and the units of your choice. No units specified by default, %, but if you add mm, pt, in, etc. to the value ID will do the required calculations.

  • HOW TO STOP THE NEW ADS ON FACEBOOK... THEY ARE FRIGGIN BORING AND REEK HAVOC WHEN YOU PLAY... PLEASE ME TELL HOW TO BLOCK THEM!

    How to stop the new ads on Facebook

    I get very annoyed by ads to where they are on the web so I use an add-on called 'Adblock Plus' which uses its database to block known ads and you can even block yourself!

    With 'Adblock Plus Adblock Plus ' installed, you can block all advertising photo:

    1. right click on the announcement of photo that you want to get rid

    2. in the menu, click the option that says: ' Adblock Plus: block image... "(it is usually at the bottom of the menu)

    3. when the pop up box appears, simply click 'Add filter' and advertising will disappear before your eyes!

    If this was the answer you are looking for, please click 'Resolved' - thank you.

  • How to stop the log in page and continue straight on the desktop at boot?

    Original title: desktop

    How to stop the newspaper in stright page and go to the desktop page when starting

    Hi Ms.HarleyChic,

    Windows operating system you are using?

    If you use Windows 7, try the steps in the following article and check if this can help:

    Enable or disable a secure connection (CTRL + ALT + DELETE)

  • How to stop the red symbols to appear when I use the question mark, the apostrophe and slash keys. This only happens in my e-mail program.

    How to stop the red symbol to appear when I use the key question mark in my e-mail program.

    HI Julie Delany.

    1. for how long are you facing this problem?

    2. is there any changes made prior to this issue?

    3. may I know what mail client do you use?

    Disable the function key (lock) and then check

  • How to stop the blue e screen to start the computer and also if you try to download anything

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    How to stop the blue e screen to start the computer and also if you try to download anything:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    We need numbers BBCode or Code to stop the bluescreens and utilities below will help you
    provide us information. Also the methods here can help you solve the bluescreens.

    Look in the Event Viewer to see if something is reported on those.
    http://www.computerperformance.co.UK/Vista/vista_event_viewer.htm

    MyEventViewer - free - a simple alternative in the standard Windows Event Viewer.
    TIP - Options - Advanced filter allows you to see a period of time instead of the entire file.

    http://www.NirSoft.NET/utils/my_event_viewer.html

    -------------------------------------------------------------------------

    Here are a few ways to possibly fix the blue screen issue. If you could give the info from the blue screen that would be
    Help. Such as ITC and 4 others entered at the bottom left. And any other information such as STOP error
    codes and info like IRQL_NOT_LESS_OR_EQUAL or PAGE_FAULT_IN_NONPAGED_AREA and similar messages.

    As examples:

    BCCode: 116
    BCP1: 87BC9510
    BCP2: 8C013D80
    BCP3: 00000000
    BCP4: 00000002

    or in this format:

    Stop: 0 x 00000000 (oxoooooooo oxoooooooo oxoooooooo oxooooooooo)
    Tcpip.sys - address blocking 0 x 0 00000000 000000000 DateStamp 0 x 000000000

    It is an excellent tool for displaying the blue screen error information

    BlueScreenView scans all your minidump files created during "blue screen of death," collisions
    Displays information on all the "crash" of a table - free
    http://www.NirSoft.NET/utils/blue_screen_view.html

    BlueScreens many are caused by old or damaged drivers, video drivers in particular, but there are other causes.

    You can follow these steps in the Safe Mode if necessary or the command prompt Vista DVD or Options of recovery if your
    system installed by the manufacturer.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    You can try a system restore to a point before the problem started when one exists.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    -------------------------------------------------------------------------

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    The log can give you the answer if there is a corrupted driver. (Says not all possible driver problems).

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -------------------------------------------------------------------------

    Often drivers up-to-date will help, usually video, sound, network card (NIC), WiFi, 3rd party keyboard and
    smile, as well as of other major device drivers.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    -------------------------------------------------------------------------

    How to fix BlueScreen (STOP) errors that cause Windows Vista to shut down or restart unexpectedly
    http://support.Microsoft.com/kb/958233

    Troubleshooting, STOP error blue screen Vista
    http://www.chicagotech.NET/Vista/vistabluescreen.htm

    Understanding and decoding BSOD (blue screen of death) Messages
    http://www.Taranfx.com/blog/?p=692

    Windows - troubleshooting blue screen errors
    http://KB.wisc.edu/page.php?id=7033

    -------------------------------------------------------------------------

    In some cases, it may be necessary.

    The Options or Vista recovery disk Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How to stop the side menu of Adobe ExportPDF running in all my software and the blocking of the screen?

    How to stop the side menu of Adobe ExportPDF running in all my software and the blocking of the screen?

    Hi B Faro,

    I'm not sure that I am. You are in Adobe Reader and see ExportPDF option in the tool pane on the right side of the application window? If this is the case, you can hide the toolbar by choosing View > show/hide > elements Toolbar > hide toolbars.

    Please let us know if that does not address your concern and provide more details about the problem you are having.

    Best,

    Sara

  • How to stop the music in the iOS download

    How to stop the music in the iOS download songs? I accidentally clicked (stupidly) songs to download all the purchased. It will take some time and fill out my iPhone with music. I tried restarting and that did not help. It is also a priority on updating apps from the App store. I use the latest version 9.3.2 iOS iPhone 6.

    Thank you

    I will try to put the device in Airplane Mode, then signature of the iTunes and the App Store. Then try to disable airplane Mode. While you are not connected to the iTunes Store, you should not try to download on the phone once you turn it off airplane mode.

  • How to stop the Animations of Chrome

    How to stop the animations in Chrome? We're wasting resources and slow down the user interface, especially when the user interface is already slow due to the nature of Firefox non-multitraitement. It is like throwing cement on a turtle.

    The animation of the tab bar has a pref browser.tabs.animate related to this and can be set to false.

  • Hi I have just signed up for the Apple's music and I forgot to cancel my game from itunes (it is no longer needed) who crossed just automatically - how to cancel the game and can get a refund?

    Hi I have just signed up for the Apple's music and I forgot to cancel my game from itunes (it is no longer needed) who crossed just automatically - how to cancel the game and can get a refund?

    To stop renewing, login to your account (for example by tapping your id settings > iTunes & App Store on your iPad, or by clicking on your name / icon to the top right of the iTunes on iTunes on your computer screen), and go to the iTunes in the cloud Section - see to halfway down this page: subscribe to iTunes game - Apple Support

    In terms of refund, try to contact iTunes Support and see if this will change (purchases are considered final), either via http://reportaproblem.apple.com or http://www.apple.com/support/itunes/contact/

Maybe you are looking for

  • NB100: keyboard problem internal after changing the language on the external keyboard

    Hello I bought a brand new Toshiba NB100.Due to the size of the keybord th (and the odd choice of colored letters grey on the keyboard), I bought an external keyboard as well.My settings of language is Norwegian, but the external keyboard is US.So I

  • Tecra M5: touchpad does more after 3 seconds if it is connected to the AC

    Hello Whenever I have my laptop connected to a power source, the touchpad doesn't work after about 3 seconds, after which the pointer freezes. The Accupoint still works fine, and the touchpad itself works perfectly when only on the battery. Any ideas

  • Customizing a tab control

    Hi all I am trying customize appearances of controls for my application and have been involved in some of the custom themes user interface on the Web site of NOR. I am now stuck in the tab control - when I open up the control editor and add a tab con

  • HP Envy 15-j118so SSD installation will void the warranty?

    Hello! My friend has need of a new laptop computer and wants an installed SSD. I thought he could buy the Envy 15-j118so and install an SSD inside. The warranty is voided by replacing the hard drive DSS? Some computers can be updated without voiding

  • Switch inaccessible when I create an interface IP on SG500 - 28 p

    Hello I have a new SG500 - 28 p sitting on my desk. I'm having a very strange problem. I hope somebody can advice me. The switch is configured and continues to operate in mode of L3. All ports are always assigned to the default VLAN ID 1. I created s