EasyManua.ls Logo

Agilent Technologies 4156C - Page 209

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-27
Programming Examples for C++ Users
Pulsed Sweep Measurements
printf(" Ib (uA), Vc (V), Ic (mA)\n"); /* 63 */
for (j = 0; j < nop2; j++){
n = j * nop1;
for (i = n; i < n + nop1; i++){
printf(" %5.1f, %4.2f, %9.6f \n", dib[j] * 1E6, sc[i], md[i] * 1000);
}
} /* 70 */
FILE *stream; /* 72 */
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, "%5.1f, %4.2f, %9.6f, %d\n", dib[j] * 1E6, sc[i], md[i] *
1000, st[i]);
}
}
printf( "%s%c", msg2, c );
}
if( fclose( stream ) ){
printf( "Data file was not closed\n" );
} /* 91 */
ret = hp4156b_setSwitch(vi, hp4156b_CH_ALL, 0); /* 93 */
check_err (vi, ret);
}
Line Description
63 to 70 Displays the measurement result data.
72 to 91 Saves the measurement results into a file (C:\Agilent\data\data4.txt, CSV file).
93 Disables all ports.
94 Calls the check_err subprogram (shown in Table 5-1) to check if an error status is
returned for the previous line.
96 End of the perform_meas subprogram.

Table of Contents

Other manuals for Agilent Technologies 4156C

Related product manuals