Kfpneg - Keithley 4200A-SCS Reference Manual

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

Advertisement

Model 4200A-SCS Parameter Analyzer Reference Manual

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
z
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
4200A-901-01 Rev. C / February 2017
A variable containing the number to be converted
A variable where the result of -x is stored
Section 13: LPT library function reference
13-55

Advertisement

Table of Contents
loading

Table of Contents