Keithley 4200-SCS Reference Manual page 636

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

Advertisement

Section 8: Keithley User Library Tool (KULT)
kfpmul
Keithley floating point multiply
Purpose
Format
Remarks
Example
Keithley floating point negative value
kfpneg
Purpose
Format
Remarks
Example
8-120
Multiplies two real numbers and stores the result as a specified variable.
int kfpmul(double *x, double *y, double *z);
A variable containing the multiplicand.
x
A variable containing the multiplier.
y
The variable where the result of x *y will be stored.
z
The value referenced by x will be multiplied by the value referenced by y, 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 multiplies variables res1 and res2 and stores the result in variable pwr2.
double res1, res2, pwr2;
.
.
measi(SMU1, &res1);/* Measure SMU1 current; */
/* store in res1. */
measv(SMU1, &res2);/* Measure SMU1 voltage; */
/* store in res2. */
kfpmul(&res1, &res2, &pwr2);/* Multiply res1 by res2; */
/* return result to pwr2. */
.
.
Changes the sign of a value and stores the result as a specified variable.
int kfpneg(double *x, double *z);
A variable containing the number to be converted.
x
A variable where the result of -x will be stored.
z
If the value is positive, it is converted to a negative; if the value is negative, it is
converted to a positive.
This example changes the sign of a positive voltage reading. forcev outputs a positive
10 V from SMU1. The current is measured with measi, and the result is stored as res4.
kfpneg reads res4 and converts the data to a negative value. res4 is then overwritten
with the converted value.
Return to
Section Topics
Model 4200-SCS Reference Manual
4200-901-01 Rev. S / May 2017

Advertisement

Table of Contents
loading

Table of Contents