Section 3: Test subroutine library reference S530 Parametric Test System Test Subroutine Library User's Manual
3-64 S530-907-01 Rev. A / September 2015
Example
result = vf(hi, lo, sub, itest)
Schematic
vg2
This subroutine measures gate-source voltage (V
GS
) at a specified drain current (I
DS
), drain voltage (V
DS
), and
substrate bias (V
BS
).
Usage
double vg2(int d, int g, int s, int sub, char type, double idspec, double errpct,
double vds, double vbs, double vglo, double vghi, int maxitr, double *idmeas,
int *istat)
The drain pin of the device
The gate pin of the device
The source pin of the device
The substrate pin of the device
Type of transistor: "N" or "P"
Target value of I
DS
, in amperes
Maximum percent error in drain current
The forced drain voltage, in volts
The forced substrate bias, in volts
Start of the gate-source voltage (V
GS
) search, in volts
End of the V
GS
search, in volts
Maximum number of iterations
Final measured I
DS
, in amperes
> 0 = Success, istat is the number of iterations
-1 = type not "N" or "P"
-2 = vglo is vghi
-3 = Maximum iteration count reached
-4 = I
DS
window too small
-5 = maxitr < 0
Measured gate-source voltage, or 0.0 if istat is < 0