
Agilent B1500A/B1505A Programming Guide, Edition 11 3-37
Programming Examples
Quasi Pulsed Spot Measurements
A program example of a spot measurement is shown below. This measures the
breakdown voltage of bipolar transistor.
Table 3-10 Quasi Pulsed Spot Measurement Example
Sub perform_meas(ByVal session As IMessage, ByVal t() As Integer) ’1
Dim i As Integer = 0 ’t(0): Emitter
Dim j As Integer = 0 ’t(1): Base
Dim nop1 As Integer = 1 ’t(2): Collector
Dim nop2 As Integer = 1 ’t(3): not use
Dim data(nop2 - 1, nop1 - 1) As String
Dim value As String = "BVceo (V), Status"
Dim fname As String = "C:\Agilent\prog_ex\data8.txt"
Dim title As String = "Measurement Result"
Dim msg As String = "No error."
Dim err As Integer = 0
Dim vc1 As Double = 0 ’13
Dim vc2 As Double = 100
Dim iccomp As Double = 0.005
Dim hold As Double = 0
Dim delay As Double = 0
Dim interval As Double = 0
Dim mmode As Double = 0
Dim mrng As Integer = 0
session.WriteString("FMT 1" & vbLf) ’22
session.WriteString("CL " & t(1) & "," & t(3) & vbLf)
session.WriteString("MM 9," & t(2) & vbLf) ’9: quasi pulsed spot
session.WriteString("BDT " & hold & "," & delay & vbLf)
session.WriteString("BDM " & interval & "," & mmode & vbLf)
session.WriteString("BDV " & t(2) & "," & mrng & "," & vc1 & "," & vc2 & "," &
iccomp & vbLf)
session.WriteString("ERR? 1" & vbLf) : err = session.ReadString(4 + 2) ’28
If err <> 0 Then session.WriteString("DZ" & vbLf) : GoTo Check_err
session.WriteString("DV " & t(0) & ",0,0,0.1" & vbLf) ’out= 0 V, comp= 0.1 A
session.WriteString("XE" & vbLf)
Line Description
2 to 11 Declares variables used through the project. And sets the proper values.
13 to 20 Declares variables, and sets the value.
22 to 23 Sets the data output format. And disables SMUs assigned to t(1) and t(3) that are not
needed.
24 to 27 Sets the measurement mode, measurement timing parameters, measurement
conditions, and source output conditions.
28 to 29 Checks if an error occurred. If an error is detected, forces 0 V and goes to Check_err.
30 to 31 Applies voltage to device, and performs the quasi pulsed spot measurement.
Commentaires sur ces manuels