Programming Examples

/*Read minimum value*/

ibwrt(Counter, “:CALC:AVER:TYPE MIN; :CALC:IMM?”, 31); ibrd(Counter, InString, 80);

InString[ibcnt] = ‘\0’; printf(“Minimum = %s\n”, InString);

/*Read mean value*/

ibwrt(Counter, “:CALC:AVER:TYPE MEAN; :CALC:IMM?”, 32); ibrd(Counter, InString, 80);

InString[ibcnt] = ‘\0’; printf(“Mean = %s\n”, InString);

/*Read standard deviation value*/

ibwrt(Counter, “:CALC:AVER:TYPE SDEV; :CALC:IMM?”, 32); ibrd(Counter, InString, 80);

InString[ibcnt] = ‘\0’;

printf(“Standard deviation = %s\n”, InString);

exit(0);

}

‘C’ for National Instruments PC-IIA, Statistics 4-21

Page 61
Image 61
Fluke PM6681R, PM6685R manual ‘C’ for National Instruments PC-IIA, Statistics