
Prog ramming the 3000A Series oscilloscopes
90
Copyright © 2011-2013 Pico Technology Limited. All rights reserved.
ps3000abpg.en r9
2.12.52 ps3000aSetSimpleTrigger
PICO_STATUS ps3000aSetSimpleTrigger
(
short handle,
short enable,
short threshold,
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.
enable,
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.
For example, if
delay
=100 then the scope would wait 100 sample
periods before sampling. At a
sample, the total delay would then be 100 x 2 ns = 200 ns. Range: 0
to
autoTrigger_ms,
the number of milliseconds the device will wait if
no trigger occurs. If this is set to zero, the scope device will wait
indefinitely for a trigger.
PICO_OK
PICO_INVALID_CHANNEL
PICO_INVALID_PARAMETER
PICO_MEMORY
PICO_CONDITIONS
PICO_INVALID_HANDLE
PICO_USER_CALLBACK
PICO_DRIVER_FUNCTION