Keithley 4200-SCS Reference Manual page 638

Semiconductor characterization system
Hide thumbs Also See for 4200-SCS:
Table of Contents

Advertisement

Section 8: Keithley User Library Tool (KULT)
Example
Keithley floating point subtract
kfpsub
Purpose
Format
Remarks
Example
Keithley GPIB command
kibcmd
Purpose
Format
8-122
If x points to a negative number, a square root of negative number error will be
generated, and the result will be NaN (not a number).
This example converts a real number (res1) into its square root. The result is stored in
sqres2.
double res1, sqres2;
.
.
measv(SMU1, &res1);/* Measure SMU1; store result */
./* in res1. */
kfpsqrt(&res1, &sqres2);/* Find square root of res1; */
/* return result to sqres2. */
.
Subtracts two real numbers and stores their difference in a specified variable.
int kfpsub(double *x, double *y, double *z);
A variable containing the minuend.
x
A variable containing the subtrahend.
y
The variable where the result of x - y will be stored.
z
The value referenced by y will be subtracted from the value referenced by x, and the
result will be stored in the location pointed to by z. If an overflow occurs, the result will
be ±Inf. If an underflow occurs, the result will be zero (0).
This example subtracts res2 from res1. The result is returned to diff2.
double res1, res2, diff2;
.
.
measv(SMU1, &res1);/* Measure SMU1; store result */
/* in res1. */
measv(SMU2, &res2);/* Measure SMU2; store result */
/* in res2. */
kfpsub(&res1, &res2, &diff2);/* Subtract res2 from res1; */
./* return the place with */
/* result to diff2. */
.
Enables universal, addressed, and unaddressed GPIB bus commands to be sent
through the GPIB interface. These commands can consist of any command that is valid
with the ATN line asserted, such as DCL,SDC,GET, and so on. The following table lists
these GPIB commands.
int kibcmd(unsigned int timeout, unsigned int numbytes, char*
cmdbuffer);
The timeout for transfer (in 100 ms ticks).
timeout
Return to
Section Topics
Model 4200-SCS Reference Manual
4200-901-01 Rev. S / May 2017

Advertisement

Table of Contents
loading

Table of Contents