ScopeWidthTrigger.Configure Method (ScopeTriggerSource, Double, Double, Double, ScopeTriggerPolarity, ScopeWidthTriggerCondition, ScopeTriggerCoupling, PrecisionTimeSpan, PrecisionTimeSpan)
- Updated2023-09-06
- 2 minute(s) read
ScopeWidthTriggerConfigure Method (ScopeTriggerSource, Double, Double, Double, ScopeTriggerPolarity, ScopeWidthTriggerCondition, ScopeTriggerCoupling, PrecisionTimeSpan, PrecisionTimeSpan)
Configures common properties for analog width triggering.
Namespace: NationalInstruments.ModularInstruments.NIScope
Assembly: NationalInstruments.ModularInstruments.NIScope.Fx45 (in NationalInstruments.ModularInstruments.NIScope.Fx45.dll) Version: 2023
Syntax
public void Configure( ScopeTriggerSource triggerSource, double level, double triggerLowThreshold, double triggerHighThreshold, ScopeTriggerPolarity triggerPolarity, ScopeWidthTriggerCondition triggerWidthCondition, ScopeTriggerCoupling triggerCoupling, PrecisionTimeSpan triggerHoldoff, PrecisionTimeSpan triggerDelay )
Public Sub Configure ( triggerSource As ScopeTriggerSource, level As Double, triggerLowThreshold As Double, triggerHighThreshold As Double, triggerPolarity As ScopeTriggerPolarity, triggerWidthCondition As ScopeWidthTriggerCondition, triggerCoupling As ScopeTriggerCoupling, triggerHoldoff As PrecisionTimeSpan, triggerDelay As PrecisionTimeSpan )
Parameters
- triggerSource
- Type: NationalInstruments.ModularInstruments.NIScopeScopeTriggerSource
The trigger source. - level
- Type: SystemDouble
A value indicating the voltage level at which the pulse will trigger. - triggerLowThreshold
- Type: SystemDouble
A value indicating the pulse width low threshold. - triggerHighThreshold
- Type: SystemDouble
A value indicating the pulse width high threshold. - triggerPolarity
- Type: NationalInstruments.ModularInstruments.NIScopeScopeTriggerPolarity
The polarity that the width will trigger, either positive, negative, or either. - triggerWidthCondition
- Type: NationalInstruments.ModularInstruments.NIScopeScopeWidthTriggerCondition
The condition for the pulse to trigger on width greater than or less than the threshold. - triggerCoupling
- Type: NationalInstruments.ModularInstruments.NIScopeScopeTriggerCoupling
A value indicating whether to apply coupling and filtering options to the trigger signal. - triggerHoldoff
- Type: NationalInstrumentsPrecisionTimeSpan
The length of time, in seconds, that the digitizer waits after detecting a trigger before enabling NI-SCOPE to detect another trigger. - triggerDelay
- Type: NationalInstrumentsPrecisionTimeSpan
The length of time, in seconds, that the digitizer waits after receiving the trigger to start acquiring data.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | ScopeTriggerSource object passed in was null. |
ObjectDisposedException | Configure(ScopeTriggerSource, Double, Double, Double, ScopeTriggerPolarity, ScopeWidthTriggerCondition, ScopeTriggerCoupling, PrecisionTimeSpan, PrecisionTimeSpan) was called after the associated NIScope or ScopeDriverUtility object was disposed. |
IviCDriverException |
The value for lower threshold was invalid.
- or - The value for upper threshold was invalid.- or - The value for polarity was invalid.- or - The value for width condition was invalid.- or - The value for coupling was invalid.- or - The value for holdoff was invalid.- or - The value for delay was invalid.- or - The underlying NI-SCOPE driver returned an error. |