Communicating with HID Class using USB RAW

I'm attempting to communicate with a HID class USB device (not a keyboard or mouse).  I've gotten the USB device to enumerate (with some significant effort) as an NI VISA USB device by using the Driver Development Wizard.  I know that I'm supposed to use interrupt transfers to endpoint 1 (index), the Set_Report HID request is 0x09, and the HID decriptor type is 0x21.  I think the value arguement on Control OUT is 0, but I'm not sure.  It seems like I've thought of everything, but the device still does not respond.  I see stuff happening when I probe the bus.  Has anyone done anything like this before?  Are you supposed to use the USB Control OUT VI for an interrupt OUT request?
See attached .gif of code.
Thanks,
Brandon
Attachments:
USB_HID_Code.GIF ‏15 KB

The first answer would be if it doesn't do it when something is one way, then do it that way. Seriously though, what do you mean by corrupted? Gaps in data? How fast are you transfering data? It may be that the processor just isn't keeping up, the UI thread for LabVIEW can take up a fair amount of processor, as do most visual "events" in Windows. It may be that the structure of your data transfer part isn't able to keep up when there isn't enough processor available. There are ways to write LabVIEW code that is more efficient that a similar function written differently. What are you running this on, a multi-core machine by any chance? If yes, then it might benefit from LabVIEW's ability (in the most recent versions) to select which core to run on.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion

