
adc100_set_trigger
PREF1 void PREF2 adc100_set_trigger ( unsigned short enabled,
unsigned short auto_trigger,
unsigned short auto_ms,
unsigned short channel,
unsigned short dir,
unsigned short threshold,
unsigned 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.
If the computer is stuck waiting for a trigger that never occurs, you can abort the data collection by pressing
the F9 key (16-bit driver) or F10 (32-bit driver).
enabled
this is
TRUE
if the ADC-100 is to wait for a trigger event, and
FALSE
if the ADC-100 is to
start collecting data immediately.
auto_trigger
this is
TRUE
if the
ADC100 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
.
channel
specifies which channel is to be used as the trigger input.
0 - channel A
1 - channel B
dir
the direction can be rising or falling.
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.