User`s guide
ADC-10,12,40,42 User's Guide16
Copyright © 1995-2007 Pico Technology. All rights reserved.adc1042.en-2
For non-streaming devices, if F9 or F10 is pressed while collecting, the routine will
return immediately.
In BM_SINGLE and BM_WINDOW modes, the return value will be zero if a key was
pressed, and the total time in microseconds if a block was successfully collected.
In BM_STREAM mode, the return value will be the number of new readings placed in
the values buffer.
4.2.14
adc10_get_times_and_values
unsigned long adc10_get_times_and_values
(
long HUGE * times,
unsigned short HUGE * values,
unsigned long no_of_values
)
This routine reads a block of values from the unit in the most recent
adc10_open_unit or adc10_set_unit call. It takes readings at nominal intervals
specified in the most recent adc10_set_interval call, and returns the actual times
for each reading.
For streaming devices, you should not call this routine until adc10_ready returns
TRUE.
For non-streaming devices, if the F9 or F10 key is pressed while collecting, the routine
will return immediately.
In BM_SINGLE and BM_WINDOW modes, the return value will be zero if a key was
pressed, and the total time in microseconds if a block was successfully collected.
In BM_STREAM mode, the return value will be the number of new readings placed in
the values buffer.
4.2.15
adc10_get_unit_info
short adc10_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-10
DLL, the Windows driver and the sampling rate.
Arguments
str character string buffer for result










