User Manual

PicoScope 4000 Series Programmer's Guide 79
Copyright © 2008-2011 Pico Technology Ltd. All rights reserved. ps4000pg.en
4.10.53
ps4000SetTriggerChannelConditions
PICO_STATUS ps4000SetTriggerChannelConditions
(
short handle,
TRIGGER_CONDITIONS * conditions,
short nConditions
)
This function sets up trigger conditions on the scope's inputs. The trigger is set up by
defining one or more 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.
Applicability
All modes
Arguments
handle, the handle of the required device.
conditions, a pointer to an array of 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 are several elements, 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