User manual

PicoScope 6000 Series Programmer's Guide 71
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved. ps6000pg.en r9
3.9.42.1
PS6000_PWQ_CONDITIONS structure
A structure of this type is passed to ps6000SetPulseWidthQualifier in the conditions
argument to specify the trigger conditions. It is defined as follows:
typedef struct tPwqConditions
{
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_PWQ_CONDITIONS
Each structure is the logical AND of the states of the scope's inputs. The
ps6000SetPulseWidthQualifier function can OR together a number of these structures
to produce the final pulse width qualifier, which can therefore 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: 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