예제 #1
0
            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);
                }
            }
예제 #2
0
            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);
            }
예제 #3
0
 public IviPwrMeterInternalTrigger(IDriverAdapterBase Adapter)
 {
     this.Adapter       = Adapter;
     IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop;
 }
예제 #4
0
 public IviPwrMeterReferenceOscillator(IDriverAdapterBase Adapter)
 {
     this.Adapter       = Adapter;
     IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop;
 }
예제 #5
0
 public IviPwrMeterMeasurement(IDriverAdapterBase Adapter)
 {
     this.Adapter       = Adapter;
     IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop;
 }
예제 #6
0
 public IviPwrMeterRange(IDriverAdapterBase Adapter, string ChannelName)
 {
     this.Adapter       = Adapter;
     IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop;
     this.ChannelName   = ChannelName;
 }
예제 #7
0
 public IviPwrMeterDutyCycleCorrection(IDriverAdapterBase Adapter, string ChannelName)
 {
     this.Adapter       = Adapter;
     IviPwrMeterInterop = (IviCInterop.IviPwrMeter)Adapter.Interop;
     this.ChannelName   = ChannelName;
 }