void cmdStartTransfer_Click(object sender, RoutedEventArgs e)
        {
            (measurementInterface as FET_IV).expTransfer_FET_Chart.Children.RemoveAll(typeof(LineGraph));
            (measurementInterface as FET_IV).expTransfer_FET_Chart.Legend.Visibility = System.Windows.Visibility.Visible;

            expStartInfo = (measurementInterface as FET_IV).DataContext;
            var settings = expStartInfo as FET_IVModel;

            if (driver != null)
            {
                driver.Dispose();
            }
            if (measureDevice != null)
            {
                measureDevice.Dispose();
            }

            driver        = new VisaDevice(settings.KeithleyRscName);
            measureDevice = new Keithley26xxB <Keithley2602B>(driver);

            var DrainSourceSMU = measureDevice[settings.TransferVdsChannel];
            var GateSMU        = measureDevice[settings.TransferVgChannel];

            experiment = new FET_Transfer_Experiment(DrainSourceSMU, GateSMU) as IExperiment;

            experiment.ExpStarted  += onExperimentStarted;
            experiment.DataArrived += expTransfer_FET_dataArrived;
            experiment.Progress    += experimentProgress;
            experiment.Status      += experimentStatus;

            experiment.Start(expStartInfo);
        }
        public CALCulate(ref IDeviceIO Driver)
        {
            _driver = Driver;
            SubsystemIdentifier = ":CALC";

            MATH = new MATH_Command(ref Driver);
        }
        public MATH_Command(ref IDeviceIO Driver)
            : base(ref Driver)
        {
            _Command = string.Format("{0}{1}", SubsystemIdentifier, ":MATH");

            EXPRession = new Expression(ref Driver);
        }
        public CALCulate(ref IDeviceIO Driver)
        {
            _driver             = Driver;
            SubsystemIdentifier = ":CALC";

            MATH = new MATH_Command(ref Driver);
        }
Example #5
0
        public MATH_Command(ref IDeviceIO Driver)
            : base(ref Driver)
        {
            _Command = string.Format("{0}{1}", SubsystemIdentifier, ":MATH");

            EXPRession = new Expression(ref Driver);
        }
Example #6
0
        public Keithley26xxB_Display(ref IDeviceIO Driver, string ChannelID)
        {
            _driver    = Driver;
            _channelID = ChannelID;

            smuX = new SmuX(ref Driver, ChannelID);
        }
Example #7
0
 public Qsfp100G(IDeviceIO deviceIO) : base(deviceIO)
 {
     Device  = deviceIO;
     Host    = new HostSide(this);
     Network = new NetworkSide(this);
     Fec     = new FecClass(this);
 }
        public FORMat(ref IDeviceIO Driver)
        {
            _driver             = Driver;
            SubsystemIdentifier = ":FORM";

            ELEM = new ELEMents(ref Driver);
        }
        public Keithley26xxB_Display(ref IDeviceIO Driver, string ChannelID)
        {
            _driver = Driver;
            _channelID = ChannelID;

            smuX = new SmuX(ref Driver, ChannelID);
        }
 public PasswordProtectedShareHolder(IDeviceIO deviceIO, SecureString secret, int saltLength, int id, uint numberOfShares)
 {
     this.deviceIO  = deviceIO;
     this.secret    = secret;
     ID             = id;
     NumberOfShares = numberOfShares;
 }
Example #11
0
 public override void SetDeviceInterfacer(IDeviceIO deviceIO)
 {
     if (deviceIO is SpecifiedDevice)
     {
         this.DeviceIO = deviceIO as SpecifiedDevice;
     }
 }
Example #12
0
 private void onDeviceFound(string UID, uint VID, uint PID, IDeviceIO deviceIO)
 {
     foreach (var module in Modules)
     {
         module.OnDeviceFound(UID, VID, PID, deviceIO);
     }
 }
Example #13
0
        public Keithley26xxB(IDeviceIO Driver)
        {
            _driver = Driver;
            var attr = (NumberOfChannelsAttribute)typeof(T).GetCustomAttributes(typeof(NumberOfChannelsAttribute), true).FirstOrDefault();

            _numberOfChannels = attr.NumberOfChannels;

            if (_numberOfChannels > 2)
            {
                throw new ArgumentException("The amount of channels can't more than two for supported models!");
            }

            ChannelCollection = new ISourceMeterUnit[_numberOfChannels];

            for (int i = 0; i < _numberOfChannels; i++)
            {
                ChannelCollection[i] = new T();

                if (i == 0)
                {
                    ChannelCollection[i].Initialize(Driver, "a");
                }
                else if (i == 1)
                {
                    ChannelCollection[i].Initialize(Driver, "b");
                }
            }
        }
        public DISPlay(ref IDeviceIO Driver)
        {
            _driver             = Driver;
            SubsystemIdentifier = ":DISP";

            WINDow_01 = new DisplayWindow1(ref Driver);
            WINDow_02 = new DisplayWindow2(ref Driver);
        }
        public DISPlay(ref IDeviceIO Driver)
        {
            _driver = Driver;
            SubsystemIdentifier = ":DISP";

            WINDow_01 = new DisplayWindow1(ref Driver);
            WINDow_02 = new DisplayWindow2(ref Driver);
        }
Example #16
0
        public override void OnDeviceFound(string UID, uint VID, uint PID, IDeviceIO deviceIO)
        {
            var module = ModuleManager.Modules.First(x => x.CanCreate(VID, PID));

            if (module != null)
            {
                module.CreateFromAndReport(UID, VID, PID, deviceIO);
            }
        }
