Agilent Technologies B1500A Service Manual Page 241

  • Download
  • Add to my manuals
  • Print
  • Page
    / 598
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 240
Agilent B1500A/B1505A Programming Guide, Edition 11 3-63
Programming Examples
Quasi-static CV Measurements
session.Timeout = 60000 ’timeout = 60 seconds ’36
session.WriteString("FMT 1,1" & vbLf)
session.WriteString("TSC 1" & vbLf) ’enables time stamp output
session.WriteString("MM 13," & t(1) & vbLf) ’QSCV measurement 41
session.WriteString("QSC 0" & vbLf) ’Normal QSCV operation
session.WriteString("QSL 1,1" & vbLf) ’Ileak DataOn, CompenOn
session.WriteString("QSM 2,1" & vbLf) ’AbortOn, StartValue
session.WriteString("QSR " & range & vbLf)
session.WriteString("QST " & cinteg & "," & linteg & "," & hold & "," & delay1 &
"," & delay2 & vbLf)
session.WriteString("QSV " & t(1) & "," & swp & ",0," & vg1 & "," & vg2 & "," &
cvoltage & "," & gstep & "," & icomp & vbLf)
session.WriteString("ERR? 1" & vbLf) : err = session.ReadString(4 + 2)
If err <> 0 Then session.WriteString("DZ" & vbLf) : GoTo Check_err
session.WriteString("QSZ 0" & vbLf) ’51
Dim rbx As Integer
rbx = MsgBox("Do you want to perform offset cancel?", vbYesNo, "")
If rbx = vbYes Then
MsgBox("Open measurement terminal. Then click OK.", vbOKOnly, "")
Console.WriteLine("Wait a minute . . ." & Chr(10))
session.WriteString("QSZ 2" & vbLf)
session.WriteString("*OPC?" & vbLf) : 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
mret = session.ReadString(16 + 2)
md1(0) = Val(Mid(mret, 4, 12))
Console.WriteLine("Offset data = " & md1(0) * 1000000000000.0 & "pF" & Chr(10))
MsgBox("Offset data = " & md1(0) * 1000000000000.0 & "pF", vbOKOnly, "")
session.WriteString("QSZ 1" & vbLf)
End If ’67
Line Description
38 to 39 Sets the data output format and the time stamp data output mode.
41 to 49 Sets the quasi-static CV measurement condition. And checks if an error occurred. If an
error is detected, forces 0 V and goes to Check_err.
51 Sets the capacitance offset cancel to OFF.
53 to 67 Displays a message box that asks if you perform the offset cancel. If you click Yes, the
program displays a message box that prompts you to open the measurement terminals.
Clicking OK starts the offset measurement. After the measurement, the offset data is
displayed on the console window and the message box. Finally, the capacitance offset
cancel is set to ON.
Page view 240
1 2 ... 236 237 238 239 240 241 242 243 244 245 246 ... 597 598

Comments to this Manuals

No comments