3-54 Agilent B1500A/B1505A Programming Guide, Edition 11
Programming Examples
Multi Channel Pulsed Sweep Measurements
session.WriteString("FMT 1,1" & vbLf)’ASCII,<CRLF EOI>,w/sweep source data ’31
session.WriteString("TSC 1" & vbLf) ’enables time stamp output
session.WriteString("FL 0" & vbLf) ’sets filter off
session.WriteString("AIT 2,3," & mtm & vbLf) ’sets measurement time
session.WriteString("MCPT " & pcom & vbLf)
session.WriteString("MCPNT " & t(1) & b_pt & vbLf)
session.WriteString("MCPNT " & t(2) & c_pt & vbLf)
session.WriteString("MM 28," & t(1) & "," & t(2) & vbLf) ’28: m-ch p-sweep
session.WriteString("CMM" & t(1) & ",1" & vbLf)
session.WriteString("CMM" & t(2) & ",1" & vbLf)
session.WriteString("RI" & t(1) & ",0" & vbLf) ’0: auto range
session.WriteString("RI" & t(2) & ",0" & vbLf)
session.WriteString("WM 2,1" & vbLf) ’stops any abnormal
session.WriteString("ERR? 1" & vbLf) : err = session.ReadString(4 + 2)
If err <> 0 Then session.WriteString("DZ" & vbLf) : GoTo Check_err ’45
session.WriteString("MCPWS 1," & nop1 & vbLf)
session.WriteString("MCPWNX 1," & t(1) & ",1,0,0," & vb1 & "," & vb2 & "," &
ibcomp & vbLf)
session.WriteString("MCPNX 2," & t(2) & ",1,0,0," & vc & "," & iccomp & vbLf)
session.WriteString("DV" & t(0) & ",0,0,0.1" & vbLf) ’out= 0 V, comp= 0.1 A
session.WriteString("TSR" & vbLf)
session.WriteString("XE" & vbLf)
session.WriteString("*OPC?" & vbLf) : session.Timeout = 10000 : rep =
session.ReadString(1 + 2)
session.WriteString("ERR? 1" & vbLf) : err = session.ReadString(4 + 2)
If err <> 0 Then session.WriteString("DZ" & vbLf) : GoTo Check_err
session.WriteString("NUB?" & vbLf) : rep = session.ReadString(3 + 2)
If rep <> nop1 * 5 Then session.WriteString("DZ" & vbLf) : GoTo Check_nop
mret = session.ReadString(16 * 5 * nop1 + 1) ’59
Line Description
31 to 45 Sets the data output format, time data output mode, SMU filter, measurement time,
pulse time parameters, measurement mode, channel measurement mode, and
measurement range. Also sets the automatic sweep abort function. And checks if an
error occurred. If an error is detected, forces 0 V and goes to Check_err.
47 to 53 Sets the pulsed sweep source, sets the pulsed bias source, applies voltage to device,
resets time stamp, and performs measurement.
54 to 57 Waits until the measurement is completed, and checks if an error occurred. If an error is
detected, forces 0 V and goes to Check_err. Also checks number of returned data. If it
is not correct, forces 0 V and goes to Check_nop.
59 Stores the returned data into the mret string variable.
Comments to this Manuals