public string GetName(int index)
            {
                StringBuilder Name = new StringBuilder(255);

                Adapter.ViSessionStatusCheck(IviDownconverterInterop.GetRFInputName(Adapter.Session, index, Name.Capacity, Name));
                return(Name.ToString());
            }
Esempio n. 2
0
            public PathCapability CanConnect(string channel1, string channel2)
            {
                int pathCapability = 0;

                Adapter.ViSessionStatusCheck(IviSwtchInterop.CanConnect(Adapter.Session, channel1, channel2, ref pathCapability));
                return(SwtchPathCapability.getEnum(pathCapability));
            }
Esempio n. 3
0
            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);
            }
Esempio n. 4
0
            public IviDCPwrOutput(IDriverAdapterBase Adapter, int Index)
            {
                this.Adapter    = Adapter;
                IviDCPwrInterop = (IviCInterop.IviDCPwr)Adapter.Interop;
                this.Index      = Index;

                try
                {
                    StringBuilder NameValue = new StringBuilder(256);
                    Adapter.ViSessionStatusCheck(IviDCPwrInterop.GetChannelName(Adapter.Session, Index, NameValue.Capacity, NameValue));
                    ChannelName = NameValue.ToString();
                }
                catch
                {
                    ChannelName = string.Empty;
                }
            }
            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 void ClearAll()
 {
     Adapter.ViSessionStatusCheck(IviDownconverterInterop.ClearAllFrequencySweepLists(Adapter.Session));
 }
 public void ConfigureDwell(bool singleStepEnabled, PrecisionTimeSpan dwell)
 {
     Adapter.ViSessionStatusCheck(IviDownconverterInterop.ConfigureFrequencyStepDwell(Adapter.Session, singleStepEnabled, dwell.TotalSeconds));
 }
Esempio n. 8
0
 public void Abort()
 {
     Adapter.ViSessionStatusCheck(IviSwtchInterop.AbortScan(Adapter.Session));
 }
 public void Zero()
 {
     Adapter.ViSessionStatusCheck(IviPwrMeterInterop.ZeroAllChannels(Adapter.Session));
 }
Esempio n. 10
0
 public void Configure(ThermocoupleType type, ReferenceJunctionType referenceJunctionType)
 {
     Adapter.ViSessionStatusCheck(IviDmmInterop.ConfigureThermocouple(Adapter.Session, DmmThermocoupleType.getC_Value(type), DmmReferenceJunctionType.getC_Value(referenceJunctionType)));
 }
Esempio n. 11
0
 public void Abort()
 {
     Adapter.ViSessionStatusCheck(IviDmmInterop.Abort(Adapter.Session));
 }
Esempio n. 12
0
 public void ConfigureCurrentLimit(CurrentLimitBehavior behavior, double limit)
 {
     Adapter.ViSessionStatusCheck(IviDCPwrInterop.ConfigureCurrentLimit(Adapter.Session, ChannelName, DCPwrCurrentLimitBehavior.getC_Value(behavior), limit));
 }
 public void Configure(string eventSource, Slope slope)
 {
     Adapter.ViSessionStatusCheck(IviPwrMeterInterop.ConfigureInternalTrigger(Adapter.Session, eventSource, PwrMeterSlope.getC_Value(slope)));
 }
 public void Configure(double frequency, double level)
 {
     Adapter.ViSessionStatusCheck(IviPwrMeterInterop.ConfigureRefOscillator(Adapter.Session, frequency, level));
 }
 public void Configure(bool rangeAuto)
 {
     Adapter.ViSessionStatusCheck(IviPwrMeterInterop.ConfigureRangeAutoEnabled(Adapter.Session, ChannelName, rangeAuto));
 }
 public void Configure(bool enabled, double correction)
 {
     Adapter.ViSessionStatusCheck(IviPwrMeterInterop.ConfigureDutyCycleCorrection(Adapter.Session, ChannelName, enabled, correction));
 }
 public void Calibrate()
 {
     Adapter.ViSessionStatusCheck(IviPwrMeterInterop.Calibrate(Adapter.Session, ChannelName));
 }
 public void Configure(string source, double frequency)
 {
     Adapter.ViSessionStatusCheck(IviDownconverterInterop.ConfigureReferenceOscillator(Adapter.Session, DownconverterReferenceOscillatorSource.getC_Value(source), frequency));
 }
 public void Calibrate()
 {
     Adapter.ViSessionStatusCheck(IviDownconverterInterop.Calibrate(Adapter.Session));
 }
 public void Configure(double bias, double biasLimit)
 {
     Adapter.ViSessionStatusCheck(IviDownconverterInterop.ConfigureExternalMixerBias(Adapter.Session, bias, biasLimit));
 }
Esempio n. 21
0
 public void ConfigureBandwidth(double minFreq, double maxFreq)
 {
     Adapter.ViSessionStatusCheck(IviDmmInterop.ConfigureACBandwidth(Adapter.Session, minFreq, maxFreq));
 }
Esempio n. 22
0
 public void Configure(int triggerCount, int sampleCount, string sampleTrigger, Ivi.Driver.PrecisionTimeSpan sampleInterval)
 {
     Adapter.ViSessionStatusCheck(IviDmmInterop.ConfigureMultiPoint(Adapter.Session, triggerCount, sampleCount, DmmTriggerSource.getC_Value(sampleTrigger), SampleInterval.TotalSeconds));
 }
Esempio n. 23
0
 public void Configure(double alpha, double resistance)
 {
     Adapter.ViSessionStatusCheck(IviDmmInterop.ConfigureRTD(Adapter.Session, alpha, resistance));
 }
Esempio n. 24
0
 public void Unlock()
 {
     Adapter.ViSessionStatusCheck(Adapter.Interop.UnlockSession(Adapter.Session, ref HasLock));
 }
Esempio n. 25
0
 public void Configure(string triggerSource, bool autoTriggerDelay)
 {
     Adapter.ViSessionStatusCheck(IviDmmInterop.ConfigureTrigger(Adapter.Session, DmmTriggerSource.getC_Value(triggerSource), autoTriggerDelay ? IviDmmAttribute.IVIDMM_VAL_AUTO_DELAY_ON : IviDmmAttribute.IVIDMM_VAL_AUTO_DELAY_OFF));
 }
Esempio n. 26
0
 public IviDriverLock(IDriverAdapterBase Adapter)
 {
     this.Adapter = Adapter;
     Adapter.ViSessionStatusCheck(Adapter.Interop.LockSession(Adapter.Session, ref HasLock));
 }
Esempio n. 27
0
 public IviDriverLock(IDriverAdapterBase Adapter)
 {
     this.Adapter = Adapter;
     Adapter.ViSessionStatusCheck(Adapter.Interop.LockSession(Adapter.Session, ref HasLock));
 }
 public void Configure(FrequencySweepMode mode, string triggerSource)
 {
     Adapter.ViSessionStatusCheck(IviDownconverterInterop.ConfigureFrequencySweep(Adapter.Session, DownconverterFrequencySweepMode.getC_Value(mode), triggerSource));
 }
Esempio n. 29
0
        #pragma warning restore

        public void InvalidateAllAttributes()
        {
            Adapter.ViSessionStatusCheck(Adapter.Interop.InvalidateAllAttributes(Adapter.Session));
        }
 public void ConfigureStartStop(double start, double stop)
 {
     Adapter.ViSessionStatusCheck(IviDownconverterInterop.ConfigureFrequencySweepStartStop(Adapter.Session, start, stop));
 }