Fluke PM6685R Outdoor Timer User Manual


 
ibwrt(Counter, “:INP:LEV:AUTO ONCE”, 18);
ibwrt(Counter, “:DISP:ENAB OFF; :ACQ:APER 1E-6", 30);
ArmDelay=200e-9;
/*CAPTURE PROFILE*/
Printf(”Profiling”);
for (i=0; i<1000; i++) {
/*Set arming delay time*/
sprintf(ArmString, “:ARM:DEL %le”, ArmDelay);
ibwrt(Counter, ArmString, strlen(ArmString));
/*Measure and read result*/
ibwrt(Counter, “READ?”, 5);
ibrd(Counter, InString, 80);
InString[ibcnt] = ‘\0’;
/*Write arming delay time and result to file*/
fprintf(ofp, “%le, %s”, ArmDelay, InString);
/*Increase arming delay*/
ArmDelay += 100e-9;
}
ibwrt(Counter, “:DISP:ENAB ON”, 13);
/*Close file*/
Fclose(ofp);
} else
printf(“CANT OPEN FILE”);
exit(0);
}
Programming Examples
4-17 ‘C’ for National Instruments PC-IIA, Frequency Profiling