Agilent Technologies B1500A User's Guide Page 181

  • Download
  • Add to my manuals
  • Print
  • Page
    / 208
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 180
Agilent B1500 VXIplug&play Driver Users Guide, Edition 3 4-25
Programming Examples for C++ Users
Multi Channel Sweep Measurement
Measurement
Result Example
Vb (V), Ic (mA), Ib (mA), hfe, Tc (sec), Tb (sec), Status_c, Status_b
0.30, 0.00000083, -0.00000001, -59.41935484, 0.093200, 0.127000, 0, 0
0.35, 0.00000557, 0.00000005, 123.29646018, 0.168700, 0.197800, 0, 0
0.40, 0.00003837, 0.00000032, 119.64452760, 0.286700, 0.302100, 0, 0
0.45, 0.00026580, 0.00000190, 140.15291326, 0.354400, 0.355500, 0, 0
0.50, 0.00185550, 0.00001155, 160.64935065, 0.384400, 0.389200, 0, 0
0.55, 0.01274500, 0.00007378, 172.73158501, 0.396900, 0.398000, 0, 0
0.60, 0.08796500, 0.00047225, 186.26786660, 0.405800, 0.407100, 0, 0
0.65, 0.60135000, 0.00303550, 198.10574864, 0.415600, 0.420900, 0, 0
0.70, 3.84650000, 0.01897000, 202.76752768, 0.428700, 0.429800, 0, 0
0.75, 18.79500000, 0.09735000, 193.06625578, 0.433900, 0.435000, 0, 0
0.80, 55.71000000, 0.33300000, 167.29729730, 0.437900, 0.441000, 0, 0
ViInt32 i; /* 64 */
ViInt32 n;
printf(" Vb (V), Ic (mA), Ib (mA)\n");
for (i = 0; i < nop; i++){
printf(" %4.2f, %11.8f, %11.8f\n", sc[i], md[2*i] * 1000, md[2*i+1] * 1000);
}
ViChar f_name[] = "C:\\Agilent\\ex\\data4.txt"; /* 71 */
ViChar head1[] = "Vb (V), Ic (mA), Ib (mA), hfe, Tc (sec), Tb (sec), Status_c,
Status_b";
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, "%4.2f, %11.8f, %11.8f, %12.8f, %8.6f, %8.6f, %d, %d\n",
sc[i], md[2*i] * 1000, md[2*i+1] * 1000, md[2*i]/md[2*i+1], tm[2*i], tm[2*i+1],
st[2*i], st[2*i+1]);
}
printf( "%s%c", msg2, c );
}
if( fclose( stream ) ){
printf( "Data file was not closed\n" );
}
} /* 93 */
Line Description
64 to 69 Displays the measurement result data.
71 to 92 Saves the measurement results into a CSV file specified by the f_name variable.
93 End of the perform_meas subprogram.
Page view 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 207 208

Comments to this Manuals

No comments