User Manual
PicoScope 4000 Series Programmer's Guide 81
Copyright © 2008-2011 Pico Technology Ltd. All rights reserved. ps4000pg.en
4.10.54
ps4000SetTriggerChannelDirections
PICO_STATUS ps4000SetTriggerChannelDirections
(
short handle,
THRESHOLD_DIRECTION channelA,
THRESHOLD_DIRECTION channelB,
THRESHOLD_DIRECTION channelC,
THRESHOLD_DIRECTION channelD,
THRESHOLD_DIRECTION ext,
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 all specify the
direction in which the signal must pass through the threshold to
activate the trigger. See the table below.
ext, aux, not used
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_USER_CALLBACK
PICO_INVALID_PARAMETER
Trigger direction constants
Constant
Type
Direction
ABOVE
gated
above the upper threshold
ABOVE_LOWER
gated
above the lower threshold
BELOW
gated
below the upper threshold
BELOW_LOWER
gated
below the lower threshold
RISING
threshold
rising edge, using upper threshold
RISING_LOWER
threshold
rising edge, using lower threshold
FALLING
threshold
falling edge, using upper threshold
FALLING_LOWER
threshold
falling edge, using lower threshold
RISING_OR_FALLING
threshold
either edge
INSIDE
window-qualified
inside window
OUTSIDE
window-qualified
outside window
ENTER
window
entering the window
EXIT
window
leaving the window
ENTER_OR_EXIT
window
either entering or leaving the window
POSITIVE_RUNT
window-qualified
entering and leaving from below
NEGATIVE_RUNT
window-qualified
entering and leaving from above
NONE
none
none