2.12.48
handle, the handle of the required device
* conditions, an array of PS3000A_PWQ_CONDITIONS
structures* specifying the conditions that should be applied to each
channel. In the simplest case, the array consists of a single element.
When there are several elements, the overall trigger condition is the
logical OR of all the elements. If conditions is NULL then the
pulse-width qualifier is not used.
nConditions, the number of elements in the conditions array.
If nConditions is zero then the pulse-width qualifier is not used.
Range: 0 to PS3000A_MAX_PULSE_WIDTH_QUALIFIER_COUNT.
direction, the direction of the signal required for the pulse width
trigger to fire. See PS3000A_THRESHOLD_DIRECTION constants
for the list of possible values. Each channel of the oscilloscope
(except the EXT input) has two thresholds for each direction—for
example, PS3000A_RISING and PS3000A_RISING_LOWER—so that
one can be used for the pulse-width qualifier and the other for the
level trigger. The driver will not let you use the same threshold for
both triggers; so, for example, you cannot use PS3000A_RISING as
the direction argument for both ps3000aSetTriggerConditions and
ps3000aSetPulseWidthQualifier at the same time. There is no such
restriction when using window triggers.
lower, the lower limit of the pulse-width counter, measured in
samples.
upper, the upper limit of the pulse-width counter, measured in
samples. This parameter is used only when the type is set to
PS3000A_PW_TYPE_IN_RANGE or
PS3000A_PW_TYPE_OUT_OF_RANGE.