public override void ConfigChannel(object chObject) { SimInfo.ChannelConfig ch = (SimInfo.ChannelConfig)chObject; if (ch.EnableCh) { ConfigChannel(ch.ChNum, 1.0); } else { RemoveChannel(ch.ChNum); } }
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); }