3- 44
Keysight E5260/E5270 Programming Guide, Edition 4
Programming Examples
Binary Search Measurements
A program example of a binary search measurement is shown below. This example
measures the MOSFET threshold voltage.
Table 3-12
Binary Search Measurement Example
Sub perform_meas(ByVal session As IMessage, ByVal t() As Integer) ’1
Dim i As Integer = 0 ’t(0): Drain
Dim j As Integer = 0 ’t(1): Gate
Dim nop1 As Integer = 1 ’t(2): Source
Dim nop2 As Integer = 1 ’t(3): Substrate
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 ’13
Dim vd2 As Double = 3
Dim idcomp As Double = 0.01
Dim igcomp As Double = 0.01
Dim orng As Integer = 12 ’12: 20 V limited auto ranging
Dim mrng As Integer = 13 ’13: 100 nA limited auto ranging
Dim hold As Double = 0
Dim delay As Double = 0
Dim mode As Integer = 0 ’ 0: limit, 1: repeat
Dim judge As Double = 0.000001 ’ limit value in A
Dim tgt As Double = 0.001 ’ target current
Dim posneg As Integer = 1 ’ 1: positive
Dim offset As Double = 0 ’ offset voltage
session.WriteString("FMT 1" & vbLf) ’27
session.WriteString("MM 15" & vbLf) ’binary search measurement
session.WriteString("BSM 1,1" & vbLf) ’cautious mode, abort off
session.WriteString("BSVM 1" & vbLf) ’returns search data and sense data
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
Description
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.
Summary of Contents for E5260 Series
Page 1: ...Keysight Technologies E5260 E5270 Series of Parametric Measurement Solutions Programming Guide...
Page 3: ...User s Guide B2900 9001x xxxx 201x Edition x...
Page 13: ...1 Programming Basics...
Page 63: ...2 Remote Mode Functions...
Page 108: ...2 46 Keysight E5260 E5270 Programming Guide Edition 4 Remote Mode Functions Initial Settings...
Page 109: ...3 Programming Examples...
Page 185: ...4 Command Reference...
Page 335: ...5 Error Messages...
Page 349: ......