1 Reply Latest reply on Apr 9, 2010 3:11 PM by anand.srinivasan.asokan

    68013 software problems

    xiaochao.wang
              I tried to iterate through the UsbDeviceList but have no success because the List is empty (I cannot understand why) .   
      The    usbDevices.Count always be 0 whatever the dev-Board is pluged in or not .   
         
      pls help ~~   
         
      public Form1()   
      {   
      InitializeComponent();   
         
      // Setup the callback routine for updating the UI   
      updateUI = new UpdateUICallback(StatusUpdate);   
         
      // Setup PnP event handling   
      evHandler = new App_PnP_Callback(PnP_Event_Handler);   
         
      // Create a list of CYUSB devices   
          usbDevices = new USBDeviceList(CyConst.DEVICES_CYUSB, evHandler);   
         
      setDevice();   
      }   
         
      public void setDevice()   
      {   
      if (usbDevices.Count > 0)   
      loopDevice = usbDevices[0x0547, 0x0080] as CyUSBDevice;   
         
      StartBtn.Enabled = (loopDevice != null);   
         
      if (loopDevice != null)   
      Text = loopDevice.FriendlyName;   
      else   
      Text = "Bulkloop - no device";   
         
      // Set the in and out endpoints per the selected radio buttons.   
      EptPair1Btn_Click(this, null);   
      }