Example #17
0
 public Module(IDeviceIO deviceIo, IQsfp100G qsfp100G, ICyclops cyclops, IMaCom macCom, AsyncPolicyWrap policyWrap)
 {
     Device  = deviceIo;
     DutGpio = Device.Gpio;
     Cyclops = cyclops;
     //   _policyWrap = policyWrap;
     Qsfp100G = qsfp100G;
     MaCom    = macCom;
 }
Example #18
0
        public virtual void Initialize(IDeviceIO Driver)
        {
            if (Driver != null)
            {
                driver = Driver;
            }

            if (!IsEnabled)
            {
                Enable();
            }
        }
Example #19
0
        public void Initialize(IDeviceIO Driver, string channelID)
        {
            _driver           = Driver;
            ChannelIdentifier = channelID;

            _display = new Keithley26xxB_Display(ref Driver, ChannelIdentifier);
            _SetBeeperEnabled(true);

            _currentMeasureFunction    = Keithley26xxBMeasureFunctions.MEASURE_DCAMPS;
            _display.smuX.measure.func = Keithley26xxBMeasureFunctions.MEASURE_DCAMPS;

            _LoadDeviceFunctions();

            _stopWatch = new Stopwatch();
        }
Example #20
0
 public abstract void SetDeviceInterfacer(IDeviceIO deviceIO);
Example #21
0
 public void Initialize(IDeviceIO Driver, string channelID)
 {
     throw new NotImplementedException();
 }
Example #22
0
 public void Initialize(IDeviceIO driver)
 {
     _driver = driver;
 }
 public void Initialize(IDeviceIO Driver, string channelID = "Not supported for Keithley24xx series!")
 {
     _driver = Driver;
     _driver.SendCommandRequest("*RST");
     _stopWatch = new Stopwatch();
 }
Example #24
0
 public void Initialize(IDeviceIO Driver, string channelID = "Not supported for Keithley24xx series!")
 {
     _driver = Driver;
     _driver.SendCommandRequest("*RST");
     _stopWatch = new Stopwatch();
 }
 public Faulhaber_SA2036U012V(ref IDeviceIO Driver)
 {
     _driver = Driver;
 }
 public SmuX(ref IDeviceIO Driver, string ChannelID)
 {
     limit = new Limit(ref Driver, ChannelID);
     measure = new Measure(ref Driver, ChannelID);
 }
Example #27
0
 public Limit(ref IDeviceIO Driver, string ChannelID)
 {
     _driver    = Driver;
     _channelID = ChannelID;
 }
Example #28
0
 public SmuX(ref IDeviceIO Driver, string ChannelID)
 {
     limit   = new Limit(ref Driver, ChannelID);
     measure = new Measure(ref Driver, ChannelID);
 }
        public void Initialize(IDeviceIO Driver, string channelID)
        {
            _driver = Driver;
            ChannelIdentifier = channelID;

            _display = new Keithley26xxB_Display(ref Driver, ChannelIdentifier);
            _SetBeeperEnabled(true);

            _currentMeasureFunction = Keithley26xxBMeasureFunctions.MEASURE_DCAMPS;
            _display.smuX.measure.func = Keithley26xxBMeasureFunctions.MEASURE_DCAMPS;

            _LoadDeviceFunctions();

            _stopWatch = new Stopwatch();
        }
Example #30
0
 public Cyclops(IDeviceIO deviceIO) => Device = deviceIO;
 public void Initialize(IDeviceIO Driver)
 {
     _driver = Driver;
     _driver.SendCommandRequest("*RST");
     _stopWatch = new Stopwatch();
 }
 public Expression(ref IDeviceIO Driver)
     : base(ref Driver)
 {
     _ExpressionCommand = string.Format("{0}{1}", _Command, ":EXPR");
 }
Example #33
0
 public Qsfp(IDeviceIO deviceIo) => Device = deviceIo;
 public Limit(ref IDeviceIO Driver, string ChannelID)
 {
     _driver = Driver;
     _channelID = ChannelID;
 }
 public Measure(ref IDeviceIO Driver, string ChannelID)
 {
     _driver = Driver;
     _channelID = ChannelID;
 }
Example #36
0
 public Measure(ref IDeviceIO Driver, string ChannelID)
 {
     _driver    = Driver;
     _channelID = ChannelID;
 }
Example #37
0
 public abstract void OnDeviceFound(string UID, uint VID, uint PID, IDeviceIO deviceIO);
 public WindowText(ref IDeviceIO Driver, IDisplayWindow window)
 {
     _driver = Driver;
     _textIdentifier = string.Format("{0}{1}", window.WindowIdentifier, ":TEXT");
 }
Example #39
0
 public void Initialize(IDeviceIO Driver)
 {
     _driver = Driver;
     _driver.SendCommandRequest("*RST");
     _stopWatch = new Stopwatch();
 }
 public void Initialize(IDeviceIO driver)
 {
     _driver = driver;
 }
 public void Initialize(IDeviceIO Driver)
 {
     Initialize(Driver, "a");
 }
Example #42
0
 public void InitializeInterfacer(string uid, IDeviceIO deviceIO)
 {
     base.InitializeInterfacer(uid);
     OpCodes.SetDeviceInterfacer(deviceIO);
     Offline = false;
 }
 public DisplayWindow2(ref IDeviceIO Driver)
     : base(ref Driver)
 {
     TEXT = new WindowText(ref Driver, this);
 }
Example #44
0
 public MaCom(IDeviceIO deviceIO)
 {
     Device = deviceIO;
 }
 public Faulhaber_SA2036U012V(ref IDeviceIO Driver)
 {
     _driver = Driver;
 }
Example #46
0
 public Game(IDeviceIO deviceIO)
 {
     this.deviceIO = deviceIO;
 }