Similar Messages

  • Everytime when i connect 3g internet with my laptop using USB (Windows 7) it creats new connection trailing network1, network2, network3.........

    Everytime when i connect 3g internet with my laptop using USB (Windows 7) it creats new connection trailing network1, network2, network3.........
    It does not recognise my old connection.
    Same case with wifi connection as well.
    Also after updating new IOS-5, whenever i make USB connection it does not display my name under my computer.
    But before it use to display my name now it is coming as Apple I-phone.
    Anyone who can help on this, how to get it resolved.
    - I have update my phone with backup (OLD version of IOS) but issue still presists.
    This is the same issue somone mention on below.
    http://www.sevenforums.com/network-sharing/193123-iphone-network-location-doesnt -save-when-disconnected.html
    Kind Regards
    @ru..

    If the message that is displaying is "Network connection timed out", disable any Anti-Virus or Firewall software on the comptuer or check with the company that supports the product on how to modify it to allow iTunes to connect to the Internet.

  • Why does not ipad show on itunes? when i connected with my macbook using usb, just it is charging electricity.

    why does not ipad show on itunes? when i connected with my macbook using usb, just it is charging electricity.
    i don't know why...

    Sometimes it can be something very simple and easy to fix. Before you get into any involved troubleshooting, quit iTunes, restart your Mac, restart your iPad and then try to sync again.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    If this doesn't work, then try the more involved stuff.

  • How can i use labview for communicating with pic18 microcontroller through usb port?

    Hi all,
    I want to make a DAQ card using pic 18 microcontroller which has a built-in usb protocol. I have the firmware of this
    controller which will  make it as a usb device. How can i receive the analog voltages from this DAQ card in Labview? or i mean to say that how i can communicate labview with the Pic 18 microcontroller through usb port? I have also the
    mpusbapi.dll file which is for Visual C++. Can i make changes in this dll file to make it compatible with labview?

    Which labview version do you have. Up to labview 7.1 it was no USB raw communication options. I have heard it did not work well in 7.1, but from 8.x most of the errors were fixed.
    Here is a link it should be useful http://forums.ni.com/ni/board/message?board.id=170&message.id=340676&query.id=365864#M340676
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Class not communicating with document class

    I created classes that would hold the layout of my level. So level 1 has an array like:
      floor1[0] = [2,1,1,1,1,1,2];
      floor1[1] = [1,1,1,1,1,1,1];
      floor1[2] = [1,1,1,2,1,1,1];
      floor1[3] = [1,1,1,1,1,1,1];
      floor1[4] = [1,1,1,2,1,1,1];
      floor1[5] = [1,1,1,1,1,1,1];
      floor1[6] = [2,1,1,1,1,1,2];
    And level 2 would contain a different setup like:
      floor2[0] = [1,1,1,3,1,1,1];
      floor2[1] = [1,2,1,3,1,2,1];
      floor2[2] = [1,1,1,3,1,1,1];
      floor2[3] = [1,1,1,2,1,1,1];
      floor2[4] = [1,1,1,3,1,1,1];
      floor2[5] = [1,2,1,3,1,2,1];
      floor2[6] = [1,1,1,3,1,1,1];
    Here's my problem. These classes aren't communicating with my document class. My document has a blank array called createFloor that will equal floor1 first. Once that level is finished, it will equal floor2, and so on. The code is below:
    for (var Y:int=0; Y<createFloor.length; Y++)
                                            for (var X:int=0; X<createFloor[Y].length; X++)
                                                      var cell:MovieClip = new Tile(X,Y);
                                                      cell.gotoAndStop(createFloor[Y][X]);
                                                      cell.x = ((X-Y)*tileh)+365;
                                                      cell.y = ((X+Y)*tileh/2)+70;
                                                      addChild(cell);
                                                      cell.addEventListener(MouseEvent.CLICK, mouseclick);
                                                      cell.addEventListener(Event.ENTER_FRAME, onGame);
    I'm not sure how to get the document class and the level class to talk to each other. I tried making the level class extend the Main, but I fugre that had nothing to do with it. Any ideas

    change your Level1 class to:
    package  {
              import flash.display.MovieClip;
              public class Level1 extends MovieClip {
    public var floor1:Array;
                        public function Level1() {
                                 floor1 = new Array();
                                  floor1[0] = [2,1,1,1,1,1,2];
                                  floor1[1] = [1,1,1,1,1,1,1];
                                  floor1[2] = [1,1,1,2,1,1,1];
                                  floor1[3] = [1,1,1,1,1,1,1];
                                  floor1[4] = [1,1,1,2,1,1,1];
                                  floor1[5] = [1,1,1,1,1,1,1];
                                  floor1[6] = [2,1,1,1,1,1,2];
    as long as Level1 is in the same directory as your document class, in your document class you can use:
    private var level1:Level1 = new Level1();
    trace(level1.floor1);

  • Commands to FTDI virtual COM port via NI VISA interfere with communication with FTDI chip using D2XX drivers

    Hello!  
    I am trying to communicate with a DLP Design module DLP-USB1232H which uses an FTDI chip.  My program uses the D2XX drivers.  It works, but...
    In another program that runs at the same time, I'm communicating with another instrument via a virtual COM port (VCP) that uses an FTDI UART.  In this program, I use the VISA Serial Port functions.  It works, too, but...
    The first program has the capability of listing all the FTDI devices in the system prior to choosing the right one to communicate with.  When the VCP is plugged in, it lists it (FT232R USB UART) along with the DLP-USB1232H and communication with the latter device works.   But as soon as the second program sends a command through the VCP, the first program no longer "sees" any FTDI device.  It stops working.
    I have tried 2 different FTDI VCPs; one a standalone cable and the other built in to the instrument.
    I’m using Windows 7 32-bit.  My programs are both LabVIEW 8.5 executables. 
    Is VISA "taking over" the channel to the DLP-USB1232H?  Does someone who understands NI's implementation of VISA have any ideas on why VISA is doing this?  Or if something else is going on?
    I'm also interested in workaround ideas.  I've tried a "Prolific" VCP, but most drivers don't work and the one that doesn't give an error in Device Manager doesn't communicate with the instrument.  
    Cheers
    Halden
    Solved!
    Go to Solution.

    Halden,
    It really sounds like you have a resource conflict. That occurs when two programs or parts of programs try to use the same device or port at the same time.  Your Get Device Function probably tries to open a session with each port (as you increment the index). When it hits a port which is being used by the other driver, it cannot open the session and stops working? Have you examined the errors returned by each program? The VISA drivers will return an error when the port is in use.  I do not know about your program or drivers, but I would expect some kind of error.  Automatic error handling in LabVIEW will not catch errors from a driver if it does not translate them to LV error clusters. So do not count on automatic error handling, if you use it, to display all possible errors.
    Lynn

  • I have used Photoshop CS2 for over 5 years with Dimage A2 using the RAW forment, Now it will not work. Any answers out there? Thanks

    The Photoshop has always worked well with the Minolta DimAge A2 using the RAW format. Now, it will not.  Strange that Corel Paint Shop Pro X2 Ultimate works fine and cost less tha $100...  Any responses out there about that?

    They may know more in the Camera Raw forum.

  • Problem while communicating with ECU through NI USB CAN

    Hello sir,
    I want to communicate with ECU through NI USB CAN interface while i tried to communicate with ECU it gives timeout error. here i am using CCP version 1.0, ECU toolkit 2.1.4 and NI CAN 2.7.2 .if you have any problem that communicates with ECU using CCP version 1.0 Please attach it.
    Thanks and Regards,
    Madhan

    So for the fifth time you start a new thread about the same problem!
    If you don't get any response to your threads, it could be because you are not giving a lot information about your problem.You could start with giving the vi you have problem with, so that we can see what you are doing.
    You also need to give any error code and a description on that you have done, in details!
    You also had one response in one of the other threads, it is polite to make an answer when someone is replying to you.
    [email protected] wrote:
    Hello sir,
    I want to communicate with ECU through NI USB CAN interface while i tried to communicate with ECU it gives timeout error. here i am using CCP version 1.0, ECU toolkit 2.1.4 and NI CAN 2.7.2 .if you have any problem that communicates with ECU using CCP version 1.0 Please attach it.
    Thanks and Regards,
    Madhan
    That makes no sense, where have you copied that from ?

  • Communication with motor control using RS-232

    I need to use labview to communication with a stepper motor drive using the serial port RS-232. Could someone please get me started I'm not sure if a should use VISA or instrument I/O. And if I use one of those, how would I set it up?

    Hi Phil,
    Outside of LabView, how do you communicate with or control the motor drive?  If you are able to use software like HyperTerminal or Procomm, then using the VISA serial communication tools will be the simple way of implementing your solution.
    Here are some links which may provide clues on how to proceed.  You can also do a search on VISA Serial communication.
    Happy wiring!!
    JLV
    LINKS:
    Link 1: Although this one talks about an error, it does provide instructions on how to setup the VISA session:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=99660&query.id=0#M99660
    Link 2: Here are some examples: (good starting point):
    http://forums.ni.com/ni/board/message?board.id=170&message.id=65873&query.id=0#M65873
    Link 3: more info:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=86971&query.id=0#M86971

  • Iphone 4 not connecting with macbook air using USB

    I am not able to connect my iPhone 4 with my Macbook Air using USB cord. Macbook Air is not able to detect the device.

    I had this problem when connecting my iphone 4 to my retina MacBook Pro. The phone was running ios 6 but I updated it to ios 7 and since then it works fine with no problems. Try updating it to the latest software and see does that help!

  • Printing with HP 1012 using USB

    Good Day;
    Has anyone got the 1012 to print reliably with the usb port? There was never any problem before snow leopard. I have tried all the recommendations posted here and nothing has worked. Sometimes it will print, other times, failure to communicate error. Resending the print job the second time so far has worked.
    Thanks

    I am having this same problem with my HP 1012 and communication failure messages. This is not new to 10.6 it started with 10.5 something. It seems to be getting worse with each update. I have changed USB cables and tried the other USB port. No change. I used to be able to turn off the power to the printer, wait a few seconds, power on the printer, go to the print que and restart the item in the print que and it would print. That workaround no longer seems to work.
    The interesting thing is occationally it prints without a problem. Last night I was trying to print a PDF file of 11 pages and nothing worked it just would end up in the print que and I would get the comminication error mesage. If I waited quite a while (estimating 5 to 10 minutes) the file would disappear from the print cue after the communications error was displayed. This morning I started the computer and immediated opened Acrobe Professional and send the document to the print and it started printing a few seconds later.
    The HP 1012 is a good printer - it just seems like its print drivers are not getting enough attenttion from HP.
    Hopefully there is a solution soon as I've been very pleased with my HP purchases in the past but this is giving me worries about buying another H printer.

  • Canon scanner not communicating with mac min using OS 10.5.8

    I am using a mac mini with OS 10.5.8.  I am trying to scan in papers with a Canon Canoscan N1240U.  This is the message I am receiving.
         Cannot communicate with canner.
         Cable may be disconnected.   
         Check status.   
         Scanner driver will be closed.
    I have used this scanner before with this mac mini.  Any suggestions why this is happening and to correct the issue.

    I think you should, if you can, try the scanner on a different computer to rule out a problem with the scanner or it's usb cable. Then, if you have the software install disk for the scanner run it. Or download and install a new driver or software. Use the finder to find and delete any files for the scanner and then reinstall them. set the scanner up in systempreferences as if it's a newly installed item.

  • Distorted recording with QuickTime 7 using USB Audio CODEC

    I am running Mac OS X Tiger 10.4.8 with all the latest update from Software Update which includes QuickTime 7.1.3.
    I am using QuickTime Broadcaster to stream back to itself (loopback) and record to disk at the same time. The input audio device is set to USB Audio CODEC (the default driver that comes with Mac OS X Tiger, and I am using an Alesis MultiMix 16USB mixer on a PowerMac Dual Core G5). I am using MPEG-4 Audio compression (no Video) of 16-bit, 44.1kHz and 128kbps (stereo).
    The problem is that sometimes I get recordings (ranging from 1.5 hours to 2.75hours long) with distortion. Here is a short 20-second audio clip with distortion-free audio for about 6 seconds and then distortion sets in:
    http://www.netmedia.com.sg/files/SampleDistortion20s.mov
    Whether it overlays on top of the original audio or replaces it, I cannot tell, but the transition is instant and smooth with no audible clicks or pops. The distortion can come in and go randomly. For example, I had one recording with distortion coming in at about 2 minutes plus and it remained until about 2hr10min when the distortion went away. Sometimes it didn't go away; other times it came in about an hour later. I also had once where the distortion last only for about 6 minutes somewhere in the middle of a 2.25 hours recording...all in all, it occurs at random. And I do get distortion-free recordings.
    This problem also occurs on an iMac G5 with a Alesis MultiMix 12USB mixer, and in another Vara Software's Videocue PRO software which uses QuickTime for recording and playback. QuickTime 7.0.x and all versions of 7.1 also had this problem.
    Because of this problem, I may need to use a convoluted method to stream and record to disk via QuickTime. By the way, I also tried streaming to another local subnet IP address just as a troubleshooting without success.

    I too am having distortion problem (Sorry no solution here).
    Using OS 10.4.8, QT7.1.3, & Adobe Premiere 6.5 on a G4.
    After I down loaded QT 7.1.3, my problems started. Is this when your problems started too?
    Audio is in "slow motion" sound when editing. On rare occations, it sounds correct for 10 sec or so but sync is out and eventually reverts to "slow motion" sound. Even more bazar, when viewing a clip in a thumbnail preview, it works fine. So I know the orginal is good.
    My contention is QT is causing this. All I want is my previous version of QT back. I think this might fix your problem too. Unfortunately, there is no reinstall that I can find that takes QT 7.1.3 off and puts QT 7.1.1or2. The reinstall QT 7.0.3 which is on the Apple website will not restall.
    Looking for a reintall that will take QT 7.1.3 off, help anyone?

  • Communicating with agilent 34970A using labview.

    Hi,
    I'm using labview to control agilent 34970A DAQ. I was using VEE and
    now I'm planning to use Labview. I downloaded the necassary drivers. I
    want to know how i can get started. i.e. generating sub vi's like
    initialize.vi etc.
    -Satya

    When you do what Dennis has suggested you'll also find that there will be one or more high level examples included with the Instrument Driver that use the lower level functions. The document on how to write LabVIEW Instrument drivers is pretty useful in getting an overview:
    http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&D318B79F473D3C838625680A005AC409
    Regards,
    Kamran

  • Communicating with a device using labwindows 7.0 and ethernet

    I am new to this type of communication, and I was just wondering how you would accomplish something like that.
    Derek

    Derek,
    Please see/post to the following thread:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B0E80000&UCATEGORY_0=_318_&UCATEGORY_S=0
    Ames
    Applications Engineering
    National Instruments

Maybe you are looking for

  • 5800 music express - Gallery Issue

    Hi, I have updated my nokia 5800 software version but after that i started facing a problem. Whenever i click a new picture from my camera it gets deleted after sometime there are no virus i have already done a virus check of of my phone. Please assi

  • K8T Neo Bios advice needed

    Please forgive this large post and I hope this is the right place for this. Below is a copy of my report from CPU-Z. My brother gave me his old computer after it quit workign and he bought a new one. I live over 8 hours away from him so i couldn't ju

  • 'In' operator in an expression

    I want to use an expression with an 'In' operator like: "IIF(Month(Fields!xyz_date.value) in (3,6,9,12), False, True)" but seems like 'In' operator is not available in ssrs expression. Please confirm it this true and what's the alternative (other tha

  • Changing width of line making up circle

    Where or how can I change the width or weight of the line making up a circle when drawing a shape in a photo?

  • I want to delete some photos of the user pictures. Where can I find them?

    I want to delete some photos of the user pictures. Where can I find them? I mean those pictures, which come on when clicking on the user-picture, here "latest".