Kfpdiv - Keithley 4200A-SCS Reference Manual

Parameter
Hide thumbs Also See for 4200A-SCS:
Table of Contents

Advertisement

Section 13: LPT library function reference
Example
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. */
.
.
This example adds the data in res1 to the data in res2. The result is stored in the resia variable.
Also see
None

kfpdiv

This command divides two real numbers and stores the result in a specified variable.
Usage
int kfpdiv(double *x, double *y, double *z);
x
y
z
Details
The value referenced by x is divided by the value referenced by y. The result is stored in the location
pointed to by z. If an overflow occurs, the result is ±Inf. If an underflow occurs, the result is zero (0).
Example
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. */
.
.
This example divides the data in res1 by the data in res2. The result is stored in the resia variable.
Also see
None
13-52
The dividend
The divisor
A variable where the result of x/y is stored
Model 4200A-SCS Parameter Analyzer Reference Manual
4200A-901-01 Rev. C / February 2017

Advertisement

Table of Contents
loading

Table of Contents