Table 3-15
session.WriteString("VAR0,0," & t(0) & vbLf) '%I0=t(0)
session.WriteString("VAR0,1," & t(1) & vbLf) '%I1=t(1)
session.WriteString("VAR0,2," & t(2) & vbLf) '%I2=t(2)
session.WriteString("VAR0,3," & t(3) & vbLf) '%I3=t(3)
session.WriteString("VAR0,4,0" & vbLf)
session.WriteString("VAR0,5,0" & vbLf)
session.WriteString("VAR1,0,1" & vbLf)
session.WriteString("VAR1,1,0.8" & vbLf)
session.WriteString("VAR1,2,0.1" & vbLf)
session.WriteString("VAR1,3,0.05" & vbLf)
session.WriteString("VAR1,4,0" & vbLf)
session.WriteString("VAR1,5,0.1" & vbLf)
session.WriteString("VAR1,6,0.01" & vbLf)
session.WriteString("VAR1,7,0.02" & vbLf)
Dim mem As Integer = 1
session.WriteString("ST" & mem & vbLf)
session.WriteString("DV %I3,0,0,0.1" & vbLf)
session.WriteString("DV %I2,0,0,0.1" & vbLf)
session.WriteString("DV %I1,%I5,%R1,%R3" & vbLf)
session.WriteString("DV %I0,%I5,%R0,%R2" & vbLf)
session.WriteString("TI %I0,%I4" & vbLf)
session.WriteString("END" & vbLf)
display_mem(session, mem)
mem = 2
session.WriteString("ST" & mem & vbLf)
session.WriteString("PT %R5,%R6,%R7" & vbLf)
session.WriteString("DV %I3,0,0,0.1" & vbLf)
session.WriteString("DV %I2,0,0,0.1" & vbLf)
session.WriteString("PV %I1,%I5,%R4,%R1,%R3" & vbLf)
session.WriteString("DV %I0,%I5,%R0,%R2" & vbLf)
session.WriteString("MM3,%I0" & vbLf)
session.WriteString("RI %I0,%I4" & vbLf)
session.WriteString("XE" & vbLf)
session.WriteString("END" & vbLf)
display_mem(session, mem)
Line
1 to 14
Declares variables used to set measurement conditions and sets the value. To run the
program, replace the code with the lines 12 to 15 of the program shown in
16 to 24
Stores program in the internal memory 1, and displays it on the console window. To run
the program, replace the code with the lines 17 to 25 of the program shown in
3-14.
26 to 37
Stores program in the internal memory 2, and displays it on the console window. To run
the program, replace the code with the lines 27 to 38 of the program shown in
3-14.
Programming Examples
Using Program Memory
Program Memory Programming Example 2
3- 54
Keysight E5260/E5270 Programming Guide, Edition 4
'%I4=mrng
'%I5=orng
'%R0=vd
'%R1=vg
'%R2=idcomp
'%R3=igcomp
'%R4=v0
'%R5=hold
'%R6=width
'%R7=period
Description
'1
'16
'26
'37
Table
3-14.
Table
Table