
ADC-100 User's Guide16
© Copyright 2004-2007 Pico Technology Limited. All rights reserved.adc100.en
3.3.14
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.
3.3.15
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.
If the specified unit is open, The routine returns version information about the
ADC-100 DLL, the Windows driver and the sampling rate.
- character string buffer for result
- 0 to 3: selects which line to return
- the printer port number (1..3) to return information for
Comentários a estes Manuais