Keithley 4200-SCS Reference Manual page 634

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

Advertisement

Section 8: Keithley User Library Tool (KULT)
Example
.
.
kfpdiv
Keithley floating point divide
Purpose
Format
Remarks
Example
8-118
This example adds the data in res1 to the data in res2. The result is stored in the resia
variable.
double res1, res2, resia;
.
.
measv(SMU1, &res1);/* Measure SMU1 voltage; store */
/* in res1. */
measi(SMU2, &res2);/* Measure SMU2 current; store */
/* in res2. */
kfpadd(&res1, &res2, &resia);/* Adds res1 and res2; return */
/* result to resia. */
Divides two real numbers and stores the result in a specified variable.
int kfpdiv(double *x, double *y, double *z);
The dividend.
x
The divisor.
y
A variable where the result of x/y will be stored.
z
The value referenced by x will be divided 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 divides the data in res1 by the data in res2. The result is stored in the
resia variable.
double res1, res2, resia;
.
.
measv(SMU1, &res1);/* Measure SMU1 voltage; store */
/* in res1. */
measi(SMU2, &res2);/* Measure SMU2 current; store */
/* in res2. */
kfpdiv(&res1, &res2, &resia);/* Divide res1 by res2; return */
/* result to resia. */
.
.
Return to
Section Topics
Model 4200-SCS Reference Manual
4200-901-01 Rev. S / May 2017

Advertisement

Table of Contents
loading

Table of Contents