User Manual

Programming with the PicoScope 4000 Series78
Copyright © 2008-2011 Pico Technology Ltd. All rights reserved.ps4000pg.en
4.10.52
ps4000SetSimpleTrigger
PICO_STATUS ps4000SetSimpleTrigger
(
short handle,
short enable,
PS4000_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