Agilent Technologies B1500A Service Manual Page 235

  • Download
  • Add to my manuals
  • Print
  • Page
    / 598
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 234
Agilent B1500A/B1505A Programming Guide, Edition 11 3-57
Programming Examples
Sampling Measurements
Table 3-16 explains example subprogram that performs linear sampling
measurement. This example measures current that flows to resistors R1 and R2, and
then calculates the resistance.
Table 3-16 Sampling Measurement Example
Sub perform_meas(ByVal session As IMessage, ByVal t() As Integer) ’1
Dim i As Integer = 0 ’t(0): Low1
Dim j As Integer = 0 ’t(1): High1
Dim nop1 As Integer = 30 ’t(2): High2
Dim nop2 As Integer = 1 ’t(3): Low2
Dim data(nop2 - 1, nop1 - 1) As String
Dim value As String = "Index, I1 (mA), R1 (ohm), St1, I2 (mA), R2 (ohm), St2"
Dim fname As String = "C:\Agilent\prog_ex\data17.txt"
Dim title As String = "Sampling Measurement Result"
Dim msg As String = "No error."
Dim err As Integer = 0
Dim base As Double = 0 ’13
Dim bias As Double = 0.1
Dim icomp As Double = 0.1
Dim vlout As Double = 0
Dim ilcomp As Double = 0.1
Dim base_h As Double = 0
Dim bias_h As Double = 0.1
Dim interval As Double = 0.05
Dim mch() As Integer = {t(1), t(2), 0}
Dim range() As Double = {0, 0}
Dim rep As Integer = nop1
Dim mret As String ’24
Dim id(nop1) As Double
Dim d1(nop1) As Double
Dim d2(nop1) As Double
Dim r1(nop1) As Double
Dim r2(nop1) As Double
Dim s1(nop1) As String
Dim s2(nop1) As String ’31
session.WriteString("FMT 1,1" & vbLf) ’ASCII, <CRLF EOI>, w/sweep source data
session.WriteString("FL 1" & vbLf) ’sets filter on
Line Description
2 to 11 Declares variables used through the project. And sets the proper values.
13 to 23 Declares variables used to set the source output, and sets the value.
24 to 31 Declares variables used to read the measurement data.
33 Sets the data output format. The source output data will be also returned.
34 Sets the SMU filter on.
Page view 234
1 2 ... 230 231 232 233 234 235 236 237 238 239 240 ... 597 598

Comments to this Manuals

No comments