User manual
Programming with the PicoScope 6000 Series78
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
3.9.46
ps6000SetTriggerChannelConditions
PICO_STATUS ps6000SetTriggerChannelConditions
(
short handle,
PS6000_TRIGGER_CONDITIONS * conditions,
short nConditions
)
This function sets up trigger conditions on the scope's inputs. The trigger is defined by
one or more PS6000_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 ps6000SetSimpleTrigger.
Applicability
All modes
Arguments
handle, the handle of the required device.
conditions, an array of PS6000_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.
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_USER_CALLBACK
PICO_CONDITIONS
PICO_MEMORY_FAIL
PICO_DRIVER_FUNCTION