Exemple #1
0
        public Controller()
        {
            try
            {
                this.Config = LoadConfig();
            }
            catch (Exception ex)
            {
                // if it's error to load the config file, set it to the default value
                Debug.WriteLine(ex.Message);

                Config = new Configuration();
            }

            PLC          = new PLC(Config);
            TunableLaser = new Keysight8164B(Config.GPIBBoardNumber, new Address((byte)Config.GPIBKeysight8164B));
            SourceMeter  = new Keithley2400[Config.MaxChannel];
            for (int i = 0; i < Config.MaxChannel; i++)
            {
                SourceMeter[i] = new Keithley2400(Config.GPIBBoardNumber, new Address((byte)Config.GPIBKeithley2400[i]));
            }
        }
Exemple #2
0
 public ViewKeithley2400(Keithley2400 DeviceInstance)
 {
     this.K2400 = DeviceInstance;
 }