/* DATEST.C */ /* Test of D/A board */ #include #include #include #include #include main() { int channel;float voltage;int done; done=0; printf("Test of D/A card \n"); printf("Enter the channel to be tested (0 or 1): \n"); scanf("%d",&channel); printf("Enter the desired voltage (-5 -> 5V): \n"); printf("Type Ctrl-Break to stop \n"); while(!done) { scanf("%f",&voltage); put_da(channel,voltage);} }