public SimpleDAQController(IDAQStream[] streams)
        {
            foreach (IDAQStream i in streams)
            {
                DAQStreams.Add(i);
            }

            BackgroundSet = false;
        }
Exemple #2
0
        /// <summary>
        /// Find the streams identified by the name passed in.
        /// </summary>
        /// <param name="name">The stream name to find</param>
        /// <returns>A list of the DAQStream instances identified</returns>
        public IEnumerable <IDAQStream> GetStreams(string name)
        {
            if (String.IsNullOrEmpty(name))
            {
                throw new ArgumentException("name is null or empty.", "name");
            }

            return(DAQStreams.Where((s) => s.Name == name));
        }
 public void AddStream(IDAQStream stream)
 {
     DAQStreams.Add(stream);
 }