Can't close a Task

I have written an application with Visual Basic .net, I use 2 tasks simultaneously, the first one is for capturing data with the class AnalogUnscaledReader and the second task is to write this data using the class AnalogUnscaledWriter. The system is working correctly, but when I try to stop the output task then the application crash. I can stop the input task but not the output task.
What could be happening?
Analog Output (NI PCI-6723)
Analog Input (PCI-6071E)

If you could attach the application, I could run it and test it.
crisR

Similar Messages

  • On I-Mac, how can I close all tabs at the same time?

    On I-Mac, how can I close all tabs at the same time?
    I use Mozilla Firefox for internet.

    Not an Apple product, have you visited:
    https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-qu ickly

  • How can I get the Task information..? Remedy for error "-200089"

    Hello,
    I am using PCI-6229 for the application, and VB6 for application development.
    We have a policy to create the tasks and associated channels using Measurement and Automation Explorer.
    I want to know can I retrieve the information of the tasks those are created ..
    When my VB program starts, I use DAQmxLoadTask function to start executing the task, but for this I need to know the TASKNAME. On site if the service engineer accidentally renames the task name, the program stops execution. To avoid this problem, i would like to know how can I get the information about the tasks, such as the tasks those are created, their names, type of channels used (i/ps, o/ps, Analog channels), etc.
    This would help my application to execute without hard coding the task names as well as I can close the tasks if they are running before exiting the application. 
    Also, while developing the application, it happens that the application crashes, and the tasks remain open and running. After I fix the error and execute the program, the application reports the error, "-200089 Task Name specified conflicts with an existing task name". To recover from this error, I need to restart the PC, which is most frustrating and time consuming. If I could know the tasks and task handles those are already created and running, I can safely delete them or continue using them.
    I would appreciate if you could help me in resolving this problem.
    Thank and regards,
    Kunalb

     Hi Kunalb,
     To read the tasks currently configured on the system you can use this function: DAQmxGetSysTasks.  This will return an array of the tasks on the system. In that same section of the DAQmx C Reference Help they talk about obtaining the other parameters you mention.
     Another solution would be to add security to MAX such that only engineers with proper permissions could launch and/or modify the tasks. This can be done with Windows XP in the properties of a file.
     I hope these suggestions help! Have a great weekend.
     Best regards,
     MatthewW
     Applications Engineer
     National Instruments
    Message Edited by Matthew W on 08-10-2007 02:13 PM
    Attachments:
    DAQmxTasks.JPG ‏97 KB

  • Can I close all layers? or even better, stop illustrator from opening all layers when I open a file?

    I just installed cs6, and when I open files in Illustrator, it opens all of the layers which contain sublayers.  It does this even if all the top-level layers were closed during the previous save.  The files I work with have a large layer-structure, so re-closing the top-level layers every time I open a file wastes a lot of my time.  Can I close all layers at once, or better yet, can I stop Illustrator from opening all of the layers automatically when I load a file?
    If not, then WHY on earth not?  I can't be the only one who opens and closes large files with lots of layers and sub-layers...
    Thanks for your help.
    Edit: I also am noticing this problem is even worse in cs6, because openning and closing individual layers plays a little animation of rotating the triangular arrow before the layer which, cute as it may be, just makes the task of individually closing up all my layers that much more tedious.  Can I turn off that little animation of the triangular arrow when opening and closing layers?

    You can save it as a pdf and when you open that in AI the layers will not be opened even if they have sublayers.
    Not true. Does the same nonsense an .AI file does. Saved as a .PDF, closed Layers/subgroups get opened.
    And no one cares!
    I do. Every other Adobe program with a layering sceme seems to be able to remember that you saved a file with all layers and subs closed. But not this one.
    Maybe someone from the AI development team should ask someone from the Photoshop team how they've managed it.....for decades.

  • Auto-close a task

    Auto-close a task
    How can I set up a task so I can just use it to attach an email notice, then automatically close the task, so the next task in the delivery plan will become active?
    Use the ServiceLink Dummy Adapter to create an auto-close Agent that will automatically close any task delegated to that Agent.
    Then create your 2 tasks with their respective conditions and corresponding email templates, and associate them each with this Agent (in the Workflow Type dropdown list on the General sub-tab for the task).
    Only one of the tasks will fire (based on the condition), and that task will be automatically closed by the Agent.
    CREATING AN AUTO-CLOSE AGENT
    (1) In ServiceLink, click Agents.
    (2) On the Agents page, click Create Agent.
    (3) Enter a Name and Action for the agent, such as "Auto-Close".
    (4) For the Outbound Adapter, select Dummy Adapter.
    (5) For the Inbound Adapter, select None (auto complete).
    (6) Click Submit to create the Agent.
    (7) Click Start Agent to start the Agent.
    (8) The Agent will now be available in the Workflow Type dropdown list on the General sub-tab for all tasks.

    Sorry the delay in getting back to you.  Hm, so do you have the parent task and child task evaluated?  I am guessing your version should have the ability to select when the conditional expression is evaluated (when delivery phase starts or acitivity become active) The child task that has the always false expression should be configured to evaluate when the activity becomes active.  Also if you would like please attach a screen capture of the workflow you created? 
    Aler

  • How can I close this application?

    I entered a script that autoclicks every 0.1 seconds and I didn't turn off the mouse thing so it just keeps entering 5s. I can't do anything except move my cursor(can't click or type). How can I close this application?

    > I have an interface (main vi) wich call another interface (pop
    > up).this interface call another interface. How can I do in order to
    > close the interface which is calling without stopping my application
    >
    There is a mechanism built into subVIs and subVI calls to open when
    called and close when finished. This still works fine for many tasks
    and is quick and easy. To use this, you can use the File>>VI Properties
    on your subVI, go to Window Appearance, Customize, and it is in the left
    column near the bottom.
    You can also set this on a subVI call by right clicking, choosing SubVI
    node setup and set the same Open when called and Close on exit settings.
    The difference between them is that the first will affect every usage of
    the VI, whereas the
    second can be set to pop open sometimes and other
    times not.
    Of course there is another way, introduced when the VI server was added.
    There is a VI property for the VI class, Front Panel Window Open.
    Setting it to True and FALSE will open and close. There is also now a
    method for opening and closing with a few additional options.
    The VI Server allows for more control and flexebility, but the first two
    options are still perfectly valid for simple things. If using them,
    closing your subVI is as simple as exiting your outer loop of your
    subVI. This returns and closes the window all at once giving control
    and and data parameters back to the caller. If using the VI Server, you
    can either close the window just before returning or leave it to the
    caller. Just be sure they are in agreement.
    Greg McKaskle

  • Does anyone else have this problem - I can't close iTunes!

    Does any else get this really annoying problem? When I run iTunes, after a while the 'Accessing iTunes Store' display line at the top of the screen gets stuck (the stripey horizontal line just shows moving stripes forever). When this happens, I can no longer access the iTunes store AND I can't close the program! iTunes has not actually hung though, and I can still play music. The only way I can close iTunes is by killing it using Task Manager. If I click on the close icon, nothing happens.
    I had this problem on version 7 and it's still there after upgrading to version 8. I might even have had it on earlier versions, I can't remember. Also, I had the same problem on another PC! When I transferred my library and account details to the new PC, the problem came with them.
    I really like iTunes, but I'm totally fed up with this ridiculous problem which I've now had for a long time. I can still buy music as long as I do it before the problem hits. But it always happens eventually (after say 30 mins? Maybe less). iTunes diagnostics is no help. It always tells me that everything's working fine.
    Any help, very much appreciated.
    S

    QUite a lot of freexing problems have been associated with Bonjour. This FAQ tells you what it does and how to temporarily disable it as a test.
    http://support.apple.com/kb/HT2250?viewlocale=en_US
    If turning off bonjour solves your problem and you don't need what it does you can uninstall it and iTunes will still work.

  • Can't close firefox tabs even in safemode. (Windows 7)

    I normally run firefox with NoScript and AdBlock. Lately I have been unable to close tabs and after research saw that it was recommended to try safe mode. Safe mode has been working fine for me, but just now I cleared my cache and now I can't close tabs even in safe mode.
    Edit: Shortly after posting this question, I tried to open a new tab and firefox froze up. I had to close it via the task manager.

    It could be the work of one of your add-ons, or even add / mal-ware.
    Look thru your add-ons list and make sure you know what each one is
    and what it does. Also, check the programs that are on your computer
    '''Windows:''' Start > Control Panel > Uninstall Programs.
    '''Mac:''' Open the "Applications" folder
    '''Linux:'''
    * [http://www.freesoftwaremagazine.com/articles/see_all_your_installed_applications_ubuntu_unity Ubuntu Unity]''' {web link}
    * Xfce: Applications Menu category sections
    * options depends on the package manager and the desktop environment
    Go thru the list. If you find something that you don't
    know what it is, use a web search.
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-caused-malware Troubleshoot Firefox Issues Caused By Malware]''' {web link}

  • Close a task

    Hi,
    I want to develop a task (webdynpro) with a simple button to close the task (not to complete the task).
    How can I do it?

    The exit plug is a default outbound plug.
    In the method called when your button is clicked you need to call the Window Controller and call the exit plug.
    Assuming that your window is called MyWindow, the code could look like this:
    wdThis.wdGetMyWindowController().wdFirePlugExit(true);
    Please keep in mind that this simply closes the WD UI. Any inputs made to the WD are not stored as intermediate inputs!
    Edited by: Benjamin Notheis on Oct 13, 2009 1:37 PM

  • Can't print: "Before you can perform print-related tasks such as page setup or printing a document,

    Hello,
    I have searched these forums but have not found a solution to my problem.
    I recently purchased an IOGear USB Print Server (print server only, not USB device server). I was having issues installing and followed a Microsoft support document to try and resolve the issue. It had me remove some entries from the registry.
    Hours later, I was able to get the printer installed and working, but I do not know if it was a result of the registry tweak. But now that it has been installed, I cannot get anything to print from Acrobat Reader (I have tried 7.0 and 8.1.1). I get the following error message:
    "Before you can perform print-related tasks such as page setup or printing a document, you need to install a printer."
    Is there something I should check in the registry to make sure that it will work? I do know for sure that it was working when it was just the printer and drivers installed, it only happened after running the print server setup. I have already tried removing the printers and drivers from the system.
    Thanks,
    Braden

    I have a problem similar to those posted here, with one difference. With my printers newly installed, regardless of which one is selected as the default, when I try to print from Adobe Reader I receive the error message we're talking about : "Before you can perform a print related task...."
    Here's the fun part.
    If I click OK on the message, ALL MY PRINTERS GET DELETED and, I get the windows message that "Spooler subsystem app has encountered a problem and needs to close"! If instead of clicking OK I switch to Task Manager and end Adobe, I'm fine and can print from other programs.
    I can "reset" the problem by deleting the files in C:\Windows\System32\Spool\Printers and C:\Windows\System32\Spool\Drivers\w32x86, restarting the machine, and deleting then reinstalling the printers (which show up again after the restart).
    BUT, if I try to print from Adobe Reader again, I get the same cycle of problems.
    I am running Windows Vista and Adobe Reader 8.1

  • Can't close iTunes 7.7

    I just installed the latest iTunes update. Everything went as usual, and my iTunes has always worked nearly perfectly, but now I can't close the program. It works just fine, but when I close the window it hangs and I have to end the program through the task manager. Once again I try to keep everything up to date and I get burned....great.

    Please stop blaming ESET NOD32 (old or new versions)
    I have been using them for abt 4 years now.
    NOD32 just checks for the shared network library, which is piped between iTunes and its additional new tool, Bonjour. Nod32 finds this interconnection pointing to networked resources but there is nothing at the other side of this pipe, so it goes in a loop - coming back, asking Bonjour for the reply and then going back to the networked resources.
    Since Bonjour doesnt find anything on the other side.. it just keeps looking, doesnt terminate its search.
    So if u uninstall or disable Bonjour, it works just without any problems.
    If you tweak ur Nod32, that is fine but i wudnt want to leave any hole or place on my system which isnt protected... its my system after all.. and i dont want to fiddle with my AV, especially whens it involves the STATE-OF-THE-ART ESET Nod32.
    I have spent more than half of my life working on Digital Security, Malwares and compromised Networks - dont want to change my lifestyle just coz a newbie Bonjour makes my AV go look for something that doesnt exist!
    Cheers!

  • Can't close Bridge to continue download

    I purchase a  CS5.5 upgrade and after entering my serial number started my installation.  I was then instructed to close CS5.5 Bridge in order to continue.  How can I close CS5.5 Bridge before it has been installed.  I have no Bridge versions of any kind  open.  I rebooted to make sure nothing was open and tried again and got the same prompt.  Don't know what to do next???

    How can I close CS5.5 Bridge before it has been installed.
    You're installing an upgrade, are you not? so there is some version of Bridge on the system. -->Task Manager or Activity Monitor --> Processes --> Bridge.exe/ Bridge.app. Right-click, terminate.
    Mylenium

  • Can't Close Elements 9

    When attempting to close out Elements 9 I'm told the Editor is busy....this has been going on for 1/2 hour or more.  I can't close anything...there's no photo showing on Editor.  Any suggestions?

    Operating system?
    In Windows, use Task Manager's "Processes" tab to kill the "PhotoshopElements" process.  Then reboot.
    Ken

  • Reader X - how to close the Task Pane

    Once the Task Pane in Reader X has opened, how can it be closed (without closing Reader)?
    Thanks!

    "Task Pane" is Adobe's terminology -- e.g., http://help.adobe.com/en_US/acrobat/pro/using/WS8b24479264ec4228503f719f12bedff5483-8000.h tml
    Yes, I can hide the Comment tools in that way, but I have not yet found a way to get the Task Pane itself to close (short of closing Reader X entirely).
    If there is no simple way to close the Task Pane, then some users will probably start calling it the "Task Pain"!

  • After I installed iOS 7.0 for iPad update I noticed that I can't close apps like I was used to do till now. Does any one know how to close apps now.

    After I installed iOS 7.0 for iPad update I noticed that I can't close apps like I was used to do till now. Does any one know how to close apps now.

    Close Apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe up on the screenshot of the app you want to exit.
    3. The app will fly off the screen

Maybe you are looking for