User manual
PicoScope 6000 Series Programmer's Guide 77
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved. ps6000pg.en r9
3.9.45
ps6000SetSimpleTrigger
PICO_STATUS ps6000SetSimpleTrigger
(
short handle,
short enable,
PS6000_CHANNEL source,
short threshold,
THRESHOLD_DIRECTION direction,
unsigned long delay,
short autoTrigger_ms
)
This function simplifies arming the trigger. It supports only the LEVEL trigger types
and does not allow more than one channel to have a trigger applied to it. Any previous
pulse width qualifier is cancelled.
Applicability
All modes
Arguments
handle: the handle of the required device.
enabled: zero to disable the trigger, any non-zero value to set the
trigger.
source: the channel on which to trigger.
threshold: the ADC count at which the trigger will fire.
direction: the direction in which the signal must move to cause a
trigger. The following directions are supported: ABOVE, BELOW,
RISING, FALLING and RISING_OR_FALLING.
delay: the time between the trigger occurring and the first sample
being taken.
autoTrigger_ms: the number of milliseconds the device will wait if
no trigger occurs.
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_USER_CALLBACK
PICO_DRIVER_FUNCTION