public static void SetUSBRawAttribute(ref MessageBasedSession mbs) { UsbRaw usbRaw = (UsbRaw)mbs; usbRaw.InterruptInPipe = -1; // Disable the interrupt pointer usbRaw.BulkInPipe = 129; // Re-define the bulk-in pipe }
public Akip3407(string location, string fullname) { Location = location; FullName = fullname; Name = fullname.Split(',')[1]; try { _instrument = (UsbRaw)ResourceManager.GetLocalManager().Open(location); } catch (Exception ex) { // ignored } }