User manual
Programming with the PicoScope 6000 Series82
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
3.9.48.1
TRIGGER_CHANNEL_PROPERTIES structure
A structure of this type is passed to ps6000SetTriggerChannelProperties in the
channelProperties argument to specify the trigger mechanism, and is defined as
follows: -
typedef struct tTriggerChannelProperties
{
short thresholdUpper;
unsigned short hysteresisUpper;
short thresholdLower;
unsigned short hysteresisLower;
PS6000_CHANNEL channel;
PS6000_THRESHOLD_MODE thresholdMode;
} PS6000_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 ADC counts at the currently selected
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 ADC counts at the currently selected
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 ps6000SetChannel, or
PS6000_TRIGGER_AUX for the AUX input.
thresholdMode, either a level or window trigger. Use one of these
constants: -
PS6000_LEVEL
PS6000_WINDOW