public IviPwrMeterChannelCollection(IDriverAdapterBase Adapter) { this.Adapter = Adapter; IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop; int ChannelCount = Adapter.GetAttributeViInt32(IviPwrMeterAttribute.IVIPWRMETER_ATTR_CHANNEL_COUNT); Channels = new List <IIviPwrMeterChannel>(); ChannelNames = new List <string>(); for (int Index = 1; Index <= ChannelCount; Index++) { IIviPwrMeterChannel Channel = new IviPwrMeterChannel(Adapter, Index); Channels.Add(Channel); ChannelNames.Add(Channel.Name); } }
public IviPwrMeterChannel(IDriverAdapterBase Adapter, int Index) { this.Adapter = Adapter; IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop; this.Index = Index; try { StringBuilder NameValue = new StringBuilder(256); Adapter.ViSessionStatusCheck(IviPwrMeterInterop.GetChannelName(Adapter.Session, Index, NameValue.Capacity, NameValue)); ChannelName = NameValue.ToString(); } catch { ChannelName = string.Empty; } PwrMeterAveraging = new IviPwrMeterAveraging(Adapter, ChannelName); PwrMeterDutyCycleCorrection = new IviPwrMeterDutyCycleCorrection(Adapter, ChannelName); PwrMeterRange = new IviPwrMeterRange(Adapter, ChannelName); }
public IviPwrMeterInternalTrigger(IDriverAdapterBase Adapter) { this.Adapter = Adapter; IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop; }
public IviPwrMeterReferenceOscillator(IDriverAdapterBase Adapter) { this.Adapter = Adapter; IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop; }
public IviPwrMeterMeasurement(IDriverAdapterBase Adapter) { this.Adapter = Adapter; IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop; }
public IviPwrMeterRange(IDriverAdapterBase Adapter, string ChannelName) { this.Adapter = Adapter; IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop; this.ChannelName = ChannelName; }
public IviPwrMeterDutyCycleCorrection(IDriverAdapterBase Adapter, string ChannelName) { this.Adapter = Adapter; IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop; this.ChannelName = ChannelName; }