ibrd(Counter, InString, 80);
printf(“Fetching result”);
for (i=0; i<1000; i++) {
/*Fetch one result*/
ibwrt(Counter, “FETCH?”, 6);
ibrd(Counter, InString, 80);
InString[ibcnt] = ‘\0’;
/*Write result to file*/
fprintf(ofp, “%d, %s”, i, InString);
}
ibwrt(Counter, “:DISP:ENAB ON”, 13);
/*Close file*/
Fclose(ofp);
} else
printf(“CANT OPEN FILE”);
exit(0);
}
Programming Examples
‘C’ for National Instruments PC-IIA, Fast Sampliing 4-19