EasyManuals Logo

Agilent Technologies 4156C User Manual

Agilent Technologies 4156C
312 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #216 background imageLoading...
Page #216 background image
5-34 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Programming Examples for C++ Users
Staircase Sweep with Pulsed Bias Measurements
printf(" Vg (V), Vd (V), Id (mA)\n"); /* 72 */
for (j = 0; j < nop2; j++){
n = j * nop1;
for (i = n; i < n + nop1; i++){
printf(" %4.2f, %4.2f, %9.6f \n", dvg[j], sc[i], md[i] * 1000);
}
} /* 79 */
FILE *stream; /* 81 */
if( ( stream = fopen( f_name, "w+" )) == NULL ){
printf( "Data file was not opened\n" );
}
else {
printf( "%s%c", msg1, c );
fprintf( stream, "%s%c", head1, c );
for (j = 0; j < nop2; j++){
n = j * nop1;
for (i = n; i < n + nop1; i++){
fprintf( stream, "%4.2f, %4.2f, %9.6f, %d\n", dvg[j], sc[i], md[i] * 1000,
st[i]);
}
}
printf( "%s%c", msg2, c );
}
if( fclose( stream ) ){
printf( "Data file was not closed\n" );
} /* 100 */
ret = hp4156b_setSwitch(vi, hp4156b_CH_ALL, 0); /* 102 */
check_err (vi, ret);
}
Line Description
72 to 79 Displays the measurement result data.
81 to 100 Saves the measurement results into a file (C:\Agilent\data\data6.txt, CSV file).
102 Disables all ports.
103 Calls the check_err subprogram (shown in Table 5-1) to check if an error status is
returned for the previous line.
105 End of the perform_meas subprogram.

Table of Contents

Other manuals for Agilent Technologies 4156C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 4156C and is the answer not in the manual?

Agilent Technologies 4156C Specifications

General IconGeneral
BrandAgilent Technologies
Model4156C
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals