User manual

Programming with the PicoScope 6000 Series80
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
3.9.47
ps6000SetTriggerChannelDirections
PICO_STATUS ps6000SetTriggerChannelDirections
(
short handle,
PS6000_THRESHOLD_DIRECTION channelA,
PS6000_THRESHOLD_DIRECTION channelB,
PS6000_THRESHOLD_DIRECTION channelC,
PS6000_THRESHOLD_DIRECTION channelD,
PS6000_THRESHOLD_DIRECTION ext,
PS6000_THRESHOLD_DIRECTION aux
)
This function sets the direction of the trigger for each channel.
Applicability
All modes
Arguments
handle, the handle of the required device
channelA, channelB, channelC, channelD, aux, the
direction in which the signal must pass through the threshold to
activate the trigger. See the table below for allowable values. If using
a level trigger in conjunction with a pulse-width trigger, see the
description of the direction argument to
ps6000SetPulseWidthQualifier for more information.
ext: not used
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_USER_CALLBACK
PICO_INVALID_PARAMETER
PS6000_THRESHOLD_DIRECTION constants
PS6000_ABOVE
for gated triggers: above the upper threshold
PS6000_ABOVE_LOWER
for gated triggers: above the lower threshold
PS6000_BELOW
for gated triggers: below the upper threshold
PS6000_BELOW_LOWER
for gated triggers: below the lower threshold
PS6000_RISING
for threshold triggers: rising edge, using upper
threshold
PS6000_RISING_LOWER
for threshold triggers: rising edge, using lower
threshold
PS6000_FALLING
for threshold triggers: falling edge, using upper
threshold
PS6000_FALLING_LOWER
for threshold triggers: falling edge, using lower
threshold
PS6000_RISING_OR_FALLING
for threshold triggers: either edge
PS6000_INSIDE
for window-qualified triggers: inside window
PS6000_OUTSIDE
for window-qualified triggers: outside window
PS6000_ENTER
for window triggers: entering the window
PS6000_EXIT
for window triggers: leaving the window
PS6000_ENTER_OR_EXIT
for window triggers: either entering or leaving
the window
PS6000_POSITIVE_RUNT
for window-qualified triggers
PS6000_NEGATIVE_RUNT
for window-qualified triggers
PS6000_NONE
no trigger