Installation guide
API functions80
Copyright © 2008-2014 Pico Technology Ltd. All rights reserved.ps4000apg.en r1
4.53.1
PS4000A_DIRECTION structure
A structure of this type is passed to ps4000aSetTriggerChannelDirections in
the directions argument to specify the trigger direction for a specified source, and
is defined as follows: -
typedef struct tPS4000ADirection
{
PS4000A_CHANNEL channel;
PS4000A_THRESHOLD_DIRECTION direction;
} PS4000A_DIRECTION;
Each structure is the logical AND of the states of the scope's inputs. The
ps4000aSetTriggerChannelDirections function can OR together a number of
these structures to produce the final trigger condition, which can be any possible
Boolean function of the scope's inputs.
Elements
channel, the channel being configured. See ps4000aSetChannel for allowable
values.
direction, the trigger direction that should be applied to each channel. Use one of
these constants:
Constant
Type
Direction
PS4000A_ABOVE
gated
above the upper threshold
PS4000A_ABOVE_LOWER
gated
above the lower threshold
PS4000A_BELOW
gated
below the upper threshold
PS4000A_BELOW_LOWER
gated
below the lower threshold
PS4000A_RISING
threshold
rising edge, using upper threshold
PS4000A_RISING_LOWER
threshold
rising edge, using lower threshold
PS4000A_FALLING
threshold
falling edge, using upper threshold
PS4000A_FALLING_LOWER
threshold
falling edge, using lower threshold
PS4000A_RISING_OR_FAL
LING
threshold
either edge
PS4000A_INSIDE
window-
qualified
inside window
PS4000A_OUTSIDE
window-
qualified
outside window
PS4000A_ENTER
window
entering the window
PS4000A_EXIT
window
leaving the window
PS4000A_ENTER_OR_EXIT
window
either entering or leaving the window
PS4000A_POSITIVE_RUNT
window-
qualified
entering and leaving from below
PS4000A_NEGATIVE_RUNT
window-
qualified
entering and leaving from above
PS4000A_NONE
none
none