3 Replies Latest reply on Jun 7, 2012 2:47 AM by prajith.cheerakkoda

    CyUSB.Net HID ReadInput problem

    vytautas.na

      Hi,

         

      I try to read data from HID device using ReadInput in timer (50ms, 300ms, ...) like this:

         

       

         

      System::Void read_timer_Tick(System::Object^  sender, System::EventArgs^  e)

         

      {

         

      if (hidDevice == nullptr) return;

         

      if (hidDevice->ReadInput())

         

      //if (hidDevice->GetInput(hidDevice->Inputs->ID))

         

      {

         
          }   
         
          }   
         
              
         
          The problem is that ReadInput causes abnormal slow down of the application: window resizing, text entering to textbox and so on. CPU usage (including kernel) is less than 5 percents. ReadInput returns data buffer, but is very slow.   
         
          Another problem is that GetInput does not return any data (returns with false).   
         
          Used suite version is CySuiteUSB_3_4_7_B204.exe.   
         
          Thanks for any help.