Installation guide
API functions76
Copyright © 2008-2014 Pico Technology Ltd. All rights reserved.ps4000apg.en r1
4.51
ps4000aSetSimpleTrigger
PICO_STATUS ps4000aSetSimpleTrigger
(
int16_t handle,
int16_t enable,
PS4000A_CHANNEL source,
int16_t threshold,
PS4000A_THRESHOLD_DIRECTION direction,
uint32_t delay,
int16_t 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. See ps4000aSetChannel.
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, in sample periods, 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