Agilent Technologies B1500A Service Manual Page 274

  • Download
  • Add to my manuals
  • Print
  • Page
    / 598
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 273
3-96 Agilent B1500A/B1505A Programming Guide, Edition 11
Programming Examples
C-f Sweep Measurements
The following program performs a capacitance vs frequency sweep measurement.
This example uses the multi frequency capacitance measurement unit (MFCMU)
and the SMU/CMU unify unit (SCUU).
Before performing the capacitance (impedance) measurement, you need to perform
the phase compensation and data correction. See “Data Correction” on page 3-71.
Table 3-25 C-f Sweep Measurement Example
Sub perform_meas(ByVal session As IMessage, ByVal t() As Integer) ’1
Dim i As Integer = 0 ’t(0): Drain
Dim j As Integer = 0 ’t(1): Gate
Dim nop1 As Integer = 10 ’t(2): Source
Dim nop2 As Integer = 1 ’t(3): Substrate
Dim data(nop2 - 1, nop1 - 1) As String
Dim value As String = "Freq (MHz), Cp (pF), C_st, G (uS), G_st, OSC (mV), Osc_st,
DC (V), Dc_st, Time (s)"
Dim fname As String = "C:\Agilent\prog_ex\data25.txt"
Dim title As String = "C-f Sweep Measurement Result"
Dim msg As String = "No error."
Dim err As Integer = 0
Dim freq As Double = 1000000 ’13
Dim ref_cp As Double = 0
Dim ref_g As Double = 0
Dim osc_level As Double = 0.03
Dim dc_bias As Double = 5
Dim f1 As Double = 500000.0
Dim f2 As Double = 5000000.0
Dim hold As Double = 0
Dim delay As Double = 0
Dim s_delay As Double = 0
Dim range As Integer = 0
Dim rep As Integer = nop1
Dim sc(nop1) As Double
Dim md(nop1 * 2) As Double
Dim st(nop1 * 2) As String
Dim mon(nop1 * 2) As Double
Dim st_mon(nop1 * 2) As String
Dim tm(nop1) As Double
session.Timeout = 120000 ’B1500 timeout = 120 seconds ’32
session.WriteString("FMT 1,1" & vbLf)
session.WriteString("TSC 1" & vbLf) ’enables time stamp output
Line Description
2 to 11 Declares variables used through the project. And sets the proper values.
13 to 30 Declares variables and sets the value.
32 to 34 Sets the B1500A timeout and the data output format (data with source data). And
enables the time stamp output.
Page view 273
1 2 ... 269 270 271 272 273 274 275 276 277 278 279 ... 597 598

Comments to this Manuals

No comments