Agilent Technologies B1500A Service Manual Page 299

  • Download
  • Add to my manuals
  • Print
  • Page
    / 598
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 298
Agilent B1500A/B1505A Programming Guide, Edition 11 3-121
Programming Examples
Using Trigger Function
unit1.WriteString("CL" & vbLf) ’22
unit2.WriteString("CL" & vbLf)
unit1.Close()
unit2.Close()
MsgBox("Click OK to stop the program.", vbOKOnly, "")
Console.WriteLine("Measurement completed." & Chr(10))
End Sub ’28
Sub perform_meas(ByVal unit1 As IMessage, ByVal unit2 As IMessage, ByVal t() As
Integer) ’30
Dim i As Integer = 0 ’t(0): Drain
Dim j As Integer = 0 ’t(1): Gate
Dim nop1 As Integer = 1 ’t(2): Source
Dim nop2 As Integer = 1 ’t(3): Substrate
Dim data(nop2 - 1, nop1 - 1) As String
Dim value As String = "Id (mA), Status"
Dim fname As String = "C:\Agilent\prog_ex\data14.txt"
Dim title As String = "Measurement Result"
Dim msg As String = "No error."
Dim err As Integer = 0
Dim vg As Double = 0.8 : Dim igcomp As Double = 0.05 ’42
Dim vd As Double = 2.5 : Dim vs As Double = 0 : Dim icomp As Double = 0.1
Dim ret As Integer
unit1.WriteString("FMT 1" & vbLf)
unit1.WriteString("TM 1" & vbLf)
unit1.WriteString("AV -1" & vbLf)
unit1.WriteString("MM 1," & t(0) & vbLf)
unit2.WriteString("DV" & t(3) & ",0," & vs & "," & icomp & vbLf)
unit2.WriteString("DV" & t(2) & ",0," & vs & "," & icomp & vbLf)
unit1.WriteString("DV" & t(0) & ",0," & vd & "," & icomp & vbLf)
unit1.WriteString("DV" & t(1) & ",0," & vg & "," & igcomp & vbLf) ’53
Line Description
22 to 28 After the measurement, the program disables all SMUs, closes the connection with Unit1 and
Unit2, and opens a message box to confirm the end of the program. Finally, by clicking OK
on the message box, the program displays a message on the console window.
31 to 40 Declares variables used through the project. And sets the proper values.
42 to 44 Declares variables used to perform measurement, and sets the value.
46 to 49 Sets the data output format, trigger mode, A/D converter, and measurement mode.
50 to 51 Unit2 applies voltage to the source and substrate terminals of a device.
52 to 53 Unit1 applies voltage to the gate and drain terminals of a device.
Page view 298
1 2 ... 294 295 296 297 298 299 300 301 302 303 304 ... 597 598

Comments to this Manuals

No comments