How to receive USB device handle from DLL

Hi All,
I'm working on a firmware
running on a development kit and I'm trying to communicate with the
board through USB from Labview in Windows environment. For that, I've
built a DLL which enumerates, opens Read/Write file handle and does a
few other functions. I'm using standard Windows APIs for USB
initialization. 
I use  "Call libr. function node" in labview to call these dll's. Inside the DLL, I use a function to initialize the USB which returns a device handle to the labview. My question is,  in "Call libr. function node" what is the parameter type I should use to receive the device handle? The device/file handle is defined in the WinAPI as a void pointer.
Any help will be much appreciated.
Thanks,
Hari

Hello Hari,
Have you seen this thread?  DLL call with HANDLE type
Regards,
Charlie Piazza
Staff Product Support Engineer, RF
National Instruments

Similar Messages

  • How / When Does a Device Jump from the 2.4 GHz Network to the 5.0 GHz Network

    I understand -- through another thread that I started -- that the Guest Network will be both 2.4 GHz as well as 5.0 GHz....I would like to understand how / when does a device jump from the 2.4 GHz network to the 5.0 GHz network as I understand that: the 2.4 GHz network is slower but has greater range relative to the 5.0 GHz network.
    Thx...

    Bob Timmons wrote:
    A device will connect to either the 5 GHz or 2.4 GHz band based on its own capabilities and distance in relation to the router.
    So, if you have a 5 GHz capable device that is in close proximity to the router, it will connect at 5 GHz.  If that device moves a few rooms away from the router, it will switch over to the 2.4 GHz band since that signal will be stronger....and likely faster at that location.
    Think of 5 GHz as a "same room" connection or "line-of-sight" deal. It might be OK through one wall....if it is thin.
    You do have an option to assign a separate name to the 5 GHz band in AirPort Utility. Once you have done that, simply "point" the device at the network with the 5 GHz name. Some users swear by this and some swear at this.
    The downside to doing this......the device will likely try to hang on to the 5 GHz connection if it moves a few rooms away from the router.....at a location where the 2.4 GHz signal is stronger and likely faster.
    Again, thanks for the very helpful response.
    It occurs to me from reading the above that it makes sense to let the device (using your words) connect to either the 5 GHz or 2.4 GHz band based on its capabilities and distance in relation to the router as I can see / understand the downside and issue of manually pointing to or selecting  a specific network.
    The reason that I purchased an Apple router is the hope that it will work better than some of the other routers I have tried as far as the 5 GHz / 2.4 GHz dual banding is concerned because in most of these cases I have had to disable the 5 GHz band to maintain a reliable internet connection...hopefully the Aiport Extreme will not require me to do so [i.e. it will work]!
    With respect to *BOTH* the Primary Network and the Guest Network being dual band I can only conclude that this work because there are essentially two separates networks [i.e. 10.o.x.x and 172.16.x.x] that are using the send / receive configuration capabilities.
    Thx...

  • How to get USB device in the list of VISA resource Name field of VISA Open VI

    I have followed the below tutorial to communicate with my device using USB port. But i didn't get the name of the USB port in Measurement & Automation Explorer devices list. How to get it? Can anyone suggest something?
    http://zone.ni.com/devzone/cda/tut/p/id/4478
    Solved!
    Go to Solution.

    Hi kimhyun,
                     I have attempted this.But succeeded.I used pendrive as my USB device.my sugesstion is you don't disconnect your device at any point of your work.Check the device is connected properly.IF your system has recognized your device,you can view the device in control panel>>Device Manager>>Then open your particular device from the list of connected device then Details>>device description>>Hardware Ids>>Then you can find your vendor id there.
    Try this.I think your device is loosly connected.Which USB device are you using??Also you must install THE DRIVER OF YOUR USB DEVICE.
    GOOD LUCK
    Thanks as kudos only

  • [SOLVED] Openbox+Thunar, how to show usb devices in thunar?

    Hi.  I've been running a pretty standard Xfce environment for a while.  When I plug in a usb drive, I get a new item pop up in the "DEVICES" section of the left panel in thunar (note, it doesn't automount the device, it just shows that it's there and only mounts it when I click on it...I like this behaviour).
    Now, I'm setting up an even lighter-weight environment, just openbox and tint2 with thunar as the file manager.  But when I'm logged into the openbox environment, I don't get the item in the "DEVICES" section in thunar (but it still works fine in xfce).
    If it run thunar from the command line and plug in a usb drive I get this message in the terminal
    (thunar:21205): thunar-WARNING **: Failed to launch the volume manager (Failed to execute child process "thunar-volman" (No such file or directory)), make sure you have the "thunar-volman" package installed.
    I don't see why I would need thunar-volman if it works fine in xfce.  If I install thunar-volman and do the same, I get this message
    thunar-volman: Unsupported USB device type.
    thunar-volman: Unsupported USB device type.
    thunar-volman: Unknown block device type.
    So I'm wondering if maybe there is a daemon that is autostarted during an xfce session that makes thunar probe for devices to be plugged in or something like that.  Why does it work in an xfce session, but not in an openbox session?
    Last edited by Pacopag (2013-03-14 15:52:32)

    Thanks for your replies.
    henk:  I tried installing polkit-gnome and creating the rule as per the wiki, but it didn't work.  Volume detection seems to work fine in xfce without this package.
    jv2112:  I added udiskie to .config/openbox/autostart and it seems to work.  I've had problems with udiskie in the past; it seemed to have some trouble unmounting the drives properly after a write as I would find that the newly written files were corrupt.  But it seems to be working fine.
    I'll mark this as solved, but I'm still curious as to how xfce-thunar is mounting the usb devices. 
    One clue is that with udiskie, devices get mounted to /media, whereas in xfce they get mounted to /var/run/media/username/ (or something like that).

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

  • How To Share USB Devices Between Two Mac's?

    I am musician and have several USB controllers that I would like to share between my Mac pro and my Macbook Pro. (drum pad, keyboard controller,USB midi interface etc.) I have seen several switches offered on the net, however they all seem to be for PC from what I have found really.
    Belkin 7-Port Desktop USB Hub (F4U017) was recommended but the language in the the description does not mirror the same types of functions I am seeing mentioned in units made specifically for the PC. (ie "share USB devices between 2 computers.") Did I taint my mind by looking at the PC items first? Is it really as easy as to plug two Macs into the same USB hub and share their devices? Does anyone have a working solution they are using for this type of situation? How do you do it?
    If I could share 7 USB devices between the two systems, I think I would be just this side close to Heaven in ease!
    thank you!
    Cheers,
    Marty

    Thank you for the lead Direwolf, it felt like there might be a little more to it than just connecting to a hub. I just converted from PC about 8 months ago. Loving my macs!! A KVM switch I had not thought of that. I will look into. I read the wiki page and it seems like a kvm would replace the screen sharing feature the two machines can now use easy enough, only without using the cpu overhead to do it??? (i think is what I understood)
    Does anyone have a model they are using and can recommend? (it's a jungle +out there+) I just did a quick search and found mostly kvm switches with 2-ports USB,. ... looking for seven, come on lucky seven! lol!
    I will keep looking. In the mean time if readers have additional ideas, I will be very grateful! Cheers!

  • Can i change usb device driver from windows 7 format to mac format?

    i bought an pcdvb xvision 3100.it has drivers for windows 7 .i have a macbook pro with mountain lion.how can i use this usb device on mac .please explain which app can do this to convert this driver or how with other ways?

    A Google search turned up this device as only being sold in Arabic countries - I can't tell for sure what it is: a stereo receiver? You're just going to have to check with the manufacturer to see if there is OS X support for the device.
    Clinton

  • How to sleep USB device?

    Hello, my 24" Imac gets pretty hot so I bought a little desktop fan that is powered by USB. It works great and keeps the Imac much cooler. However, when I put my computer asleep for the night my new USB fan is still getting power and stays on. Is there a utility I can use to tell it to sleep the USB device? Thanks, Alan

    Disconnect the fan or if it has an on/off switch turn it off. The fan obviously has firmware that continues to draw power from the USB port when the computer is asleep. This is a "problem" with the fan, not the computer.

  • How to receive mail on iPad from two different addresses

    how to receive e mail on iPad from two different addresses and using these same two addresses receive e mail on computer

    Go to mail in settings and add the new account
    User guides
    http://manuals.info.apple.com/MANUALS/1000/MA1595/en_US/ipad_user_guide.pdf

  • How to clear USB Device Information

    Hi,
    I'm developing USB hardware as operate as HID keyboard,
    Some Wrong Informations about USB keyboard device are saved OSX under debug,
    that seems to be keyed by USB VID/PID.
    Is there way to clear this informations and set as never connected that USB device before?

    Does this help?
    http://developer.apple.com/hardwaredrivers/download/usbdebug.html

  • How to mount USB & CDROM drives from single user mode - Solaris boot disk?

    Hi All,
    I need to carry out ufsrestore on a single newly replaced system disk (no redundancy / mirroring) from either USB or CDROM drives from the following steps:
    ( i ) GRUB => e, e, cdrom –s, Enter, b (boot from Solaris 10 x86 media).
    ( ii ) Choose menu 1 for Install Solaris Interactive Mode to reach single user mode.Below are the commands that I have tried in single user mode without success:
    mount –r –F pcfs /dev/dsk/c1t0d0p0 /cdrom (after unmount Solaris CD)
      mount: /dev/dsk/c1t0d0p0 is not a DOS filesystem.
    svcadm –v enable smserver
      svcadm: Pattern ‘smserver’ doesn’t match any instances
    svcadm enable autofs
      svcadm: Pattern ‘autofs’ doesn’t match any instances
    devfsadm
      devfsadm: mkdir failed for /dev 0s1ed: Read-only file system
    mkdir /mnt
      mkdir: Failed to make directory “/mnt”; Read-only file systemPart of the problem is due to the current READ ONLY filesystems which does not allow the creation of mount point such as /mnt.
    I have been able to create both / root (/dev/dsk/c1t0d0s0) and /export/home (/dev/dsk/c1t0d0s0) filesystems with newfs that are awaiting for restore using ufsrestore.
    The only option I am left with is to attach a secondary disk to install Solaris 10 on either of them before bring the system to multi-user mode so that service such as volmgt, autofs, volfs are available to access USB & CDROM drives.
    Any suggestion on how to resolve this issue?
    Many thanks,
    Jack

    Hi JKGN,
    Is the directory a located under the root filesystem. ie /a? Are there any other mount point for say USB drive as well? I am not in a position to try it out right now but will get back
    to you soon on whether /a exist or not.
    Btw, the last thing I managed to do on this system at the time was added a secondary 1TB internal disk with the intention to restore both / and /export/home data onto this disk while
    making use of all the disk device management services such as the following services only available in a fully installed Solaris system (both single & multi-user modes) installed on the
    primary disk:
    # svcs smserver
    STATE          STIME    FMRI
    online         Jun_08   svc:/network/rpc/smserver:default
    # svcs autofs
    STATE          STIME    FMRI
    online         Jun_08   svc:/system/filesystem/autofs:default
    # devfsadm
    # iostat -En
    c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: ATA      Product: SAMSUNG HD321KJ  Revision: 0-11 Serial No: 
    Size: 320.07GB <320072932864 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 41 Predictive Failure Analysis: 0
    c0t0d0           Soft Errors: 0 Hard Errors: 5 Transport Errors: 0
    Vendor: PHILIPS  Product: DVD+-RW DVD8801  Revision: AD21 Serial 
    Size: 17.54GB <17538875392 bytes>
    Media Error: 0 Device Not Ready: 5 No Device: 0 Recoverable: 0
    Illegal Request: 10 Predictive Failure Analysis: 0
    c2t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: JetFlash Product: Transcend 16GB   Revision: 1100 Serial No: 
    Size: 0.00GB <0 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 7 Predictive Failure Analysis: 0
    # rmformat
    Looking for devices...
         1. Volmgt Node: /vol/dev/aliases/cdrom0
            Logical Node: /dev/rdsk/c0t0d0s2
            Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
            Connected Device: PHILIPS  DVD+-RW DVD8801  AD21
            Device Type: DVD Reader/WriterHowever, I was disappointed that "iostat -En" has not found the secondary disk (1 TB) even though it was available earlier, for Solaris installation as the only disk on the same system.
    As a result, I am left with no option but the need to rebuild this system with only a single primary disk while in single user mode. However, the single user mode that I am in is the
    one from Solaris installation disk with restrictive (_cannot create folder for mount point or running disk management utilities_) capability such as those services just covered, compared to one from a completed Solaris installation system with full access to all filesystems and utilities / commands in general.
    I would very much value your assistance on how to mount both CD & USB in this restrictive limited Read Only OS (assume that it is running from memory) in order to get complete access to
    the blank primary disk so that full restore with ufsrestore could take place.
    Thanks in advance,
    Jack
    Edited by: 797805 on 9/06/2012 04:15

  • Multiple USB devices with LKIF.dll

    I am successfully using a single USB Keyence LK-G3001 laser displacement controller with 2 heads and making function calls to LKIF.dll
    The next step is to implement a second controller.
    According to Keyence, the LKIF.dll will only support a single device. They suggested disabling the 1st USB port and then enabling the 2nd port.
    How can I programmatically
      determine which device is attached to which port?
      enable/disable the USB port?

    If you're running on a Windows machine you can try using devcon. It's a command-line based utility. For other operating systems you would need to use the old Google to find an equivalent utility.

  • How do i retrieve device deleted from Icloud?

    I recently erased my iphone 4 device from my icloud account and all the info such as contacts, photos and notes got deleted permanently. How do I get it back?

    Restore your backup, if you have one.

  • How to update 1 Event Handler from different SAP systems?

    Hi experts.
    I created an Event Handler via SAP 4.7 Purchase Order.
    I now need to update this same Event Handler with a control parameter from SAP 6.0.
    I was surprised to see that when I updated the Purchase Order in 6.0, EM created a new Event Handler!
    Guess I'm missing something obvious...
    Thanks.
    Zenon.

    Hello Berthold, Steffen,
    Yes it's the same PO in 4.7 and 6.0.  We implemented (upgraded) the ERP system to 6.0.  The Event Handler was orginally created from 4.7, but now we need to update it from 6.0.
    So the Event Handler (tracking id, control parms, EE etc)  can only be updated from the logical system the Eh was created in (4.7), and I can only send Event Messages (Events) from 6.0.  Correct?
    Any thought about how to approach this situation and any future upgrades?  Maybe I need to write a conversion program...
    Thanks.
    Zenon.

  • How to receive fillable PDF forms from clients & be able to save them?

    Hi everyone,
    So I have been having trouble with this for a while now.
    Basically for work, my assignment was to create a PDF that could have fillable forms and a button at the bottom of the page sending to my coworkers' emails.
    How it would work:  Once a person fills out the form and presses the send button at the bottom of the PDF, it would send to my coworkers' emails and they could save the documents with the fillable data.
    Everything works except for the saving process.  Once my coworkers receive the email, they get different error messages that look like the following (and they CANNOT SAVE the PDFs... so it makes the whole idea worthless):
    Here is how the messages read:
    1) First image on the left: the box reads "Save a Blank Copy of this Form"
                                         underneath it it says "Data typed into this form will not be saved.  Adobe Reader can only save a blank copy of this form.
    2) 2nd image:  the box reads "Sending Data Files by Email"
                         underneath it says "Please note: This form contains an email submit button.  Clicking this button will email a data file containing data you type into this form.  However, the form itself will not be sent.  Remember you cannot save a completed copy of this form with Adobe Reader 9 or later.
    3)  3rd image:  reads "the file you are attempting to open contains comments or form data that are supposed to be placed on.  This document cannot be found.  It may have been moved, or deleted.  Would you like to browse to attempt to locate this document?
    So, I was wondering if there is any way around this.  Is there away to have the PDF sent back to my coworkers so they can then save the FILLABLE PDF and organize it in a folder. 
    If there isn't... then is there a way to have it send back to my coworkers and have them print out the fillable PDF and organize the PDFS coming in that way?

    Yes, you just need to Reader-enable the document, which will allow Reader to save the complete PDF form. When you set up the Submit button, choose the option that sends the complete PDF, as opposed ot just the form data (FDF, XFDF).
    To Reader-enable a document in Acrobat 10, select: File > Save As > Reader Extended PDF > Enable Additional Features
    Do this as the final step when preparing the document to be sent out.

Maybe you are looking for