ADC 100 Podręcznik Użytkownika Strona 13

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 25
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 12
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.
Arguments:
channel
0 - channel A
1 - channel B
Returns:
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.
Arguments:
none
Returns:
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.
Arguments:
no_of_values
- the number of samples that are to be collected
method
- 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
Returns:
Przeglądanie stron 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 24 25

Komentarze do niniejszej Instrukcji

Brak uwag