How to stop the Thread in TestStand

I'm a 'newbie' to TestStand parent in this aspect.  I create a sequence to generate CAN Bus traffic in the hope to arrive at a more precise measurement of the flow.  The subsequence that I create is an infinite loop designed and I am specifying that the loop is executed in a separate thread from the setting of the execution Options.

My question is how I can kill this thread in my sequence cleaning.  Since I plan to run that the sequence several times wouldn't have multiple threads running not checked on my machine.

I don't see an easy way to do it.  I imagine that something like this has been done before.

Any suggestions?

The best way to proceed so that your main thread tell the other thread when it is time to get out and then after the main thread doing this should then wait for the other thread exit (the wait will be done automatically if you had the box "Wait automatically at the end of the sequence" checked in your approach to asynchronous call of sequence).

One of the easiest ways to do this is to pass a Boolean parameter by reference in your asynchronous sous-suite and have your subsequence as boolean check periodically to see if it needs to close. The main sequence can set this value in its cleanup steps.

Another way is to use a type of synchronization step as a notification step enter and have your asychronous sequence looking for a notification that your main sequence will be put in its cleaning.

It is important that your expectation of the main sequence for the other thread to leave before the end so either use the sequence "Wait automatically at the end of the sequence" call option or adds a step to explicit waiting in your cleaning of your main sequence once you have notified the other thread to exit.

Hope this helps,

-Doug

Tags: NI Software

Similar Questions

  • How to stop the open a popup when I click on an icon. I want the icon to do its job.

    How to stop the open a popup when I click on an icon. I want just the icon to do its job and open the file. However, I get the crazy popup indicating to choose the program you want to open the file.
    When we first got it it has always opened when a user has clicked on an icon. Then he started doing this several months ago, and I don't know why.
    Please help if you know how to beat this computer.
    Windows Vista Home Edition
    CEH

    Hello

    There are MANY varieties of the latter with a lot of names, but all can be removed with the
    same methods:

    Vista Antispyware 2010, XP Internet Security 2010, Antivirus 2010 Vista and Win 7 Antispyware 2010
    are rogue antivirus, scams to get you to pay for them while they have no advantage at all.

    How to remove all THE varieties of this malware - please read carefully the removal Instructions.
    http://www.bleepingcomputer.com/virus-removal/remove-antivirus-Vista-2010

    RENAME this as necessary to allow them to perform: (use a different name with the extension .COM instead of .exe)

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run the
    in the regular when windows you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits
    UnHackMe execution)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download
    here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
    It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
    How to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses,
    Trojan horses, rootkits, etc.). that has infected your computer despite all security measures that you have
    taken (such as the anti-virus software, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

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

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

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

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    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

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • How to stop the annoying alert? "Do you want to view only the webpage content that was delivered safely.

    original title: how to stop the annoying alert?

    How can I stop this issue when I try to open every single photo in my own Web site? : "Do you want to view only the webpage content that was delivered safely.

    Hi Ricardo Mattos,

    Please take a look at the solution provided in this similar thread:

    You want to show only the Web page content that shipped safely?

  • How to stop the ASM

    How to stop the ASM 11 g, I have question smiler mentioned in the thread, I just want to know if this question or 11g feature.




    Unable to stop ASM 11 g R2

    Here, if your use of OCR in diskgroup in ASM, then no way to cpl using srvctl, you have to stop, the Group of cpl, This is reading, I got from oracle.

  • How to stop the remote control to the setting

    How to stop the remote control to the setting

    Disable the settings > general > accessibility > voiceover.

  • 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 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 shortcut ctrl-alt-s

    How to stop the shortcut ctrl-alt-s bringing HP info? I use this shortcut elsewhere.

    Here it is:

    http://support.HP.com/us-en/document/c00761879

  • 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.

  • How to stop the Firefox update page to load whenever I run the FF 3.6.16 application

    How to stop the Firefox update page to load whenever I run the application FF 3.6.16. I use it on an iMac G5 ALS.

    See the following for a few suggestions:

  • How to stop the dashboard at the bottom of the screen in endangered?

    How to stop the dashboard to disappear the bottom of Safari.  It did not happen, but I installed iCapitan.

    Dashboard or the Dock? If you mean that the docking menu Apple > System Preferences > Dock > automatically hide / show Dock.

    OS X El Capitan: use the docking station

  • 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.

  • 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 "Microsoft" folder opens at startup

    Whenever I start my computer, "C:\Program Files\Microsoft" opens. I went through each item, start nothing leading to this path. (msconfig, registry, and "Startup" in "Programs" folder.) Anyone know how to stop the start to the top of the file?

    You are really the way strong, but as long you are looking at the registry "Run" keys, make sure that the names of path for various startup items are surrounded by double quotes.

    I can find no documentation final for this - and there is certainly some entries in my key Run that have spaces in them, but are not surrounded by double quotes - but in general, Windows behaves better if you either do not use characters such as spaces or surround the path with quotation marks name.

    For example:

    "C:\Program Files\Fichiers Files\Adobe\ARM\1.0\AdobeARM.exe"

    Because registry Analyzer seems to know the space in Program Files, and given your statement that the problem started when you installed Office, I suggest looking for an entry that starts C:\Program Files\Microsoft Office\Office14\

    If you find such an entry without quotes, modify to add and see if the problem goes away.

    In the future, Autoruns is an easier way to find the startup entries... and it shows many places more than just two Run keys you watched.

Maybe you are looking for

  • Shot on Photos in iCloud on Mac by mistake and lost all the photos on Mac - Help!

    Do not think, I clicked Photos in iCloud as it was checked, and then when I plugged in my phone, all my photos on my Mac has disappeared and a were replaced by the Photo library that I have on my iPhone. How can I get my pictures back? What I can? Th

  • During the Iphone 6 s Charge

    So I just changed from a device to a 6 s Iphone android. I like it so far.In any case. I noticed that the load meter has major lag... As... If I charge my phone before going to work and say his 97%, it will stay at 97% for half of the day at work. I

  • Reverie not activate

    Daydream is turned to "on" and set to activate both during the load and anchored. But if I'm in charge (plugged cuz, I have not found a dock again) it is not enabled. Is there something that I did not makes or breaks?

  • Acer Aspire S7 keeps up to date

    My Acer Aspire S7 maintains for over 3 hours now. I tried to turn, but it is always up to date. It says installation update 1 of 3... Help!

  • cursor mouse stuck on the bottom left corner - it started after WinASO registry optimizer.

    Is not the harware problem, I plugged an external mouse, but I still have the prob. I know what the problem with the registry, ' coz when I used optimizer registry winASO, I had this prob. I restored using WinASO and restarted the laptop. I still hav