Kfpmul - 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, logres;
.
.
measv(SMU1, &res1);/* Measure SMU1; store in res1. */
kfplog(&res1, &logres);/* Convert res1 to a natural */
/* LOG and store in logres. */
.
This example calculates the natural logarithm of a real number (res1). The result is stored in logres.
Also see
None

kfpmul

This command multiplies two real numbers and stores the result as a specified variable.
Usage
int kfpmul(double *x, double *y, double *z);
x
y
z
Details
The value referenced by x is multiplied by the value referenced by y, and 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, 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. */
.
.
This example multiplies variables res1 and res2. The result is stored in the variable pwr2.
Also see
None
13-54
A variable containing the multiplicand
A variable containing the multiplier
The 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