3- 52
Keysight E5260/E5270 Programming Guide, Edition 4
Programming Examples
Using Program Memory
Table 3-14
Program Memory Programming Example 1
Imports Ivi.visa.interop ’1
Module Module1
Sub Main()
Dim E5270 As IResourceManager ’5
Dim session As IMessage
E5270 = New ResourceManager
session = E5270.Open("GPIB0::17::INSTR")
session.WriteString("*RST" & vbLf)
Dim fmt As Integer = 1 : session.WriteString("FMT" & fmt & vbLf)
Dim t() As Integer = {5, 4, 3, 1} ’Drain, Gate, Source, Substrate
Dim v0 As Double = 0 : Dim vd As Double = 1 : Dim idcomp As Double = 0.1 ’12
Dim vg As Double = 0.8 : Dim igcomp As Double = 0.05
Dim orng As Integer = 0 : Dim mrng As Integer = 0 : Dim hold As Double = 0.1
Dim width As Double = 0.01 : Dim period As Double = 0.02
Dim mem As Integer = 1 ’17
session.WriteString("ST" & mem & vbLf)
session.WriteString("DV" & t(3) & ",0,0,0.1" & vbLf)
session.WriteString("DV" & t(2) & ",0,0,0.1" & vbLf)
session.WriteString("DV" & t(1) & "," & orng & "," & vg & "," & igcomp & vbLf)
session.WriteString("DV" & t(0) & "," & orng & "," & vd & "," & idcomp & vbLf)
session.WriteString("TI" & t(0) & "," & mrng & vbLf)
session.WriteString("END" & vbLf)
display_mem(session, mem)
mem = 2 ’27
session.WriteString("ST" & mem & vbLf)
session.WriteString("PT" & hold & "," & width & "," & period & vbLf)
session.WriteString("DV" & t(3) & ",0,0,0.1" & vbLf)
session.WriteString("DV" & t(2) & ",0,0,0.1" & vbLf)
session.WriteString("PV" & t(1) & "," & orng & "," & v0 & "," & vg & "," &
igcomp & vbLf)
session.WriteString("DV" & t(0) & "," & orng & "," & vd & "," & idcomp & vbLf)
session.WriteString("MM3," & t(0) & vbLf)
session.WriteString("RI" & t(0) & "," & mrng & vbLf)
session.WriteString("XE" & vbLf)
session.WriteString("END" & vbLf)
display_mem(session, mem) ’38
Line
Description
1
This line is required to use the VISA COM library.
5 to 11
Establishes the connection with the Keysight E5260/E5270, resets the E5260/E5270,
and sets the data output format. Also declares the SMUs used for measurement.
12 to 15
Declares variables used to set measurement conditions and sets the value.
17 to 25
Stores program in the internal memory 1, and displays it on the console window.
27 to 38
Stores program in the internal memory 2, and displays it on the console window.
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: ......