// $Id: test.cc,v 1.3 2003/03/22 00:13:45 wafer Exp $ #include #include #include #include "iseg_chan.hh" #include "iseg.hh" int main (int argc, char **argv) { Iseg &iseg = Iseg::instance(); for (int i = 0; i < 8; ++i) { printf("Setting channel %d to %f V\n", i, atof(argv[1])); iseg[i].set_v(atof(argv[1])); iseg[i].turn_on(); } while (1) { for (int i = 0; i < 8; ++i) { printf("Dac %d: %.2f (%.2f) | ", i, iseg[i].get_v_meas(), iseg[i].get_v()); } printf("\n"); // sleep(1); } return 132; }