Program to automatically detect usb device

Dear labview users,
                                   I wanna build a program such that when a USB device (pen drive/ memory stick) is connected to a PC, it has to detect the device and prompt the user to provide a password and then only the user gets the accessbility to open the memory stick.  This is mainly for security purpose of the PC, such that in no condition without the programmer's knowledge no one should transport the data from the PC.
                                   To add more to the program, this labview program should be run in the background in all the time in the sense that even the labview program is triggered by the user or not, it has to run all the time in background without anybody's intervention. when a memory stick is connected it has to prompt the password.
                                    Is this possible in labview, Iam using labview 8.0. If anybody gets solution to this young chap's idea please response to this query.
Labview lovers.....

Hi Shivkumar,
Would it be acceptable for the entire PC to be in a way "locked down" untill a password is entered once a pen drive is detected? Or would you simply want the password dialog to pop-up when they try to double click on the actual drive under "My Computer" to access the data? Also, if the password is not entered but the pen drive is remove, should the password dialog box disappear?
Best regards,
Steven

Similar Messages

  • HT1948 USB drive with install image is showing in Startup Manager on a Mac Pro, but wont boot. Showing circle with cross strip, and shut down automatically. USB device are made and work on two different MacBook Pro, but used on Mac Pro. Any help?

    USB drive with install image is showing in Startup Manager on a Mac Pro, but wont boot. Showing circle with cross strip, and shut down automatically. USB device are made and work on two different MacBook Pro, but used on Mac Pro. Any help?

    OS X installers have always been fairly specific, hardware-wise. I haven't read anything reflecting that situation with the Recovery HD, so it may be that the Recovery HD created for the MacBook Pro does not have the necessary drivers for the Mac Pro. Obviously, nothing definitive here, but a possibility.

  • How to detect USB device drives

    Hi
    I want to write a program which will detect the drive letter when a usb device is plugged in. i.e., if a usb device is plugged in and the drive letter is "F:", then my program will instantly detect the presense of the device as well as get the drive letter. How's that possible in Java?
    Thanx in advance
    Regards
    Mathew

    cotton.m wrote:
    Well if you're looking for the newUSBDriveListener API you're out of luck.
    There is no way to do what you are looking for in a number of ways.
    1) If something is listed as a drive the best you can now (from FileSystemView) is that it's a drive.
    2) There isn't "new drive/or device added" event API.
    So what you would have to do is when your program starts get the list of roots. Then poll at some intervals to get the list of roots and see if there are changes. If new drives show up then they show up.I agree!!!

  • Detecting USB Device insertion/​removal

    Hi All,
    With reference the an earlier post by softengr (here), I'm trying to detect the USB devices while being connected.
    I'm trying to compile the same code posted by softengr, but getting some compilation error even after adding windows.h.
    I think I'm missing some header file here.
    The following are the errors during compilation;
      Undeclared identifier 'DEV_BROADCAST_DEVICEINTERFACE'.
      Undeclared identifier 'NotificationFilter'.
      Undeclared identifier 'GUID_DEVINTERFACE_USB_DEVICE'.
      Undeclared identifier 'GUID_CLASS_USB_DEVICE'.
    I'm using LabWindows/CVI 2012 with Windows7 64bit.
    Can anybody suggest waht am i doing wrong here.
    Thankyou,
    Dosth

    A search of the NI forums for "USB Event notification" returned an entry that may help you:
    Windows device event notification
    Message Edited by Phillip Brooks on 12-01-2008 06:49 AM
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • New wdtv, 1.02.17, cannot detect usb-device

    Have had wdtv for years. Small to no problems. Use only external harddrive, no streaming at all. Bought a new wdtv for daughter the other day. First thing noticed is new GUI (the old one was better). But ok. The other thing is that the wd my book or the wd my passport is not detected. Waited for several minutes, in case the new wdtv was slow. Nothing happened. Tried the old one (same chassis but onother gui), 1.12.14. Both usb-devices detected at once.  Is it something I am missing? I have used wdtv for years, since 1. generation, only for usb-connection. Have had almost no problems (use apple-tv for streaming  Thanks

    tinuadmin wrote:
    The other thing is that the wd my book or the wd my passport is not detectedso, are you saying the hard drives led lights don't even come on when you plug the drive in ? a bit strange ... my wdtv (1.02.17) sees all my wd hdd's (My Book, Elements and Passport) all are NTFS things you can try ... do a factory reset (yes, even if it's brand new out-of-the-box)Setup > System > Device Reset > Reset All Settings Back to Factory Default content source button ?  press the red button on the remote and select "Local Storage"  if none of that works ... keep your purchase receipt handy in case you bought a dud

  • Problem with detecting USB devices.. something abt ehci-hcd??

    Hi All,
    I have a DELL E6410 laptop. I have a problem with connecting USB devices.
    Whenever a power event (such as connecting/disconnecting of AC adaptor) happens, my laptop stops detecting any USB devices and any changes that happen on the USB ports. That is, say an external mouse is connected to the laptop, the mouse stops functioning, and if I connect a mouse/USB_stick or any such thing to the computer, the device is not detected.
    dmesg output show that any connecting/disconnecting events are not detected by the computer. lsusb output too shows the same thing.
    To solve the problem, I need to rmmod the module ehci-hcd and modprobe it back. That is, I have to run the commands rmmod ehci-hcd followed by modprobe ehci-hcd. Then, this problem goes away until the next power event happens.
    This event does not happen all the time, but it happens very regularly.
    Here are the kernel and laptop specs..
    uname -a
    Linux myhost 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64 Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz GenuineIntel GNU/Linux
    Kindly help me on this issue.
    Thanks

    This is the output of kernel.log when I unplug my AC adaptor with the external USB mouse connected.
    Sep 12 11:18:33 localh ost kernel: [ 591.015557] EXT4-fs (sda6): re-mounted. Opts: commit=600
    Sep 12 11:18:37 localhost kernel: [ 595.478866] ehci_hcd 0000:00:1a.0: PCI INT A disabled
    Sep 12 11:18:37 localhost kernel: [ 595.478919] ehci_hcd 0000:00:1a.0: PME# enabled
    Sep 12 11:18:37 localhost kernel: [ 595.498827] ehci_hcd 0000:00:1d.0: PCI INT A disabled
    Sep 12 11:18:37 localhost kernel: [ 595.498877] ehci_hcd 0000:00:1d.0: PME# enabled
    After this the the mouse goes dead (the light on the mouse also goes off).
    If I disconnect the mouse at this stage, there is no change in kernel.log. If I the mouse back too, there is no change in kernel.log.
    Now, when I turn the AC adaptor on, this is the output on kernel.log
    Sep 12 11:22:16 localhost kernel: [ 813.917712] EXT4-fs (sda6): re-mounted. Opts: commit=0
    Sep 12 11:22:16 localhost kernel: [ 813.977405] NMI watchdog enabled, takes one hw-pmu counter.
    Sep 12 11:22:16 localhost kernel: [ 813.977453] NMI watchdog enabled, takes one hw-pmu counter.
    Sep 12 11:22:16 localhost kernel: [ 813.980838] NMI watchdog enabled, takes one hw-pmu counter.
    Sep 12 11:22:16 localhost kernel: [ 813.980874] NMI watchdog enabled, takes one hw-pmu counter.
    Sep 12 11:22:16 localhost kernel: [ 814.075104] ehci_hcd 0000:00:1a.0: BAR 0: set to [mem 0xd6970000-0xd69703ff] (PCI address [0xd6970000-0xd69703ff])
    Sep 12 11:22:16 localhost kernel: [ 814.075148] ehci_hcd 0000:00:1a.0: restoring config space at offset 0xf (was 0x100, writing 0x10b)
    Sep 12 11:22:16 localhost kernel: [ 814.075189] ehci_hcd 0000:00:1a.0: restoring config space at offset 0x1 (was 0x2900000, writing 0x2900002)
    Sep 12 11:22:16 localhost kernel: [ 814.075256] ehci_hcd 0000:00:1a.0: PME# disabled
    Sep 12 11:22:16 localhost kernel: [ 814.075279] ehci_hcd 0000:00:1a.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    Sep 12 11:22:16 localhost kernel: [ 814.075295] ehci_hcd 0000:00:1a.0: setting latency timer to 64
    Sep 12 11:22:17 localhost kernel: [ 814.228224] ehci_hcd 0000:00:1d.0: BAR 0: set to [mem 0xd6950000-0xd69503ff] (PCI address [0xd6950000-0xd69503ff])
    Sep 12 11:22:17 localhost kernel: [ 814.228246] ehci_hcd 0000:00:1d.0: restoring config space at offset 0xf (was 0x100, writing 0x10a)
    Sep 12 11:22:17 localhost kernel: [ 814.228273] ehci_hcd 0000:00:1d.0: restoring config space at offset 0x1 (was 0x2900000, writing 0x2900002)
    Sep 12 11:22:17 localhost kernel: [ 814.228310] ehci_hcd 0000:00:1d.0: PME# disabled
    Sep 12 11:22:17 localhost kernel: [ 814.228324] ehci_hcd 0000:00:1d.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
    Sep 12 11:22:17 localhost kernel: [ 814.228333] ehci_hcd 0000:00:1d.0: setting latency timer to 64
    Sep 12 11:22:17 localhost kernel: [ 814.614404] usb 2-1.1: reset low speed USB device number 3 using ehci_hcd
    At this point, the mouse comes back to life (its light begins to glow) and I can move the mouse pointer on the screen.
    The output of the grep command that rwd gave is too big (16000 lines) to be pasted here..
    Thanks,

  • USB Ports on HP G60-230US Notebook Not Detecting USB Devices

    I've had an HP G60-230US Notebook PC for about three and a half years now, and all of a sudden tonight my USB ports decided to all stop working.  I first noticed it when I tried to hook up my iPod to sync it and it didn't show up in iTunes.  I unplugged my wireless mouse to see if the other USB port would work with no luck, and when I plugged my wireless mouse back in it wasn't detected either.  I tried restarting my computer twice to see if that would take care of the problem but it didn't. 
    My notebook currently runs Windows Vista.  On a normal day I'll have my external harddrive (WD My Passport Essential 500 GB), my wireless mouse (Microsoft Wireless Mobile 3500) and my Targus Chillmat with 4 USB hubs in the back plugged into my 3 USB ports.  My printer is usually plugged into one of the Chillmat's USB ports.  When I want to sync my iPod I usually unplug the Chillmat because none of the USB hubs on it will detect the iPod.  At the moment my wireless mouse will still work if I leave it plugged into its USB port when I restart my computer, and all the chillmat is doing is cooling my laptop down.
    Any help would be very much appreciated.

    You may have exceeded the available power capacity of the USB ports in your notebook PC too many times. That can result in non functioning (forever)  ports. That is the specific reason that I recommend only using externally powered USB hubs.
    You can check the current carrying capacity of the USB ports and see how much they are using via the device manager.
    Open Device Manager and then right-click a USB root hub. Select properties and then the Power tab.
    This particular system has many ports available.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Macbook pro not automatically detecting usb wireless extender

    From a long distance I'm trying to help a friend get a Wireless Repeater setup on his Macbook Pro.  This is a Plug 'N Play piece of equipment that connects through USB.  When he plugs it into his Macbook Pro nothing happens and it's not detected at all, however when it's plugged into a PC running Windows 7 the Repeater works without any problems and is immediately detected.
    I've suggested he confirm the USB ports are working properly.  Based on other forums for similiar issues, with different equipment, I've suggested plugging the Repeater into the computer before turning it on.
    Any other suggestions to get it working would be greatly appreciated!!

    It depends on the device, but in general, Macs support Plug and Play peripherals. However, USB Wi-Fi extenders are problematic because OS X does not come with drivers for these devices.
    If you know the brand of the extender and its model, put it here and I will look for its driver.

  • Arch 2.6.36 not automatically mounting USB devices

    Hi,
    I am new to Arch but up to now i really like it and i am using this for my home server.
    Now i use 2 external USB 1TB disks for backup which i auto mount using /etc/fstab.
    The problem is that it is not auto mounting the volumes.
    /etc/fstab
    #External disks
    UUID=dc401eb5-05f0-46ca-ba31-3d54ca66e30e /mnt/usbdisk1 ext4 defaults,noatime 0 0
    UUID=a3417e0a-0ec0-4106-b9df-682eb9ba92dd /mnt/usbdisk2 ext4 defaults,noatime 0 0
    dmesg output just after mounting my /
    scsi 4:0:0:0: Direct-Access WD 10EAVS External 1.75 PQ: 0 ANSI: 4
    sd 4:0:0:0: Attached scsi generic sg4 type 0
    sd 4:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
    sd 4:0:0:0: [sdd] Write Protect is off
    sd 4:0:0:0: [sdd] Mode Sense: 23 00 00 00
    sd 4:0:0:0: [sdd] Assuming drive cache: write through
    sd 4:0:0:0: [sdd] Assuming drive cache: write through
    sdd: sdd1
    sd 4:0:0:0: [sdd] Assuming drive cache: write through
    sd 4:0:0:0: [sdd] Attached SCSI disk
    scsi 5:0:0:0: Direct-Access WD 10EAVS External 1.75 PQ: 0 ANSI: 4
    sd 5:0:0:0: Attached scsi generic sg5 type 0
    sd 5:0:0:0: [sde] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
    sd 5:0:0:0: [sde] Write Protect is off
    sd 5:0:0:0: [sde] Mode Sense: 23 00 00 00
    sd 5:0:0:0: [sde] Assuming drive cache: write through
    sd 5:0:0:0: [sde] Assuming drive cache: write through
    sde: sde1
    sd 5:0:0:0: [sde] Assuming drive cache: write through
    sd 5:0:0:0: [sde] Attached SCSI disk
    It seems to recognize the physical disks but a mount is not performed?
    Did i overlook something or is there something else wrong?
    Thanks!

    /etc/fstab is for FS options only, putting you device there does not guarantee automounting. This has already been discussed: https://bbs.archlinux.org/viewtopic.php?id=48469

  • Here's a program for finding your product ID and Vendor ID of USB device

    Greetings, All
    Just to let you know of a program I found that will tell you the Product ID and Vendor ID. A long with a bunch
    of other stuff for your USB device.
    This all started trying to find my product ID and Vendor ID for my Radium 49 MIDI USB keyboard to use with VISA.
    Tech Support at M-Audio had no idea what I was talking about so I found this instead. Hope this helps
    someone else out that uses no standard hardware.
    Enjoy
    It's called usb monitor
    http://www.hhdsoftware.com/usbmon.html

    Thank you son,
    I will try this out. This could become a good tool to detect USB devices which are part of an ATE (for which there may not be LV drivers).
    I will post feedback after "experimenting with it".
    Thanks again!!
    -JLV-

  • MSI P43 won't boot with usb devices connected

    My system:
    MSI P43 Neo
    Intel Core 2 Duo E8400
    NorthQ Black Magic 850 watt PSU
    Corsair 4 x 2GB ram PC2-8500 1066MHz
    Seagate 320 GB hd
    Hitachi 1 TB hd
    Samsung 1.5 TB hd
    Club3D Nvidia GTX275 1,75 GB
    Samsung DVD Write Master
    When i try to boot i freezes at the detecting usb devices when i have a usb device connected. It does with any usb device. But when i boot up without any usb devices connected then i boot fine and i can connect the devices right after the detection of usb devices. How can that be?

    Googled on "computer not booting with usb code 6b38" and found this:
     Quote
    ****SLOW BOOT-UP in POST SCREEN****
    P.S. If you see the BIOS code 6B38 in the bottom right corner of the screen, this is a indication that USB Legancy support is enabled in the BIOS. If this is enabled and you have any usb devices attached such as a external USB Hard drive, your system will take ages to go through the POST boot screens.
    So disable this setting in the BIOS and the system will then boot in a matter of Seconds
    From:
    http://www.rebelshavenforum.com/sis-bin/ultimatebb.cgi?ubb=get_topic;f=30;t=000250
    Also try and see if a clear CMOS will help, some people suggested that from a old post from MSI forum here, saying its bios 1.3 thats bugged.
    So if disabling doesnt work, perhaps down/upgrading BIOS might.

  • USB devices not detected in VMware [SOLVED; Using Virtualbox instead]

    I am running Arch as a host and XP on VMWare workstation 7.  My primary purpose of installing XP on VMWare was to use my edit my Line6  POD (behaves as a usb sound card) and get my USB TV Tuner box to work. The big problem that I am facing is that VMWare is not detecting any USB device (not even my USB Hard Drive).
    I have the usb controller installed.
    Any suggestions?
    Last edited by devadittya (2009-11-24 20:04:45)

    I don't know vmware but with other virtual machines there is often a configuration option whether usb drives should be automatically mounted or not. Sometimes automounting also only works if the vm has the focus, i.e. is the active window.

  • SetPanelAt​tribute crashes USB device detection

    I am developing an application for LabWindows 2010 that reads and writes to/from a hardware board via a USB connection.  The program initializes the interface on startup by calling InstallWinMsgCallback to detect any WM_DEVICECHANGE messages sent to the main panel.  The callback receives the WM_DEVICECHANGE message and detects whether power has been turned on or off to the board by looking for wParam == DBT_DEVICEARRIVAL (power on) or DBT_DEVICEREMOVECOMPLETE (power off).  The device information in lParam is used to configure the board.  The callback also receives WM_DEVICECHANGE messages with wParam == DBT_DEVNODES_CHANGED but ignores these.
    Our application can be controlled either by the user or from an "automation" server program.  When automation is turned on, the application disables input to the main panel.
    The problem I'm seeing is that when certain attributes of the main panel are set to false (including ATTR_MOVABLE and ATTR_CLOSE_ITEM_VISIBLE), the USB interface crashes.  The crash is indicated by a different message being posted to the callback with a message ID of 1004 (hex 3EC), even though InstallWinMsgCallback was never called with this message ID.  Once the crash happens, the program no longer detects when power to the board is turned on or off.  The callback will still receive DBT_DEVNODES_CHANGED messages when the board is powered on or off, but not DBT_DEVICEARRIVAL or DBT_DEVICEREMOVECOMPLETE.
    I have looked for information on the meaning of the 1004 error code on various websites that list WM_xxx message opcodes, but this code isn't listed.  I've also noticed that after the crash, the program will still continue to process all messages for other USB devices -- for example, if I plug a portable USB drive into a port on the PC.  Only the detection of the hardware board is affected.
    Does anyone have an idea what could be causing this?
    Rich Ferrara
    Solved!
    Go to Solution.

    Jared,
    Our program interfaces with two different boards.  Both are made in-house.  The vendor ID code is 0x04B4 and the product ID codes are 0x1004 and 0x57E1.  (I'm guessing the "1004" value is a coincidence, since the vendor ID is hex and the 1004 I saw in the Windows message number is decimal.)  The USB connections are the standard type A on the PC and type B on the boards.
    I tried switching the boards to connect to different ports on the PC with the same results.
    When I added a SetPanelAttribute call to the program initialization to set the main panel to be non-movable and non-closeable before calling InstallWinMsgCallback (or when I changed the default panel settings in the UIR file), the USB interface didn't crash when I turned automation on -- but it did crash when I then turned it back off.  So it appears that it's not the fact that the attributes are set to false that's causing the crash; it's the act of changing them.
    I found that changing the ATTR_SIZABLE attribute has the same effect, and there may be more.  But there are other panel attributes that don't cause any problems (including ATTR_DIMMED, ATTR_VISIBLE, and ATTR_TITLE).
    The first time I got the 1004 message in the callback, wParam was set to 0x00040322.  After that, I got another 1004 message every time I changed the automation setting.  Each time, the upper 16 bits of wParam incremented by 1 while the lower 16 bits remained 0x0322.  Since I can't find any information about the message, I don't know what those bits mean.
    Rich 

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    If you are missing using google maps - try the Nokia map app called "here"

  • Was told a USB device would create a PDF automatically from the data contained within when plugged into my USB port. Doesn't seem to work. How does this work and how can I fix the device I received?

    Acrobat is not on the USB device - only Adobe Reader needed on the PC. How does this work? How can I fix this device if at all?

    You need to ask the people who sold it to you. Doesn't sound like it has anything to do with Reader.
    However, you should be wary of devices that automatically try to open files when plugged in. They can also infect your computers with all kinds of viruses or malware.

Maybe you are looking for