public void Channels() { foreach (IIviSwtchChannel Channel in Swtch.Channels) { Assert.IsNotNullOrEmpty(Channel.Name); Assert.IsFalse(Channel.IsSourceChannel); Assert.IsFalse(Channel.IsConfigurationChannel); IIviSwtchCharacteristics Characteristics = Channel.Characteristics; Assert.AreEqual(1, Characteristics.WireMode); } }
public IviSwtchChannel(IDriverAdapterBase Adapter, int Index) { this.Adapter = Adapter; IviSwtchInterop = (IviCInterop.IviSwtch)Adapter.Interop; this.Index = Index; StringBuilder NameValue = new StringBuilder(256); Adapter.ViSessionStatusCheck(IviSwtchInterop.GetChannelName(Adapter.Session, Index, NameValue.Capacity, NameValue)); ChannelName = NameValue.ToString(); SwtchCharacteristics = new IviSwtchCharacteristics(Adapter, ChannelName); }