3- 62
Keysight E5260/E5270 Programming Guide, Edition 4
Programming Examples
Using Trigger Function
The following program controls two units and performs I-V measurement of
two-terminal devices. Each unit measures a different device and performs one point
measurement alternately at each sweep step. Before running the program, connect a
BNC cable between the following terminals.
•
Unit1’s Ext Trig Out to Unit2’s Ext Trig In
•
Unit2’s Ext Trig Out to Unit1’s Ext Trig In
NOTE
The program needs the example code shown in
(’) at the beginning of the lines 96 and 105 shown in
. And delete the lines
, and insert the code shown in
into there.
Table 3-17
Trigger Programming Example 2
Sub perform_meas(ByVal unit1 As IMessage, ByVal unit2 As IMessage, ByVal t() As
Integer) ’1
Dim i As Integer = 0 ’t(0): Low1
Dim j As Integer = 0 ’t(1): High1
Dim nop1 As Integer = 5 ’t(2): High2
Dim nop2 As Integer = 2 ’t(3): Low2
Dim data(nop2 - 1, nop1 - 1) As String
Dim value As String = "I (mA), Time (msec), Status"
Dim fname As String = "C:\Keysight\prog_ex\data15.txt"
Dim title As String = "Measurement Result"
Dim msg As String = "No error."
Dim err As Integer = 0
Dim v1 As Double = 0.1 : Dim v2 As Double = 0.5 ’12
Dim vs As Double = 0 : Dim icomp As Double = 0.1
Dim ret As Integer
unit1.WriteString("FMT 1" & vbLf)
unit1.WriteString("AV -1" & vbLf)
unit1.WriteString("WT 0, 0.01" & vbLf)
unit1.WriteString("TM 3" & vbLf)
unit1.WriteString("TGP -1, 1, 2, 1" & vbLf)
unit1.WriteString("TGP -2, 2, 2, 3" & vbLf)
unit1.WriteString("TGMO 1" & vbLf) ’21
Line
Description
1 to 11
Declares variables used in the Main of
. And sets the proper values.
12 to 14
Declares variables used to perform measurement, and sets the value.
15 to 17
Unit1 sets the data output format, A/D converter, and sweep delay time.
18 to 19
Unit1 sets the Start Measurement trigger input for the Ext Trig In terminal.
20 to 21
Unit1 sets the Step Measurement Completion trigger output for the Ext Trig Out terminal.
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: ......