public string GetName(int index) { StringBuilder Name = new StringBuilder(255); Adapter.ViSessionStatusCheck(IviDownconverterInterop.GetRFInputName(Adapter.Session, index, Name.Capacity, Name)); return(Name.ToString()); }
public PathCapability CanConnect(string channel1, string channel2) { int pathCapability = 0; Adapter.ViSessionStatusCheck(IviSwtchInterop.CanConnect(Adapter.Session, channel1, channel2, ref pathCapability)); return(SwtchPathCapability.getEnum(pathCapability)); }
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); }
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)); }
public void Abort() { Adapter.ViSessionStatusCheck(IviSwtchInterop.AbortScan(Adapter.Session)); }
public void Zero() { Adapter.ViSessionStatusCheck(IviPwrMeterInterop.ZeroAllChannels(Adapter.Session)); }
public void Configure(ThermocoupleType type, ReferenceJunctionType referenceJunctionType) { Adapter.ViSessionStatusCheck(IviDmmInterop.ConfigureThermocouple(Adapter.Session, DmmThermocoupleType.getC_Value(type), DmmReferenceJunctionType.getC_Value(referenceJunctionType))); }
public void Abort() { Adapter.ViSessionStatusCheck(IviDmmInterop.Abort(Adapter.Session)); }
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)); }
public void ConfigureBandwidth(double minFreq, double maxFreq) { Adapter.ViSessionStatusCheck(IviDmmInterop.ConfigureACBandwidth(Adapter.Session, minFreq, maxFreq)); }
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)); }
public void Configure(double alpha, double resistance) { Adapter.ViSessionStatusCheck(IviDmmInterop.ConfigureRTD(Adapter.Session, alpha, resistance)); }
public void Unlock() { Adapter.ViSessionStatusCheck(Adapter.Interop.UnlockSession(Adapter.Session, ref HasLock)); }
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)); }
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)); }
#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)); }