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.
adc100_set_interval
PREF1 unsigned long PREF2 adc100_set_interval (
unsigned long us_for_block,
unsigned long ideal_no_of_samples,
short mode);
This routine specifies the time interval per sample and the channels to be used for calls to
adc100_get_values
or adc100_get_times_and_values.
us_for_block target total time in which to collect ideal_no_of samples, in micro seconds.
ideal_no_of_samples specifies the number of samples that you intend to collect. This number is only
used for timing calculations: you can actually collect a different number of
samples when you call adc100_get_values.
mode This is one of the following:
0 - channel A only
Commenti su questo manuale