Agilent Technologies B1500A User's Guide Page 178

  • Download
  • Add to my manuals
  • Print
  • Page
    / 208
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 177
4-22 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for C++ Users
Staircase Sweep Measurement
Measurement
Result Example
Vg (V), Id (mA), Time (sec), Status
0.00, -0.000117, 0.071900, 0
0.30, 2.337500, 0.090900, 0
0.60, 4.930500, 0.092500, 0
0.90, 7.764500, 0.094100, 0
1.20, 10.812500, 0.095800, 0
1.50, 14.050000, 0.099300, 0
1.80, 17.475000, 0.100500, 0
2.10, 21.050000, 0.102100, 0
2.40, 24.765000, 0.103600, 0
2.70, 28.600000, 0.105200, 0
3.00, 32.560000, 0.106500, 0
FILE *stream; /* 66 */
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, %9.6f, %8.6f, %d\n", sc[i], md[i] * 1000, tm[i],
st[i]);
}
printf( "%s%c", msg2, c );
}
if( fclose( stream ) ){
printf( "Data file was not closed\n" );
} /* 82 */
}
Line Description
66 to 82 Saves the measurement results into a CSV file specified by the f_name variable.
83 End of the perform_meas subprogram.
Page view 177
1 2 ... 173 174 175 176 177 178 179 180 181 182 183 ... 207 208

Comments to this Manuals

No comments