Not able to safely remove USB drive while Labview is open

To all the Gurus,
I am using LabView 8.5 and have made an Application which requires user to download data from USB drive/stick. So when VI runs user asked to select a .TXT file from USB to download. Here whole operation completes as desired. ONLY PROBLEM I am facing is when download completes User tries to "safely remove USB drive" where windows gives a warning saying USB is in use and cannot be removed.
In this particular VI I am using file dialog function to browse through USB and let user select a file. I even tried using open file function but it is giving same error.
The only way I can safely remove USB after downloading is by exiting Labview which is not feasible for my application.   
is it a Bug in 8.5 or is there any different way to do it?
Any type of help will be appreciated.
Regards
Solved!
Go to Solution.

You can call the SetCurrentDirectory Windows API function (see attachment), but if you follow the link you'll see it warns about using it in multi-threaded apps. I have no experience with it, so I can't comment.
Try to take over the world!
Attachments:
Set Current Directory.vi ‏11 KB

Similar Messages

  • Safely Remove USB Drives: Gnome

    I am using Arch-64bit-Gnome3, Shell and other gnome defaults.
    While trying to remove my External Hard Disk I noticed that there is NO "Safely Remove" in right click menu. Since I also use and have used other distros with gnome I know that this is feature has always been there. However, in Arch its not there by default. I don't know if this is the 'Arch Way'.
    I have 'Disk-Utility' intalled so I was wondering if there is any package that I need to install or any configuration to be set to get this 'Safely Remove' feature in my right click context menu. Without this and using only unmount the External Hard Disk is not completely disabled or deactivated to be safely unpluged.
    Please guide me to a proper Solution.
    Thanks...
    Last edited by fantab (2012-06-23 04:20:47)

    There are many threads regarding this. search the forums.
    try this
    https://bbs.archlinux.org/viewtopic.php?id=137449
    Last edited by hadrons123 (2012-06-23 12:26:14)

  • Removable USB drive not automounting in xfce4

    Removable USB drives automount in every other window manager I've tried(lxde, gnome, kde). I have thunar-volman installed(not sure what it's for though), and I've went to Applications Menu > Settings > Removable Drives and Media and ticked "Mount removable media when inserted", to no avail.
    My .xinitrc file:
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
      for f in /etc/X11/xinit/xinitrc.d/*; do
        [ -x "$f" ] && . "$f"
      done
      unset f
    fi
    # exec gnome-session
    # exec startkde
    exec startxfce4
    # ...or the Window Manager of your choice
    # exec startlxde
    Manually mounting the USB drive works however.

    I have decided to ditch xfce4 and go with KDE, which automounts without any fuss.

  • I updated itunes for my 64 bit system to 11.1.4. I was not able to detect my cd drive.  I removed itunes, apple software update, apple mobile device support, bonjour and apple applications support. After a few attempts it now recognizes my cd drive but no

    I updated itunes for my 64 bit system to 11.1.4. I was not able to detect my cd drive.  I removed itunes, apple software update, apple mobile device support, bonjour and apple applications support. After a few attempts it now recognizes my cd drive but not by ipod.  Any suggestions? Thanks.

    I updated itunes for my 64 bit system to 11.1.4. I was not able to detect my cd drive.  I removed itunes, apple software update, apple mobile device support, bonjour and apple applications support. After a few attempts it now recognizes my cd drive but not by ipod.  Any suggestions? Thanks.

  • I am not able to see images in Facebook while i am connecting throw wifi

    I am not able to see images in Facebook while i am connecting throw wifi

    Hello amitkcindia,
    I would recommend verifying your WiFi router's settings against our recommendations for use with iOS and Mac OS devices.
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/HT4199
    Cheers,
    Allen

  • I am not able to see the new drive

    I have a Sun Blade 2500 with SUN 5.9 OS installed.I have on hard disk drive in it and now i attached another drive in this system but i am not able to see the new drive when i run the below command
    bash-2.05# echo | format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:
    0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    /pci@1d,700000/scsi@4/sd@0,0
    Specify disk (enter its number): Specify disk (enter its number):
    ==============================================
    Although i can see two drives in the output of below command:
    bash-2.05# iostat -E |grep Size
    Size: 73.40GB <73400057856 bytes>
    Size: 73.40GB <73400057856 bytes>
    Size: 0.00GB <0 bytes>
    Edited by: 842294 on Apr 6, 2011 4:40 AM

    Resolved
    bash-2.05# cfgadm -c configure c0
    bash-2.05# echo | format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:
    0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    /pci@1d,700000/scsi@4/sd@0,0
    1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    /pci@1d,700000/scsi@4/sd@1,0
    Specify disk (enter its number): Specify disk (enter its number):

  • How do I save an IPhoto library onto a new hard drive while it's open? It is a miracle I got it open, and it has refused to be copied the usual way (by dragging its icon to destination drive).  i want to save those photos!

    How do I save an IPhoto library onto a new hard drive while library is open? It is a miracle I got it open, and it has refused to be copied the usual way (by dragging its icon to destination drive).  i want to save those photos!

    My external Lacie Hard drive that contains the IPhoto library is a "locked volume."  Wow, now it is suddenly letting me copy it. I dragged the library's icon to the new destination (a 3T hard drive) and it is working so far. 
    I have also had problems copying my IMovie events from this drive, whose data I'm trying to save.  It reaches a certain video and stops.  I will delete that video and try again.

  • I have updated my iphone 4s with ios6 and now im not able to connect to itunes store. I can open the apps store but cannot install any app?  Anyone facing the same issue..

    I have updated my iphone 4s with ios6 and now im not able to connect to itunes store. I can open the apps store but cannot install any app?  Anyone facing the same issue..

    I have a 4S and upgraded to iOS 6 last week without any issues.
    Have you tried resetting your phone (hold the power and home buttons down together until the silver apple appears)?

  • I m not able to find out where is check out and open component(WCM)

    hi everyone,
    i m not able to find out where is check out and open component and how it works. As m not able to open & edit the native document that m assigning.Plz help me in this ASAP

    Here's what I found. If you have a metalink login, try these links. Depends on what version of COAO you need.
    CheckoutAndOpenInNative
    Patch 6602355 Build version=2007-03-22 for 10.1.3.3.1
    http://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=6602355
    Version=2007-03-22 on edelivery in UCM Downloads
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:12648830947583585595::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,455524.1,1,1,0,helvetica#downloads
    Version=7.7.0.244-2006-07-31 on edelivery in UCM Downloads
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:12648830947583585595::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,455524.1,1,1,0,helvetica#downloads
    There's actually a mapping here to figure out what file these extras are in:
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:12648830947583585595::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,455524.1,1,1,0,helvetica

  • How to see a "base station" mounted USB drive while in "Bootcamp"

    I have a Airport Base Station, that happens to also have a USB Drive attached to it. I am able to see, read/write, to that drive while in OSX, however while in "Bootcamp" I can not see that drive..????
    We are trying to find a good way of sharing files between a PPc and my intel machine which is in Bootcamp for my CAD software. We do the image edits in Photoshop on my PPC, and I have been just e-mailing stuff to myself to be able to get those images over to the MBP while in Bootcamp, but there has to be an easier way to share files between BC and OSX; and apples website says that a USB drive can be seen from BC, but what do I need on the BC side of things in order to view that drive?

    "but what do I need on the BC side of things in order to view that drive?"
    That would have a lot to do with what OS you're running on the BC partition wouldn't it? You don't say what OS you're using. By the way, what does the acronym PPC stand for? Just curious.

  • Mbp '11 : windows ejects keyboard and touchpad when safely removing flash drive

    If i connect a flash drive or an external hard drive, Windows will eject the keyboard and touchpad when "Safely Removing" any connected USB device, whether it be a printer, flash drive, or anything connected to a USB port.
    As a temporary workaround, i either connect an external USB keyboard & mouse and restart windows, or set the power button to shutdown and restart windows.
    any way to fix this?

    I don't get that with OS X, the light stays
    on at full capacity, i.e., it doesn't even dim, and
    it makes me feel that this is something that might
    call for a 'fix' in OS X.
    when you insert the drive it "mounts" to the desktop, right? in other words you can see it on the desktop?
    as everyone else suggested, drag it to the trash to eject it, or do it using the finder. once you no longer see it mounted to the desktop, it is safe to remove it, light or no light.
    i have usb/firewire drives which i made using internal drives and enclosures with power buttons that remain powered up once i dismount the drives. i eject them and zap the power once i finish using them, if i don't want to listen to the enclosure fans. in a nutshell, it's not OS X related that the light doesn't go out because it doesn't perform like the other OS, nor does it attempt to emulate it; they go about performing tasks quite diffently and OS X is much better ; ))

  • Issue removing USB drives

    Hey,
    I am encountering a weird issue when trying to remove external USB hardrives.
    I click eject, drag the icon to the trash/eject icon in the dock, but nothing happens. The files aren't in use or anything (as far as I know), and it wont let me eject the drive.
    When I physically remove the drive, I first get the 'disk in use' notice, then I get the you're-a-bad-boy for doing that warning that says I removed it while it was in use.
    What's wrong, and how do I fix this?

    Intel iMac -
    I get the same message regularly when trying to ejecting flash drives, but mainly with a Memorex Traveldrive. It's formatted for pc. It doesn't matter if any programs were running. I right-click 'eject' and it sits there for awhile, then I get the message the drive is still in use. It's not. I click 'OK' and then right-click 'eject' and then it will immediately eject. It also occasionally happens with Sandisk flash drives whether pc or mac formatted.
    Same thing happens on my other intel iMac. Both have 2 1/2 gigs of ram, both are 2ghz duo core running 10.5.7, but it happened on earlier updates also (10.5.6, 10.5.5).

  • Windows 7 doesn't release USB stick - can't safely remove USB stick

    Sometimes when I'm trying to safely remove an USB stick formatted with NTFS from any Windows 7 installation, Windows 7 refuses to release the USB device.
    This occurs on host machines as well as on VM guest machines. When I'm attaching the USB stick to a virtual machine (VMware Workstation) and when this effect occurs in there I can see from Workstation's device manager that the USB stick is getting accessed
    once every (approx.) five seconds. The USB stick shortly flashes up accordingly then, so there is indeed some access to the USB stick.
    Now, this doesn't happen all the time. This effect only occurs, say once or twice a week.
    Waiting for 5 to 10 Minutes, the low-frequent regular short flashing finally stops and I can safely remove my USB stick then.
    Well, what I want to know: Which Windows service is sometimes accessing my USB stick in this manner?
    This happens on several machines, some of them having almost no software installed.
    When exploring the file handles with SysInternals Process Explorer, there's only a Windows Explorer handle attached to the USB device.
    I suspect it might either be Windows Defender (having Search Removable Devices enabled), Windows Search or Windows Defragment. But this is only a guess.
    Can anyone please enlighten me on which service is capturing my USB device for such a long time, keeping me from safely removing the USB device?
    Microsoft Marketing should care for customer feedback on their consumer products, e.g.
    Windows & Office.
    Have had Windows 8 …  went back to Windows 7.

    Hi,
    We can use USB parser in WDK8 or 8.1.
    To install USB ETW parsers:
    1.Determine whether you have 32-bit Windows or 64-bit Windows: ◦Open the Start Menu.
    ◦Right click Computer and select Properties.
    ◦Look at the System type field. (Note: 32-bit corresponds to “x86” for the downloads).
    2.Install Netmon:
    ◦Go to the bottom of the Quick details on the Netmon 3.4 download page and press the Download button for your system type.
    ◦Download and run the exe. When it asks about setup type, Typical is fine.
    3.Download and install the Windows Driver Kit for Windows 8.
    4.Allow execution of PowerShell scripts:
    ◦Open the Start screen, type "powershell", right click on the Windows PowerShell result, and select Run as administrator.
    ◦Type or paste the following command:
    Set-ExecutionPolicy RemoteSigned -Force
    4.Close the PowerShell window
    5.Open a PowerShell window (you don't need to Run as administrator) and run the following commands. Adjust the path if you installed the kit to a different location:
    cd "C:\Program Files (x86)\Windows Kits\8.0\Tools\x86\Network Monitor Parsers\usb"
    ..\NplAutoProfile.ps1
    Now you're set up! You can now launch Netmon and open an .etl trace by selecting File -> Open -> Capture.
    You can also use OneDrive to upload the trace file in forum so that we can help you analyze your problem.
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • Informatica 9.1 with oracle 12c. Not able to connect to the PDB while instalation

    Dear Peers,
    I installed oracle 12c on my laptop. And by default PDB created, TNS entries added for the same and successfully connected to PDB. In my PDB i created two users and I am able to connect with them also.
    While installing the informatica server with 64 bit, in the part of domain configuration repository I am not able to connect to my users those I created. I am not able to connect to either CDB or PDB also. I am not able to get the what is the error is. But in oracle I am able to connect to my PDB with those users.
    Any one overcome on this issues, Please help me.
    Thanks
    Raghavendra
    <mod. action: phone number removed>
    Message was edited by: Nicolas.Gasparotto

    If you can connect using sql*plus from the same machine you are using informatica to connect from then you have an informatica issue and should try posting in an informatica forum.

  • Recover from TM to external usb drive while in normal operation

    I know only one point where the recovery process can be started, it is the recovery mode cmd+R.
    As soon as in recovery mode the Mac is not available for other tasks.
    The situation is that a TM backup resides in network.
    We like to test that backup by recovering it to an external usb drive.
    For this we need to boot in recovery mode.
    However the test should take place in background so the regular tasks can continue normally.
    How to start recovery from TM on network to external usb drive connected to Mac
    but while Mac is in normal operation?

    Aimed goal is quite simple.
    Whole OS X Mavericks installation has to be restored from Time Machine backup, whereby
    Time Machine backup is in LAN on some NAS
    It has to be restored/recovered to usb drive connected to the Mac those TM backup is of
    The recovery process has to run in background
    In foreground the regular job can be conducted (means the OS X is in normal operation)

Maybe you are looking for