示例#1
0
        private OscChannel selectedChannel; //< Channel to get messages

        public void SelectChannel(OscChannel.Name channelName)
        {
            oscilloscope.trigger.ledSelected.State = false;
            if (selectedChannel != null)
            {
                selectedChannel.ledSelected.State = false;
            }
            selectedChannel = oscilloscope.GetChannel(channelName);
            selectedChannel.ledSelected.State = true;
            updateHelp = true;
        }
示例#2
0
 /// <summary>Get channel by name</summary>
 public OscChannel GetChannel(OscChannel.Name channelName)
 {
     return(oscChannels[(int)channelName % oscChannels.Length]);
 }
示例#3
0
 /// <summary>Set channel for this trigger</summary>
 public void SetChannel(OscChannel.Name channelName)
 {
     channel = oscilloscope.GetChannel(channelName);
     OnPlugHandle();
 }