EasyManua.ls Logo

Agilent Technologies 4156C

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
Loading...
Agilent 4155C/4156C VXIplug&play Driver Users Guide, Edition 4 5-31
Programming Examples for C++ Users
Multi-Channel Pulsed Sweep Measurements
Measurement
Result Example
Ve (V), Ic (mA), Ib (mA)
0.00, 0.00000000, 0.00000000
-0.08, 0.00000000, 0.00000000
-0.16, 0.00000000, 0.00000000
-0.24, 0.00000008, 0.00000000
-0.32, 0.00000169, 0.00000003
-0.40, 0.00003758, 0.00000035
-0.48, 0.00083207, 0.00000569
-0.56, 0.01834160, 0.00010753
-0.64, 0.40003000, 0.00207454
-0.72, 7.24961000, 0.03680280
-0.80, 43.35560000, 0.33661400
printf(" Ve (V), Ic (mA), Ib (mA)\n");
for (i = 0; i < nop; i++){
printf(" %5.2f, %11.8f, %11.8f\n", sc[i], md1[i] * 1000, md2[i] * 1000);
}
ViChar f_name[] = "C:\Agilent\data\data5.txt"; /* 74 */
ViChar head1[] = "Ve (V), Ic (mA), Ib (mA)";
ViChar msg1[] = "Saving data...";
ViChar msg2[] = "Data save completed.";
ViChar c = ’\n’;
FILE *stream;
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 (i = 0; i < nop; i++){
fprintf( stream, "%5.2f, %11.8f, %11.8f\n", sc[i], md1[i] * 1000, md2[i] *
1000);
}
printf( "%s%c", msg2, c );
}
if( fclose( stream ) ){
printf( "Data file was not closed\n" );
}
} /* 96 */
Line Description
67 to 72 Displays the measurement result data.
74 to 95 Saves the measurement results into a file (C:\Agilent\data\data5.txt, CSV file).
96 End of the perform_meas subprogram.

Table of Contents

Other manuals for Agilent Technologies 4156C

Related product manuals