Agilent Technologies B1500A Service Manual Page 292

  • Download
  • Add to my manuals
  • Print
  • Page
    / 598
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 291
3-114 Agilent B1500A/B1505A Programming Guide, Edition 11
Programming Examples
Using Program Memory
Table 3-29 Program Memory Programming Example 1
Imports Ivi.visa.interop ’1
Module Module1
Sub Main()
Dim B1500 As IResourceManager ’5
Dim session As IMessage
B1500 = New ResourceManager
session = B1500.Open("GPIB0::17::INSTR")
session.WriteString("*RST" & vbLf)
Dim fmt As Integer = 1 : session.WriteString("FMT" & fmt & vbLf)
Dim t() As Integer = {5, 4, 3, 1} ’Drain, Gate, Source, Substrate
Dim v0 As Double = 0 : Dim vd As Double = 1 : Dim idcomp As Double = 0.1 ’12
Dim vg As Double = 0.8 : Dim igcomp As Double = 0.05
Dim orng As Integer = 0 : Dim mrng As Integer = 0 : Dim hold As Double = 0.1
Dim width As Double = 0.01 : Dim period As Double = 0.02
Dim mem As Integer = 1 ’17
session.WriteString("ST" & mem & vbLf)
session.WriteString("DV" & t(3) & ",0,0,0.1" & vbLf)
session.WriteString("DV" & t(2) & ",0,0,0.1" & vbLf)
session.WriteString("DV" & t(1) & "," & orng & "," & vg & "," & igcomp & vbLf)
session.WriteString("DV" & t(0) & "," & orng & "," & vd & "," & idcomp & vbLf)
session.WriteString("TI" & t(0) & "," & mrng & vbLf)
session.WriteString("END" & vbLf)
display_mem(session, mem)
mem = 2 ’27
session.WriteString("ST" & mem & vbLf)
session.WriteString("PT" & hold & "," & width & "," & period & vbLf)
session.WriteString("DV" & t(3) & ",0,0,0.1" & vbLf)
session.WriteString("DV" & t(2) & ",0,0,0.1" & vbLf)
session.WriteString("PV" & t(1) & "," & orng & "," & v0 & "," & vg & "," &
igcomp & vbLf)
session.WriteString("DV" & t(0) & "," & orng & "," & vd & "," & idcomp & vbLf)
session.WriteString("MM3," & t(0) & vbLf)
session.WriteString("RI" & t(0) & "," & mrng & vbLf)
session.WriteString("XE" & vbLf)
session.WriteString("END" & vbLf)
display_mem(session, mem) ’38
Line Description
1 This line is required to use the VISA COM library.
5 to 11 Establishes the connection with the Agilent B1500, resets the B1500, and sets the data
output format. Also declares the SMUs used for measurement.
12 to 15 Declares variables used to set measurement conditions and sets the value.
17 to 25 Stores program in the internal memory 1, and displays it on the console window.
27 to 38 Stores program in the internal memory 2, and displays it on the console window.
Page view 291
1 2 ... 287 288 289 290 291 292 293 294 295 296 297 ... 597 598

Comments to this Manuals

No comments