Пример #1
0
 public Laser(string feedbackChannel, string photoDiode, Cavity cavity)
 {
     laser             = new DAQMxTCL2012LaserControlHelper(feedbackChannel);
     lState            = LaserState.FREE;
     Name              = feedbackChannel;
     FeedbackChannel   = feedbackChannel;
     PhotoDiodeChannel = photoDiode;
     ParentCavity      = cavity;
     laser.ConfigureSetLaserVoltage(0.0);
 }
Пример #2
0
        private void initializeCavityControl()
        {
            Cavities = new Dictionary <string, Cavity>();

            foreach (KeyValuePair <string, TCLSingleCavityConfig> entry in config.Cavities)
            {
                Cavity cavity = new Cavity(entry.Value);
                cavity.Controller = this;
                Cavities.Add(entry.Key, cavity);
            }
        }
Пример #3
0
        public void AddCavity(Cavity cavity)
        {
            string             title  = cavity.Name;
            TabPage            newTab = new TabPage(title);
            CavityControlPanel panel  = new CavityControlPanel(cavity.Name, cavity.Master.Gain);

            panel.controller = this.controller;
            foreach (KeyValuePair <string, SlaveLaser> entry in cavity.SlaveLasers)
            {
                panel.AddSlaveLaserPanel(entry.Value);
            }
            cavitiesTab.TabPages.Add(newTab);
            newTab.Controls.Add(panel);
            CavityPanels.Add(title, panel);
        }
Пример #4
0
 public SlaveLaser(string feedbackChannel, string photoDiode, Cavity cavity)
     : base(feedbackChannel, photoDiode, cavity)
 {
 }