Пример #1
0
 private void initializeAIs(string[] channels)
 {
     tcl        = new DAQMxTCL2012ExtTriggeredMultiReadHelper(channels, "TCLTrigger");
     aiChannels = new Dictionary <string, int>();
     foreach (string s in channels)
     {
         aiChannels.Add(s, aiChannels.Count);
     }
 }
Пример #2
0
 private void initializeAIs(Dictionary <string, string> .ValueCollection channels)
 {
     tcl        = new DAQMxTCL2012ExtTriggeredMultiReadHelper(channels.ToArray(), config.Trigger);
     aiChannels = new Dictionary <string, int>();
     foreach (string s in channels)
     {
         aiChannels.Add(s, aiChannels.Count);
     }
 }
Пример #3
0
        private void initializeAIs()
        {
            Dictionary <string, string> analogs  = new Dictionary <string, string>();
            Dictionary <string, string> digitals = new Dictionary <string, string>();

            analogs.Add("baseRamp", config.BaseRamp);
            foreach (Cavity cavity in Cavities.Values)
            {
                analogs.Add(getUniqueKey(cavity.Name, cavity.Master.FeedbackChannel), cavity.Master.PhotoDiodeChannel);
                foreach (SlaveLaser slaveLaser in cavity.SlaveLasers.Values)
                {
                    analogs.Add(getUniqueKey(cavity.Name, slaveLaser.FeedbackChannel), slaveLaser.PhotoDiodeChannel);
                    if (slaveLaser.BlockChannel != null)
                    {
                        digitals.Add(getUniqueKey(cavity.Name, slaveLaser.FeedbackChannel), slaveLaser.BlockChannel);
                    }
                }
            }

            List <string> analogChannelsToRead  = new List <string>();
            List <string> digitalChannelsToRead = new List <string>();

            aiChannelsLookup = new Dictionary <string, int>();
            diChannelsLookup = new Dictionary <string, int>();
            foreach (string s in analogs.Keys)
            {
                aiChannelsLookup.Add(s, aiChannelsLookup.Count);
                analogChannelsToRead.Add(analogs[s]);
            }
            foreach (string s in digitals.Keys)
            {
                diChannelsLookup.Add(s, diChannelsLookup.Count);
                digitalChannelsToRead.Add(digitals[s]);
            }
            tcl = new DAQMxTCL2012ExtTriggeredMultiReadHelper(analogChannelsToRead.ToArray(), digitalChannelsToRead.ToArray(), config.Trigger);
        }
Пример #4
0
 private void initializeAIs(string[] channels)
 {
     tcl = new DAQMxTCL2012ExtTriggeredMultiReadHelper(channels, "TCLTrigger");
     aiChannels = new Dictionary<string, int>();
     foreach (string s in channels)
     {
         aiChannels.Add(s, aiChannels.Count);
     }
 }
Пример #5
0
 private void initializeAIs(Dictionary<string,string>.ValueCollection channels)
 {
     tcl = new DAQMxTCL2012ExtTriggeredMultiReadHelper(channels.ToArray(), config.Trigger);
     aiChannels = new Dictionary<string, int>();
     foreach (string s in channels)
     {
         aiChannels.Add(s, aiChannels.Count);
     }
 }