Model 4200A-SCS Parameter Analyzer Reference Manual
Section 13: LPT library function reference
4200A-901-01 Rev. C / February 2017
13-55
kfpneg
This command changes the sign of a value and stores the result as a specified variable.
Usage
int kfpneg(double *
x
, double *
z
);
x
A variable containing the number to be converted
z
A variable where the result of -
x
is stored
Details
If the value is positive, it is converted to a negative; if the value is negative, it is converted to a
positive.
Example
double res4;
.
.
forcev(SMU1, 10.0);/* Output 10 V from SMU1. */
measi(SMU1, &res4);/* Measure SMU1 current; store */
/* in res4. */
kfpneg(&res4, &res4);/* Convert sign of res4; */
./* return results to res4. */
.
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.
Also see
None