Table 3-12
Sub perform_meas(ByVal session As IMessage, ByVal t() As Integer)
Dim i As Integer = 0
Dim j As Integer = 0
Dim nop1 As Integer = 1
Dim nop2 As Integer = 1
Dim data(nop2 - 1, nop1 - 1) As String
Dim value As String = "Vth (V), Id (mA), Status"
Dim fname As String = "C:\Keysight\prog_ex\data10.txt"
Dim title As String = "Measurement Result"
Dim msg As String = "No error."
Dim err As Integer = 0
Dim vd1 As Double = 0
Dim vd2 As Double = 3
Dim idcomp As Double = 0.01
Dim igcomp As Double = 0.01
Dim orng As Integer = 12
Dim mrng As Integer = 13
Dim hold As Double = 0
Dim delay As Double = 0
Dim mode As Integer = 0
Dim judge As Double = 0.000001
Dim tgt As Double = 0.001
Dim posneg As Integer = 1
Dim offset As Double = 0
session.WriteString("FMT 1" & vbLf)
session.WriteString("MM 15" & vbLf)
session.WriteString("BSM 1,1" & vbLf)
session.WriteString("BSVM 1" & vbLf)
session.WriteString("BST " & hold & "," & delay & vbLf)
session.WriteString("BGI " & t(0) & "," & mode & "," & judge & "," & mrng & ","
& tgt & vbLf)
session.WriteString("BSV " & t(1) & "," & orng & "," & vd1 & "," & vd2 & "," &
idcomp & vbLf)
session.WriteString("BSSV " & t(0) & "," & posneg & "," & offset & "," & igcomp
& vbLf)
Line
2 to 11
Declares variables used through the project. And sets the proper values.
13 to 25
Declares variables, and sets the value.
27 to 28
Sets the data output format and the measurement mode.
29 to 32
Sets the binary search measurement conditions.
33 to 34
Sets the binary search sources, primary source and synchronous source.
Programming Examples
Binary Search Measurements
A program example of a binary search measurement is shown below. This example
measures the MOSFET threshold voltage.
Binary Search Measurement Example
3- 44
Keysight E5260/E5270 Programming Guide, Edition 4
't(0): Drain
't(1): Gate
't(2): Source
't(3): Substrate
'12: 20 V limited auto ranging
'13: 100 nA limited auto ranging
' 0: limit, 1: repeat
' limit value in A
' target current
' 1: positive
' offset voltage
'binary search measurement
'cautious mode, abort off
'returns search data and sense data
Description
'1
'13
'27