/* Reads the first ADC channel hundred times by single readBlock call */ #include #include #include "phlib.h" #define NP 100 double ts[NP], v[NP]; int main(int argc, char* argv[]) { int k; if(!open_phoenix()) { fprintf(stderr, "Phoenix driver open failed.\n"); exit(1); } read_block(NP, 0, 1, ts , v); for(k = 0; k < NP; ++k) { printf("%8.6f\t%5.0f\n", ts[k], v[k]); } return 0; }