How to communicate with HID USB device under windows XP with Labview

          I have designed a EZ-USB FX2 device and I need to communicate with LabVIEW. I mean I just want to send and receive data. I don’t know how to achieve this goal.Someone have advised me to design a HID device,then use VISA Driver Development Wizards to generate driver(inf file).SO I defined it to a hid device .However when I connect my hid device to the computer, it will automatically be recognized as HID compliance device. I can’t to install the inf file driver. I wondered whether all HID devices will be acquiescently installed the drivers contained in the windows rather than use the inf file driver generated by VISA Driver Development Wizards? If so,what should I do next to communicate with HID USB device under windows XP with Labview? HOPE TO GET HELP!
          KIVI

Hi,
I am working on a project using PIC18F4550 MCU and USB.
I would need to send and receive data from the MCU thru USB. I have uninstaled the HID and created a new NI-VISA driver for my MCU. this worked fine, and it did showed up in MAX
Unfortunately I was not able to receive data from the MCU, Just sending!
I thought to use HID.DLL but the way I need to use the functions inside the HID DLL is simply too much for me, I am not a PC programmer.
There is any kind of VI that is able to use HID.DLL to comunicate with external devices conected to PC thru USB?
Please Help
Andrei

Similar Messages

  • Installing VISA USB device under Linux

        Well, well, well... I've never though that such a time will come, but...
    Linux. The question is about it.
    It so happend that i need to install a custom made usb device under that OS. I've created the driver using NI-VISA driver development wizard and my device works fine under windows. But i don't know how to create a driver for Linux and how to install it there.  Any ideas? Any???
    www.xinstruments.com
    Custom Software for Industrial Automation
    www.hdrconverter.com
    Picture processing made easy

    Shawn B. wrote:
    > It looks like you are running Mandriva 2006 (as opposed to 10.0). 
    > The version of NI-KAL that shipped with NI-VISA 3.4 does not support
    > Mandriva 2006.  The good news is you can download a newer version
    > of NI-KAL that will install on Mandriva 2006 from:
    >
    > <a href="ftp://ftp.ni.com/support/kal/1.2/"
    > target="_blank">ftp://ftp.ni.com/support/kal/1.2/</a>
    >
    > Install NI-KAL then run updateNIDrivers.
    >
    > Shawn B.
    > National Instruments
    This is not exactly an enlightening answer for a typical Linux user. I too
    am having difficulty installing this under Debian Etch.
    Linux distributions are made of components, the name on the label is a
    little meaningless (in my years of experience with Linux, I am yet to find
    a single program that will compile with one distro but not another, given
    the same tools). So what components exactly does this driver depend upon ?
    What am I missing here ? Is it my custom kernel (this is a Debian Etch
    system) or some bug in the supplied drivers ?
    The installer identified the following :
    Checking required install tools...
    Checking installer tool versions...
    rpm 4.4.1 can be used with a default installation path
    tar 1.15.1
    Checking dependencies...
    glibc 2.3.5
    X /usr/X11R6/bin/X
    Terminal /usr/X11R6/bin/xterm
    Unpacking install files to /tmp/ni4882.install...
    My error messages :
    The following components, totalling 28444KB, have been selected
    for installation:
    LabVIEW 7.0 Run-Time Engine
    NI-PAL
    NI-KAL
    NI-488.2 Help
    NI-488.2 Utilities
    NI-488.2 Driver
    Continue? [Ynq] Y
    * NI-KAL 1.0.0f0 for Linux/x86
    This installer will install the NI software using the targz.
    This software is covered by the included license file (LICENSE.txt).
    By installing this software you are acknowledging acceptance of the
    terms of the license.
    The installation location for NI-KAL is /usr/local. A natinst/nikal
    subdirectory will be created at the specified location.
    Installing:
    NI-KAL => /usr/local/natinst/nikal
    Extracting /tmp/ni4882.install/kal/nikali-1.0.0-f0.tar.gz to /usr/local/...
    Checking required tools...
    Configuring for linux kernel version 2.6.14.3-raja.
    ********************************* NOTE *********************************
    Using kernel headers found in /lib/modules/2.6.14.3-raja/source.
    If this does not correspond to the location of the 2.6.14.3-raja headers,
    then define KERNELHEADERS in your environment to point to the location
    of the kernel headers, define KERNELTARGET as the version of the
    kernel for which to compile, and then rerun ./configure.
    ********************************* NOTE *********************************
    Kernel has reparent_to_init(): yes
    Number of arguments for do_munmap(): 3
    pte_offset function: pte_offset_kernel()
    Number of arguments for remap_page_range(): 4
    Kernel has get_user_pages(): yes
    Kernel exports get_user_pages(): yes
    USB altsetting name: cur_altsetting
    Kernel has usb_get_intf(): yes
    Kernel has intf_cache member in usb_host_config: yes
    Kernel exports usb_set_configuration(): no
    Kernel has usb_endpoint_running(): no
    Storing configuration in Makefile.in
    If the values stored are incorrect they can be changed before running make.
    Installing Kernel module...
    /bin/cp nikal.c objects/nikal.c
    /bin/cp nikal.h objects/nikal.h
    make -C /lib/modules/2.6.14.3-raja/source
    SUBDIRS=/usr/local/natinst/nikal/src/objects modules
    make[1]: Entering directory `/usr/src/linux-2.6.14.3'
    CC [M] /usr/local/natinst/nikal/src/objects/nikal.o
    In file included from /usr/local/natinst/nikal/src/objects/nikal.c:86:
    /usr/local/natinst/nikal/src/objects/nikal.h:172: warning: 'packed'
    attribute ignored
    /usr/local/natinst/nikal/src/objects/nikal.c: In function
    'nNIKAL100_vmaClose':
    /usr/local/natinst/nikal/src/objects/nikal.c:196: sorry, unimplemen

  • How can I see my USB device in the measuremen​t&automati​on explorer?

    I'm trying to use an USB-device with LabView7.0.
    I followed the manual "using NI-VISA3.0 to control your USB device" which I found on the NI-webpage.
    I generated an .inf file using the VISA driver developement wizard and installed it in the INV folder of my system (I'm using Win2000).
    The following problems occured: after I connect my USB device the "add new hardware wizard" pops up and aks for a driver for the new hardware. when I direct it to the folder with the generated .inf file it doesn't accept this file as a driver.
    second: the USB device doesn't appear in the measurement&automation explorer. I assume that as long as my device doen't appear there it is not recognized by NI-VISA and the comm
    unication from LV wouldn't work?
    How can a make my USB device visible in the meas.&aut. explorer?
    Regards
    Tobias

    Tobias,
    In the VISA Driver Development Wizard, you are required to specify the Vendor and Product ID. These numbers are what Windows will use to determine whether a specific driver is appropriate for a given device. If these numbers do not match between your device and the Windows driver (INF file) that you generate, you will see the behavior that you describe. Check to make sure that you are using the appropriate values. Also, did you right click on the INF file and install it as directed in step 2.2.2?
    Page 5-87 of the VISA Programmer's reference manual specifies how to do a viOpen to a USB device in RAW mode, but you still need the same sorts of Product ID and Mfg ID that you needed for the INF file generation. Furthermore, if you are communicating with
    your instrument directly, you will need to know exactly what command set it expects, so make sure you get that from the manufacturer as well. Finally, I want to mention that if this device complies with the USBTMC standard, then none of this is necessary--the steps above are for setting up a RAW USB connection. See this link for information.
    Scott

  • How do you eject a usb device from a mini mac

    How do properly eject a USB device from a mac mini?

    Ejecting in Mac OS X:
    1. Drag it to the Trash in the dock (it will turn to an "Eject" icon)
    2. Right click and choose "Eject"
    3. Click it once and click File>Eject from thre Finder menu
    4. Click it once and press Cmd+E
    5. If your keyboard has an Eject" key (usually located above the "Delete" (a.k.a backspace) key, you can Eject media from the optical drive with that
    ANY files or apps opened or running from the external drive MUST be closed BEFORE you can eject it.

  • My Macbook Air behaves strangely with my USB devices.

    Hello! My Macbook Air behaves strangely with my USB devices. They appear in the Finder but the icon then quickly disappears, as if the device has never been connected. Sometimes the devices work fine, however. Could you please help me identify the problem?

    USB draws power from the MBA, and MBA will shut them down if too much is taken.  Try a self-powered (not USB-powered) hub, to see if the AIr acts better.  Costs about $25 at BestBuy.
    May not tbe the final solution, but no a bad idea anyway.

  • When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with pr

    When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with process id 6620 stopped the removal or ejection for the device USB\VID_05DC&PID_C75C\20131215015821328FC8.
    I am running on Windows Server 2012 R2 in Desktop Experience mode.
    Any ideas?
    Roger

    In addition to that symptom, I discovered that even though I had closed all Adobe Reader sessions, the processes kept running and used up 90%+ of my CPU.

  • Some USB devices don't work with MacBook (Unibody)

    Hi everybody,
    I've just bought a new MacBook and I'm experiencing a few problems with some USB devices like USB memory sticks and USB hard disks.
    Whenever I plug in one of these devices I undergo one of the following:
    - Copy operations get stuck
    - Time Machine backups get stuck
    - Finder freezes or crashes
    - Disk Utility freezes or crashes
    Can someone report the same behavior?
    Thanks for any hint
    PS: this is what Console reports
    +11/24/08 22:50:01 kernel USBF: 22875.305 AppleUSBEHCI[0x6d6e800]::Found a transaction past the completion deadline on bus 0x26, timing out! (Addr: 2, EP: 1)+

    Hello together,
    i also have seen some USB problems with the new MacBook and just checked a bit deeper.
    I have no problems with my USB sticks, the USB hard drive, the MIDI interface - most stuff works. But there still is some special stuff i use for my embedded projects.
    One is the USBprog, a universal AVR-based USB device with open source firmware, where i used a programmer emulation. I patched the firmware a bit, as it had problems with the OSX USB stack (was something with OSX sending a NACK and the device doing nothing on this - which is perfectly legal according to the specs). After this patch, the programmer works fine with my Mac Pro (Early 2008). But if i connect it to the MacBook, i get error messages in system.log about this device.
    The funny thing - if i connect it via an USB hub to the MacBook, it seems to work fine.
    The other device is an Olimex AT91SAM7 development board, which also works fine on the Mac Pro as a CDC device (/dev/cu.usbmodem*), but doesn't on the MacBook. Can be seen with cu - the first connection works fine, the second connection hangs the MacBook, you can log off, but it is impossible to shut it down cleanly. This problem can't even be removed by using a hub. On the Mac Pro, i can use several separate cu sessions on this device without any problems.
    Comparing the hardware reveals that the Mac Pro uses an Intel USB chipset and the MacBook used an nVidia chipset. So there is a difference, and this difference might also reflect in which driver is used by the OS for the USB subsystem. The Mac Pro uses OHCI/EHCI, the MacBook used UHCI/EHCI. So the Hardware differs definitely, USB might really get through different software parts.
    Besides this, the USBprog problem is a violation of the specs by Apple, so the USB stack in general needs some improvement. The nVidia USB drivers also might need further improvement due to the added problems of the MacBook.
    I know, this doesn't help too much, but at least it could be a hint on what goes wrong. I hope, Apple will fix this with one of the next Leopard updates.
    ...Michael

  • How can i connect a usb device (keyboard) into ipad 4

    How can i connect a usb device (keyboard) into ipad 4

    The only keyboards that will work are bluetooth ones and keyboards made specifically for iPad.

  • HT1151 how to fix "because a usb device was drawing too much power from your computer,one or more of your usb devices have been disable"

    how to fix "because a usb device was drawing too much power from your computer,one or more of your usb devices have been disable"?

    Check to see if you have a bad cable. After rebooting, connect a new one and see if it works.

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

  • Website viewing issue with Firefox 3.6 under Windows 7

    I use java script to list current headlines on my website userfriendlypc.net under, "In The News". The website has always looked good under Firefox, IE, Safari, Opera and Google Chrome. Since migrating to Windows 7, Firefox, only Firefox makes the text link in this area look like crap after the first link. The text changes to a greenish color and the hovered link seems offset making it look really bad. This only occurs in Firefox and only under Windows 7. I have tested this under Windows 7 with a basic install of Firefox and under XP. No add-ins or anything else was added when it occurred on the test machine.

    I thought the ClearType configuration would fix the problem as it seemed to clear it up once ClearType was disabled however doing this made other things look like crap. I tried every combination available and this did not fix the problem. I was able to fix the problem however by eliminating the fade function from the javascript on the web page. The "In The NEWS" section still functions properly, just without fading the article titles in and out. A compromise I can live with. Thanks all for your help and hopefully, we won't run into any further problems.
    Steve

  • How do you set up usb device (remote for ppt) to work with iPad2

    How do you set up a USB Device (a remote) to work with an iPad 2?  I have the digital camera connector but when I plug the remote in, the device is not recognizable.  We are trying to run a slideshow on the iPad using the remote to advance the slides.  Thus, the viewer does not have to swipe to advance to the next slide. 

    ...I have the digital camera connector...
    Simple answer: no, you can't use that remote with the iPad.
    The Camera Connection Kit (CCK) is only for importing pictures.  It is not a general purpose USB port so will not work with just any USB device, other than cameras and USB flash drives (but only to import pictures.)

  • How to install and run USB device application without NI-VISA environment?

    Hi everyone:
          I develop a LabWindows/CVI8.5 application that uses a driver for a USB device created using the NI-VISA 4.6.2. The application is ok when the NI-VISA  environment is installed in PC. But the  NI-VISA 4.6.2 is too big(326M).  Can be the USB device successfully installed in non-development machine without NI-VISA 4.6.2?  Just need some files, such as INF, NiViUsbK.sys and ni-visa32.dll, the device will be installed and run.   If the way is feasible, please tell me how to do. Which files are necessary to the device is installed in non-development machine without NI-VISA 4.6.2 environment? It is so big, I need a minimum NI-VISA system.
          I need your help.

    Personally I use the open source LibUSB. It links without difficulty with
    CVI. And it works both on Linux and Windows, which is a big plus. Haven't
    touched it in 2 years though.
    Guillaume Dargaud
    http://www.gdargaud.net/

  • Freezing iPod combined with unrecognized USB device combo... Worst yet?

    Hey Everyone,
    I'm using a 5G 30Gb iPod, or at least I was... It was working fine for a couple of ways, untill yesterday I did the following 3 things:
    -Updated Adobe with that photo stuff
    -Used an usb Memory stick
    -Charged it with a Logic3 AC adapter
    I have no if these are the trouble makers, but the usb stick is my main suspect. Since I did these things, my iPod shows the following behaviour:
    -When connected to computer, shows the "do not disconnect" for about 30sec.
    -After that, the computer starts seeing a "usb storage device".
    -At the same time the computers starts seeing the iPod, the iPod freezes.
    Due to this crashing, I can't format it or change the drive letter indication. I've tried everything I could think off, including:
    -5R's
    -Uninstalling iTunes + iPod software completely
    -Installing from the disk, or the latest updates
    -Tried to install those usbstor.sys/inf, but it says "best drivers already installed".
    -Rebooting over a 100 times (at least that's how it feels now).
    Well I guess that was about all, but I've tried it numerous times..
    Any help would be greatly appreciated!
    Thanks,
    Ingmar
    XP windows PC   Windows XP Pro   Definitely up to iPod requirements

    Wow, I've just had a nightmare experience with Apple and their so called "genius" bar at their store. After at least 10 combined hours of trial and error, on the phone with Apple Care & time spent at the genius bar, turns out (and this is just what I am presuming based on the evidence) that this 5th Gen IPOD won't necessarily work with your existing 2.0 USB port. The USB port has to be "WHQL" certified. My IOGear USB card isn't WHQL certified. I found this out by going to IOGear's website and reading the FAQs about my card. I suggest you do the same ... like go to the USB card's manufacturer's site and read about it. I'm sure there will be something about errors with IPODs ... it might tell you that this card is not compatible (as it did with me). So .. I have two choices now :
    1) Use my IPOD with the slow 1.1 USB link (not going to be happy with that )
    2) Buy a new "compatible" card. (also not the happiest about it)
    Below are two cards Apple Care says will work for sure:
    1) OrangeMicro Model # 70USB90011
    2) Belkin Model # F5U219
    Last but not least ...
    Why does Apple not know of this?!!! Why do I have to figure all of this out myself?

  • Satellite 1800-804: How to boot from a USB device?

    I have a satellite 1800-804 and i like to know how to boot the notebook from a usb device.

    Hi
    If you want to boot from USB device you should press down U key on keyboard just after pressing power button but I dont know if this will work (as far as I know it works with external FDD device).
    Try to boot up the unit with start disk (FDD) and load the MS-DOS driver for the external CD/DVD-ROM if you can find it on manufacturers download page.

Maybe you are looking for

  • XML File - Problem.with naming tags with XI standard functions

    Hello, simple (?) problem: Receiver expects an XML file via file adapter. (The source data comes from an RFC connect to XI.) In the XML tags like these are expected (following W3C definitions): A)   </gdt:ValueGroup> How to define a data type with a

  • 8.1.7EE certified for which file systems on RedHat 7.1 ?

    Hi, Does anybody know if Oracle 8.1.7 Enterprise Edition is certified for any other file systems than ext2 (and raw) on RedHat 7.1. Specifically journaling file systems, e.g., ReiserFS, XFS, ext3. Thanks in advance, /Leif Klepp

  • Erro code:500 SRVE0199E: OutputStream already obtained

    Hi all Iam writing a JSP code for exporting the result in to the csv .It working perfectly but afte exporting results it is showing exeception on same csv file.Can any one help me.The exeception is shown bellow. Error page exception The server cannot

  • ITunes U courses artwork not being downloaded

    Hi; I watch lots of iTunes U courses; artworks for courses I download are usually not included. Is there anyway of getting their artwork? Thank you.

  • How do I connect to an OCE 300 plotwave?

    I downloaded the OCPW3005.ppd diver.  It shows up with a grey icon featuring the word exec in bright green.  My computer does not have an application to open this appropriately.  I was told by the OCE tech that when adding the printer, and choosing t