ADC 100 Especificações Página 13

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 20
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 12
1 - channel B only
2 - both channels
no_of_channels specifies the number of channels used.
An example of a call to this routine using both channels A and B is:
adc100_set_interval (10000, 100, 2);
The routine returns the actual time to collect this number of samples. This actual time may be greater than the
target time if you specified a sampling interval that is faster than your computer can manage. If the specified
sampling rate was too fast, you have the following choices:
if the total time is important, collect fewer than the ideal number of samples so that the total block time is
correct
if the number of samples is important, collect the same number of samples then allow for the fact that
they took longer to collect.
adc100_get_values
PREF 1 unsigned long PREF2 adc100_get_values (
unsigned short HUGE * buffer_a,
unsigned short HUGE * buffer_b,
unsigned long no_of_values);
This routine reads in a block of values. It collects readings at intervals and from channels specified in the most
recent adc100_set_interval call.
If a key is pressed while collecting, the routine will return immediately. The return value will be zero if a key was
pressed, and the total time in micro-seconds if a block was successfully collected.
When collecting data from just one channel, the parameter for the other buffer can either be set to NULL, or
pointed at the same buffer.
adc100_get_times_and_values
PREF1 unsigned long PREF2 adc100_get_times_and_values (
long HUGE * times,
unsigned short HUGE * buffer_a,
unsigned short HUGE * buffer_b,
unsigned long no_of_values);
This routine reads a block of values from the unit in the most recent adc100_open_unit or adc100_set_unit call. It
takes readings at nominal intervals specified in the most recent adc100_set_interval call, and returns the
actual times for each reading.
If a key is pressed while collecting, the routine will return immediately. The return value will be zero if a key was
pressed, and the total in micro-seconds if a block was successfully collected.
When collecting data from just one channel, the parameter for the other buffer can either be set to NULL, or
pointed at the same buffer.
adc100_get_unit_info
PREF1 short PREF2 adc100_get_unit_info (char * str, short str_lth, short line, short
port);
If the specified unit failed to open, this routine returns a text string which explains why the unit was not
opened.
Vista de página 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 19 20

Comentários a estes Manuais

Sem comentários