
PicoScope 3000A Series Prog rammer's Guide
97
Copyright © 2011-2013 Pico Technology Limited. All rights reserved.
ps3000abpg.en r9
2.12.56.1 PS3000A_TRIGGER_CHANNEL_PROPERTIES structure
A structure of this type is passed to
ps3000aSetTriggerChannelProperties
channelProperties
argument to specify the trigger mechanism, and is defined as
follows: -
typedef struct tPS3000ATriggerChannelProperties
{
short thresholdUpper;
unsigned short thresholdUpperHysteresis;
short thresholdLower;
unsigned short thresholdLowerHysteresis;
PS3000A_CHANNEL channel;
PS3000A_THRESHOLD_MODE thresholdMode;
} PS3000A_TRIGGER_CHANNEL_PROPERTIES
The structure is byte-aligned. In C++, for example, you should specify this using the
#pragma pack()
instruction.
Elements
thresholdUpper,
the upper threshold at which the trigger must
fire. This is scaled in 16-bit
range for that channel.
thresholdUpperHysteresis
, the hysteresis by which the trigger
must exceed the upper threshold before it will fire. It is scaled in 16-
bit counts.
thresholdLower,
the lower threshold at which the trigger must
fire. This is scaled in 16-bit
range for that channel.
thresholdLowerHysteresis
, the hysteresis by which the trigger
must exceed the lower threshold before it will fire. It is scaled in 16-bit
counts.
channel,
the channel to which the properties apply. This can be
one of the four input channels listed under
, or
thresholdMode,
either a level or window trigger. Use one of these
constants: -
PS3000A_LEVEL
PS3000A_WINDOW