EasyManua.ls Logo

Agilent Technologies B1500A

Agilent Technologies B1500A
208 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 B1500 VXIplug&play Driver Users Guide, Edition 3 4-31
Programming Examples for C++ Users
Pulsed Sweep Measurement
printf(" Ib (uA), Vc (V), Ic (mA)\n"); /* 64 */
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);
}
} /* 71 */
FILE *stream; /* 73 */
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, %8.6f, %d\n", dib[j] * 1E6, sc[i],
md[i] * 1000, tm[i], st[i]);
}
}
printf( "%s%c", msg2, c );
}
if( fclose( stream ) ){
printf( "Data file was not closed\n" );
} /* 92 */
ret = agb1500_setSwitch(vi, agb1500_CH_ALL, 0); /* 94 */
check_err (vi, ret);
}
Line Description
64 to 71 Displays the measurement result data.
73 to 92 Saves the measurement results into a CSV file specified by the f_name variable.
94 Disables all ports.
95 Calls the check_err subprogram (shown in Table 4-1) to check if an error status is
returned for the previous line.
97 End of the perform_meas subprogram.

Table of Contents

Other manuals for Agilent Technologies B1500A

Related product manuals