예제 #1
0
 public override void ConfigChannel(object chObject)
 {
     SimInfo.ChannelConfig ch = (SimInfo.ChannelConfig)chObject;
     if (ch.EnableCh)
     {
         ConfigChannel(ch.ChNum, 1.0);
     }
     else
     {
         RemoveChannel(ch.ChNum);
     }
 }
예제 #2
0
        public override BindingList <object> GetChannelMap()
        {
            BindingList <object> list = new BindingList <object>();

            for (int i = 0; i < SimulationInfo.MaxChannels; i++)
            {
                SimInfo.ChannelConfig ch = new SimInfo.ChannelConfig();
                ch.ConfigureLUT("Range", SimulationInfo.Ranges);

                ch.EnableCh = false;
                ch.ChNum    = i;
                ch.Range    = SimulationInfo.Ranges[0];

                list.Add(ch);
            }
            return(list);
        }