
Technical reference
11
© Copyright 2004-2007 Pico Technology Limited. All rights reserved. adc100.en
3.3.6
adc100_get_value
PREF 1 short PREF2 adc100_get_value (
short channel);
This routine reads the current value of one channel. Depending on your computer, it
will take approx 20µs to take one reading.
0 - channel A
1 - channel B
3.3.7
adc100_is_streaming
short adc100_is_streaming (void)
This routine can be used to determine whether the device is capable of supporting
streaming. If so, it will return TRUE (1). A streaming device collects data in an
asynchronous manner. USB devices generally support streaming, whereas parallel
port devices do not.
TRUE if the device supports streaming
3.3.8
adc100_run
void adc100_run (
unsigned long no_of_values,
unsigned short method)
This routine starts a streaming unit collecting data It collects readings at intervals
and from channels specified in the most recent adc100_set_interval call. For
non-streaming devices, this function has no effect.
- the number of samples that are to be collected
- the data collection method:
BM_SINGLE (0) - collect a single block and stop
BM_WINDOW (1) - collect a sequence of overlapping
blocks
BM_STREAM (2) - collect a continuous stream of data
Comentários a estes Manuais