#include #include #include "phlib.h" #define NP 500 int main() { double t[NP], adc[NP]; int k; if(!openPhoenix()) { fprintf(stderr, "Phoenix driver open failed.\n"); exit(1); } writeOutputs(255); // All digital outputs to HIGH sleep(1); writeOutputs(0); // take them low readBlock(NP, t, adc, 0, 0); // digitize the voltage NP times for(k = 1; k < NP; ++k) printf("%f %f\n", t[k], adc[k]); return 0; }