User manual
PicoScope 6000 Series Programmer's Guide 79
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved. ps6000pg.en r9
3.9.46.1
PS6000_TRIGGER_CONDITIONS structure
A structure of this type is passed to ps6000SetTriggerChannelConditions in the
conditions argument to specify the trigger conditions, and is defined as follows: -
typedef struct tTriggerConditions
{
PS6000_TRIGGER_STATE channelA;
PS6000_TRIGGER_STATE channelB;
PS6000_TRIGGER_STATE channelC;
PS6000_TRIGGER_STATE channelD;
PS6000_TRIGGER_STATE external;
PS6000_TRIGGER_STATE aux;
PS6000_TRIGGER_STATE pulseWidthQualifier;
} PS6000_TRIGGER_CONDITIONS
Each structure is the logical AND of the states of the scope's inputs. The
ps6000SetTriggerChannelConditions 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.
The structure is byte-aligned. In C++, for example, you should specify this using the
#pragma pack() instruction.
Elements
channelA, channelB, channelC, channelD, aux,
pulseWidthQualifier: the type of condition that should be
applied to each channel. Use these constants:
PS6000_CONDITION_DONT_CARE
PS6000_CONDITION_TRUE
PS6000_CONDITION_FALSE
The channels that are set to PS6000_CONDITION_TRUE or
PS6000_CONDITION_FALSE must all meet their conditions
simultaneously to produce a trigger. Channels set to
PS6000_CONDITION_DONT_CARE are ignored.
external: not used