remove usb

Hi, I use a USB6211 with windows XP, LabVIEW 2009. The onboard on a measuring device that the user must be plugged in when they want to take action and then remove once the measures have been made. The user will be repeated several times over the duration of the trial.

I wrote a code that determines when the device is plugged or unplugged and this seems to work well, however I had a complete windows crash randomly and I wonder if this is due to the plug/unplug the USB device.

I had a search and the post below implies it is that it is safe to do so, however, I want to assure you that this will not cause me a problem down the line.

Any ideas?

http://forums.NI.com/NI/board/message?board.ID=250&message.ID=24254&query.ID=1441111#M24254

Hi, thanks for the responses - the devcon utility could be useful to me in the future however, I managed to solve my problem as follows.

In my original code (figure 1) I tried to access the serial number of the device, which, if connected error return = FALSE. If an error has been detected that I would try again after 5 seconds, however if the device was connected/disconnected while communication was in progress windows would break.

I have now modified the code to check the names of active device (figure 2). If my device is not connected, then the search function will return the index = - 1. Because I'm no longer directly check the unit is is more important if the unit is connected/disconnected when checking.

Thanks for the help

Tags: NI Software

Similar Questions

  • Notification of 'removed USB storage device' persistent.

    Hello

    My motorcycle G shows after persistent notification.

    'USB storage deleted '.

    Removed USB storage. Insert new media. "

    This notification is displayed after removing the Flash drive by removing it from settings-> storage and pulling the OTG with the drive cable. The notification seems to be stubborn and it can not be erased it unless the device is reset. It isn't harmful, but because of my OCD (mandatory disorder that) for the verification of notifications is causing irritation.

    I notice that only KitKat 4.4.2 and not JellyBean 4.3.

    Any ideas to clear the notification? or is this a bug?

    Thank you

    Ngom

    Update:

    I uploaded a screenshot and added a correction in question (the correction is in bold).

    Hey all,.

    This bug has been reported and a fix is under way.

    See you soon,.

    Nicole

  • How to create and boot from a separate removable usb drive?

    Do some testing software and wish not to overwrite my MBR disk (c :))

    It's a matter of Google:

    http://www.google.com.au/search?hl=en&source=HP&q=How+to+Create+and+boot+from+a+separate+Removable+USB+Drive&btnG=Google+Search&Meta=&aq=f&OQ=

    Help us with the problems here with the Vista operating system installed.

    See you soon. Mick Murphy - Microsoft partner

  • How to export my photos and videos from Windows gallery to a removable USB device

    I want to copy or export my photos and videos from windows live gallery to a removable USB device. I am computer illiterate, so please dumb to step by step. Thank you!

    Click the Start button and click computer.

    Everything you put in your machine will be listed as a removable disk or appointed by the device,

    You can click with the right button on this list and select Paste.

    Click the Start button and click on the images.

    Top right, rearrange, click on the small arrow and click folder.

    It is best to copy the files under index of the files and the device will hold more data.

    Select one of the listed folders, and then hold down the CTRL key and press A,.

    This will select all on the page your,.

    Right click on one of the folders that is highlighted,

    Click on copy.

    Return to the screen of the computer and right click on the removable disk and select Paste.

    After the paste operation is complete,

    Right click on the device again and select eject.

    A safe to remove the device popup will appear and you can remove the device.

    If you want you can use window Photo Gallery,

    Just right click on the pictures and videos that lists all the and select copy.

    Ignore select it without arrow subfolders, that he belongs to another question.

  • How to export pictures to a removable USB device?

    How to export photos to the photo gallery Windows on a removable USB device?

    Windows Photo Gallery as far as I KNOW is just a front-end to your pictures folder.

    In Windows Explorer, open your folder images and copy and paste the pictures that you want to...
  • Removed USB controllers: can not return - "this device cannot find enough free resources that it can use. (Code 12)

    Original title: removed USB controllers: can not return

    Hello

    So today I tried to connect to a printer, and it wouldn't work (separate the issue, I don't want to worry about that now)

    I've seen several messages saying: you need to uninstall the USB controllers in Device Manager and then restart your PC. The pilots would then automatically reinstalled.

    It didn't happen, and now my Dell touch screen does not work. I can miss several other USB controllers too, I uninstalled about 3 of them, but I don't know whether or not it has been reinstalled.

    I currently have:

    -Hub USB generic

    -Enhanced host controller USB Intel (R) 8 series #1-9C 26

    -USB root hub

    -Host controller compatible xHCI USB

    Note that the last of them was a symbol of error on it and reads as follows:

    "This device cannot find enough free resources that it can use. (Code 12)

    If you want to use this device, you will need to disable one of the other devices on this system. »

    Can someone please tell me how much USB controllers I should have and how to save them?

    Thank you very much

    Hi Shalini.

    Thanks for the reply, but if you read through the posts on this thread, I think you will find that it has already been suggested that I do these two things - what I've done many times without result.

    Fortunately, I managed to fix it myself.

    To satisfy your curiosity and help someone else who could see this thread with a similar problem, here are the steps I took finally solve the problem:

    ______________________________________________

    I was always convinced that the problem is basically with the xHCI USB controller that I saw always reported as not working not properly in the device (Code 12) Manager. With this in mind, I set out to see if I could determine what the device was supposed to be in conflict with. I ran msinfo32 and began to examine the conflicts/sharing section. After a while, I decided I could not see anything obviously problematic or direct me to the controller xHCI, so I gave up on that front.

    Well, if I couldn't fix the problem with the current installation, maybe that I could find another way to install the xHCI USB controller that could circumvent the flaw that seems to be caused when windows reinstalls automatically it when restarting after the abduction. So I started trying to learn more about this "xHCI USB controller" - since Googling this term has given no end of problems not related.

    In Device Manager, I found a way to isolate the details of this driver in device (somewhere under the properties I believe) Manager. This has created a custom device showing in view only a select few connects the Manager. I have spent some time in the analysis of these and found the time during which the camera has stopped working properly. Suddenly a pattern emerges. Over and over again, see you the following series of when I was hoping that allowing windows to reinstall automatically the driver would to fix:
    • Device PCI VEN_8086 & DEV_9C31 & SUBSYS_05F91028 & REV_04\3 & 11583659 & 0 & A0 has been removed

    [Rebooted PC]

    • Device PCI VEN_8086 & DEV_9C31 & SUBSYS_05F91028 & REV_04\3 & 11583659 & 0 & A0 has been configured
    • Device PCI VEN_8086 & DEV_9C31 & SUBSYS_05F91028 & REV_04\3 & 11583659 & 0 & A0 had a problem starting.

    Under each newspaper was referring to a driver name, I didn't already had access to: driver name: usbxhci.inf

    Now I got some new information about the xHCI USB controller, I took to Google. After much research (and not find something relevant), I found 2 obscure references to the driver who seemed at least somewhat relevant.
    The first reference has been a post on the forum where someone's USB ports stopped working. very similar problem to mine! There is little of any particular use in the nets, with the exception of the reference to a couple of windows updates: KB 2823516 or KB2822241

    It is not clear exactly what usbxhci.inf capacity was tied to these updates, but I made a note of them and moved.

    Another article contained no mention of specific ports USB not working does not and was centered around a different problem entirely. However, he has mentioned an another windows update: KB2919355-x 64.msu

    This one (as I remember) was clearer on the relationship between the update and changes to the usbxhci.inf file.

    Now, I had three updates which could make changes to usbxhci.inf at one point. With their name on a piece of paper, I started looking through my updates installed to see which ones I had installed. I soon discovered that Ko 2823516 or KB2822241 were not present on my PC, which saved the penalty to guess who would be the right to uninstall first.

    KB2919355 has been installed, and I made the decision to uninstall it, because as far as I knew, this update changed something in usbxhci.inf. After the initial uninstall was completed, but before the mandatory reboot for changes to take effect, I went into Device Manager and removed the xHCI USB... because I was afraid that if the new, "defective" was always present during the reinstallation of the update, it doesn't change anything.

    The device is removed once more, I rebooted the system. He drives for a considerable period, uninstall the update and then seems to have some sort of hitch; declare something in the sense of "we could not complete the operation. Changes to undo. " He stayed like that for a while before the system became operational again and began to "prepare windows. Once it was over, I discovered that my touchscreen and USB ports worked very well.

    Investigation later showed that the compatible USB xHCI host controller was is no longer marked with warnings. In addition, a series of USB controllers appeared that had not been there when the xHCI device was defective. I was also pleased to note that the update of windows for KB2919355 had already been reinstalled without messing up anything.

    _________________________________________________

  • Satellite Pro 6100 USB XP SP2 remove USB device after suspend

    I have a Pro Satellite XpPro 6100 running.
    I have a problem since I installed SP2 of XP in that USB falls when the computer wakes from sleep.

    The computer is up there, but I can reproduce this with SP2 only. Fortunately, I did a Norton Ghost and I restored the status of versions prior to SP2 for now.

    It does not matter what is connected to the USB port, or which port it's plugged. Out of sleep causes a ToolTip message in the taskbar on an icon that represents the USB port - and the message says 'USB device not recognized '.
    I can't find any help on the microsoft site, nor on the discussion group. I am at a loss as elsewhere where I can watch.

    Thanks in advance for any comments.

    Hello

    I put t know what USB device you use, but it is known to me that some external devices like DVD-ROM doesn t support the standby or hibernation. Try to remove the unit from the USB port and plug it back. I'm sure it should work again.

    Good bye

  • How can I remove a removable usb drive write protection.

    I have a sandisk 8 gig flash drive which became sort of write-protected. How can I remove this USB write protect. Old computer XP SP3 Pro hp laptop not worth or able to upgrade to the new OS.

    Visit the site.  About 1/3 is a paragraph entitled:
    "USB stick seems to be write-protected.

    "Troubleshooting FRO USB pen drives.
      <>http://www.Uwe-Sieber.de/usbtrouble_e.html >

    HTH,
    JW

  • Removable usb drive

    Removable disk

    Hello

    1. what exactly is the problem you are experiencing on your computer?

    2. the problem occurs on USB?

    Please refer to the below link mentioned before asking your question so that you can provide all the relevant information for us to help you:

    Suggestions for a question on help forums: http://support.microsoft.com/kb/555375

  • Removable USB Flash drive problem

    When I try to copy the document on USB removable Flash disk, then suddenly a display showing: failed to copy... (name of the file). Failed to create the directory or file.

    I'll aprecite your help.

    Looks like you are trying to copy a folder in a location that is marked as a system file.  Try to make a folder inside your "My Documents" folder, and then copy into that.  If this does not work, please indicate the details of what you are trying to copy and where you try to copy in.

    I hope this helps.  Good luck.

  • Removed usb drivers Device Manager

    Hello

    I had a problem with the USB and Firewire connections on my HP XW8400 PC.  The system works under windows xp pro.  The problem I had was that some devices/readers etc were not noticed when I plugged the different Slots USB or firewire and others have been.  I have a dongle usb constantly on my system to run a publishing package that I use on a daily basis... I also have an attached Firewire/USB PCI card.  I use the rear firewire and slots of the editing software and hard drives USB and USB slots front is where I keep my dongle and I use the usb port and firewire for other devices such as readers, usk sticks, cameras etc etc.  As I say, things work well, other custom.  For those who don't to correctly connect the peripheral material Add Wizard would come upward, I press on to connect to the web to search for and then it they'd material device wzard found no drivers/solution/whatever.  Being that it is my main computer to work I didn't want to risk anything and so have put up with him for a long time.  However, these days, I need to get a camera connected to the said work stations and so made test after trying to install the software to factory for the camera via camera software CD and realizing that he did not always work.  I used Malware Bytes and it came with nothing and then AGV antivirus and it came wirth nothing.  Ok... So I thought that it MUST be something to do with the USB (and Firewire) themselves.

    I searched on google and it brought me to this microsoft support page: http://support.microsoft.com/kb/310575 I read through it and he said how to uninstall and re-install the usb via Device Manager drivers.  I went through the instructions and I have clicked on each of the usb devices in Device Manager and uninstalled.  Then I restarted my computer and when it said that it had detected new hardware everytime I clicked on the Hardware Wizard it now impossible to connect to the internet because one of the devices was my router to wide band.  GREAT!

    So, I spent half a day to find the original Windows CD and I reflected on the drive, but couldn't find anything to do with the USB drivers.

    I tried the last known good configuration and that was obviously after deleting files of drivers said Ihad closed and restarted a couple of times since then.

    I checked the system restore and that has been cut!

    If someone could please tell me how to install the said USB controller to ensure that I get the USB drivers installed?

    I'm guessing I now need to go through the window / each device and find the software CD and add the drivers, but I don't even know if I have half of the Conference on disarmament, or they just instantly connect via XP.  I certainly can't find anything for my router, which means I can't even on the web.

    And why has my material wizerd for usb and firewire devices summer miss me for so long?

    All advice appreciated.

    PS... Microsoft, don't you think not that 1 - it would be wise to let people know on the above mentioned page remove the usb drivers may well turn off your Internet so that the wizard doesn't work and you can visit his profile when you connect.  If she had said that I would never be deleted.  2. due to some software I use (Avid Media Composer) on the specially designed workstation, there are various conflicts that occur when the upgrade to Service Pack 3, so you stop the real users of microsoft products to have access to your DIFFICULTY IT thingymajig if they decide to stay on service pack 2.  Why make life so hard Micfrosoft?  I'm very careful with my systems.  I should have a choice of not having to be upgraded if it means he can endanger other packages, but I'll always freedom of basic set of tools and services that you offer.  I'm fed up.   The following, that I get computer is a MAC!

    You're right, that Windows XP has drivers for a large number of features built into the operating system.  Peripheral USB in particular are supposed to be 'plug and play' - you simply connect the device to the computer, it goes "Bong", and the device is recognized and installed.

    A "Repair Installation" window is supposed to leave all your applications and your data intact - but you will almost always see advice to backup everything that you care about the 'just in case '.

    Try posting here: http://social.technet.microsoft.com/Forums/en-us/itproxpsp/threads
    Technet forums are supposed to be for the "professional" so maybe, your message will be seen by someone who has a better knowledge of this issue than most people who post on the forums for answers.

    Items to include in your message:

    Good luck and I'm sorry, I could not solve your problem.

  • Removed USB mass storage?

    Dear Sony,

    Is there a reason that you have removed the USB Mass Storage of the Z5 and whatever it is running the latest firmware?

    No no no MSC makes very difficult synchronization and backup of the phone using 3rd party applications.  I wouldn't mind if there was an easy way to do it using the Sony PC Companion.  IE just sync the photos (and a few other folders) from the phone to a folder on the connected PC.

    Please add this feature to the rear.  The reason that many users choose Android rather than the other option is they like to have a choice and not all decisions made for them.

    I always liked Sony phones for relative of installed Android Vanilla flavor.

    ANY device Android 4.0 and higher use of PSG...  It was removed by Google and you need to bring it up with them the reasons for the removal.

  • Option to "Remove" USB key by right clicking in the 'Computer' window it is no longer available.

    Using Vista, there is an option to "Remove" a USB key in the drop-down list it with a right-click in the 'Computer' window that lists all of your drives. He was usually right under "Eject" if I remember correctly. Why is it is gone?

    Please note that I am aware, you can also use the option 'Remove the device safely' in the task bar, but this application relates to the command drop-down list as the taskbar icon is a bit heavy and I preferred the speed and convenience to make it quickly through the window of the computer.

    Which is probably causing this problem?

    I see that you have changed your question of 'My Computer' to 'Computer', etc., after my reply to you.

    If your original question was 'Computer', etc., my answer would be more than the only option.

    Computer errors may occur from time to time, to which we have no precise answer.

    See you soon...

    Mick Murphy - Microsoft partner

  • Remove USB: Lack of notification "safe to remove".

    About a month after upgradinng for Windows 7, Windows stopped display the "Safe to remove" notification when I try to eject my drive from the USB port. I usually go ahead and remove the flash drive and have not noticed any problems, but worry that I do not receive the notification.

    Hi IndyTim,

    It is possible, that there is a file corrupted on your system.  Please see the following article for instructions on how to launch the SFC Scan to help solve this problem:

    http://support.Microsoft.com/kb/929833

    I hope this helps!

    Debra
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How can I remove USB drive safely when there is no icon 'remove hardware safely '?

    Re HP Pavillion Notebook PC, Windows 8, 64-bit g7.   I want to be able to remove a USB without shutting down the computer.  There is no icon for "Remove hardware" as on other computers I have.  I was not able to find the program or its icon by using the 'search' or 'Find'  It is not indexed in the user guide.  Suggestions?

    Use the method presented in the video.

