User`s guide
Driver Formats & Routines
13
Copyright © 1995-2007 Pico Technology. All rights reserved. adc1042.en-2
4.2.7
adc10_set_trigger
void adc10_set_trigger
(
unsigned short enabled,
unsigned short auto_trigger,
unsigned short auto_ms,
unsigned short dir,
unsigned short threshold,
short delay
)
This routine defines a trigger event for the next block operation, and specifies the
delay between the trigger event and the start of collecting the data block. Note that
the delay can be negative for pre-trigger.
Arguments
enabled immediately this is TRUE if the ADC-10 is to wait for a trigger event,
and FALSE if the ADC-10 is to start collecting data
auto_trigger this is TRUE if the ADC-10 is to trigger after a specified
time (even if no trigger event occurs). This prevents the
computer from locking up, if no trigger event occurs.
auto_ms specifies the time in ms after which auto_trigger will
occur.
dir the direction can be rising or falling: rising = 0, falling =
1
threshold this is the threshold at which a trigger event on channel A
or B takes place. It is scaled in ADC counts.
delay This specifies the delay, as a percentage of the block size,
between the trigger event and the start of the block.
Thus, 0% means the first data value in the block, and
-50% means that the trigger event is in the middle of the
block.










