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