Maybe you are looking for

  • When reading emails, said TB connected to the server, but is not download emails

    The following suddenly started happening. (Things are working very well for several months on the same account settings). When I try to retrieve the email from my IMAP e-mail server, there is a message at the bottom that says that Thunderbird is conn

  • 2400-103: question about replacing the HARD drive

    I'm trying to figure out how to replace my laptop HD. It is of a Satellite 2400-103. The HD is broken. I got it removed, but I'm not sure what to replace it with. Maybe a Toshiba MK - 3021 GAS, what can I get away with? Can I get a more general e.g.

  • Automator action "CVS Update" could not be loaded because the file ' / usr/bin/cvs "is not found.

    Hello I just receive my MBA a few weeks ago to Apple and noticed my Razor mouse worked only with BluTooth but not when it is plugged into a usb port.  Other mouse usb and external drives readers work well.  Razor support told me the plug-and-play sub

  • Case held (not gel) for some time

    So I got 2 analog input via NiMyrio and I got a deal of true/false because if the two signals larger than the trigger point as I put, it will enter in the case of true. The problem because both signals is put in correspondence with the comparison to

  • Error loading C:\Windows\Systems32\balasasu.dll

    Ideas: Windows 2002 Home Edition The massage is coming with each commissioning: error loading C:\Windows\Systems32\balasasu.dll the specified module could not be found Only, it has been updated by service pack 3 None