PicoScope 3000A Series Prog rammer's Guide 91
Copyright © 2011-2013 Pico Technology Limited. All rights reserved. ps3000abpg.en r9
2.12.53
ps3000aSetTriggerChannelConditions
PICO_STATUS ps3000aSetTriggerChannelConditions
(
short handle,
PS3000A_TRIGGER_CONDITIONS * conditions,
short nConditions
)
This function sets up trigger conditions on the scope's inputs. The trigger is defined by
one or more PS3000A_TRIGGER_CONDITIONS structures that are then ORed
together. Each structure is itself the AND of the states of one or more of the inputs.
This AND-OR logic allows you to create any possible Boolean function of the scope's
inputs.
If complex triggering is not required, use ps3000aSetSimpleTrigger.
handle, the handle of the required device.
* conditions, an array of PS3000A_TRIGGER_CONDITIONS
structures* specifying the conditions that should be applied to each
channel. In the simplest case, the array consists of a single element.
When there is more than one element, the overall trigger condition is
the logical OR of all the elements.
nConditions, the number of elements in the conditions array.
If nConditions is zero then triggering is switched off.
PICO_OK
PICO_INVALID_HANDLE
PICO_USER_CALLBACK
PICO_CONDITIONS
PICO_MEMORY
PICO_DRIVER_FUNCTION
*Note: using this function the driver will convert the
PS3000A_TRIGGER_CONDITIONS into a PS3000A_TRIGGER_CONDITIONS_V2 and
will set the condition for digital to PS3000A_DIGITAL_DONT_CARE.