示例#1
0
文件: Main.cs 项目: cyangy/VISA_CLI
        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
        }
示例#2
0
        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
            }
        }