Front panel of the laser controller
Inheritance: System.Windows.Forms.Form
Exemple #1
0
        public void Start()
        {
            ui = new MainForm(config.Name);
            ui.controller = this;

            Dictionary<string, string> analogs = new Dictionary<string, string>();
            foreach(string key in config.Lasers.Keys)
            {
                analogs.Add(key, config.Lasers[key]);
            }
            analogs.Add("master", config.MasterLaser);
            analogs.Add("cavity", config.Cavity);

            initializeSlaveLaserControl(config.Lasers.Keys);
            initializeAIs(analogs.Values);

            TCLState = ControllerState.STOPPED;
            Application.Run(ui);
        }
Exemple #2
0
        public void Start()
        {
            ui = new MainForm();
            ui.controller = this;

            string[] lockableLasers = (string[])Environs.Hardware.GetInfo("TCLLockableLasers");
            photodiodes = (string[])Environs.Hardware.GetInfo("TCLPhotodiodes");
            if ((double)Environs.Hardware.GetInfo("TCL_Default_VoltageToLaser") != null)
            {
                default_ScanPoints = (int)Environs.Hardware.GetInfo("TCL_Default_ScanPoints");
            }
            initializeSlaveLaserControl(lockableLasers);
            initializeAIs(photodiodes);
            makeLaserToAILookupTable();

            TCLState = ControllerState.STOPPED;
            Application.Run(ui);
        }
Exemple #3
0
        public void Start()
        {
            ui = new MainForm();
            ui.controller = this;

            string[] lockableLasers = (string[])Environs.Hardware.GetInfo("TCLLockableLasers");
            photodiodes = (string[])Environs.Hardware.GetInfo("TCLPhotodiodes");

            initializeSlaveLaserControl(lockableLasers);
            initializeAIs(photodiodes);
            makeLaserToAILookupTable();

            TCLState = ControllerState.STOPPED;
            Application.Run(ui);
        }