Agilent Technologies B1500A Manual de servicio Pagina 288

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 598
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 287
3-110 Agilent B1500A/B1505A Programming Guide, Edition 11
Programming Examples
SPGU Pulse Output and Voltage Measurement
Dim msg As String = "No error." ’34
Dim err As Integer = 0
session.WriteString("CN " & sp_ch(0) & vbLf) ’37
session.WriteString("SIM 0" & vbLf) ’ PG mode
session.WriteString("SPRM 2," & duration & vbLf) ’ Duration mode
session.WriteString("ODSW " & sp_ch(0) & ", 0" & vbLf) ’ Disables pulse switch
session.WriteString("SPPER " & period & vbLf) ’ Pulse period
session.WriteString("SPM " & sp_ch(0) & ",1" & vbLf) ’ 2-level pulse setup
session.WriteString("SPT " & sp_ch(0) & ",1," & p1_del & "," & p1_wid & "," &
p_lead & "," & p_trail & vbLf)
session.WriteString("SPV " & sp_ch(0) & ",1," & p1_base & "," & p1_peak & vbLf)
session.WriteString("SPUPD" & sp_ch(0) & vbLf) ’ Apply setup ’45
session.WriteString("ERRX? 0" & vbLf) : msg = session.ReadString() : err =
Val(Left(msg, 2))
If err <> 0 Then session.WriteString("DZ" & vbLf) : GoTo Check_err
Console.Write("Completed." & Chr(10) & Chr(10)) ’48
session.WriteString("CORRSER? " & sp_ch(0) & ", 1," & delay & "," & interval & ","
& count & vbLf)
rval = session.ReadString()
Console.WriteLine("Before compensation: LoadZ, TermV = " & rval)
session.WriteString("CORRSER? " & sp_ch(0) & ", 1," & delay & "," & interval & ","
& count & vbLf)
rval = session.ReadString()
Console.WriteLine("After compensation: LoadZ, TermV = " & rval)
session.WriteString("SRP" & vbLf) ’ Start pulse output ’56
Console.Write("SPGU output in progress")
Spgu_stat:
Console.Write(".")
session.WriteString("SPST?" & vbLf) : p_stat = session.ReadString()
If p_stat = 1 Then GoTo Spgu_stat ’62
Line Description
34 to 35 Declares variables used for error check.
37 Enables the SPGU channels specified by sp_ch(0).
38 to 45 Defines the channel setup and applies them to the channel specified by sp_ch(0). The
channels start the pulse base output.
46 to 47 Reads error buffer. If an error is detected, changes the channel output to 0 V and goes to
Check_err.
50 to 55 Measures the terminal voltage, calculates the impedance, sets it to the channel specified
by sp_ch(0), and displays the voltage and impedance. This is performed twice.
56 to 62 Starts the SPGU pulse output and checks the SPGU pulse output status. And waits for
the end status.
Vista de pagina 287
1 2 ... 283 284 285 286 287 288 289 290 291 292 293 ... 597 598

Comentarios a estos manuales

Sin comentarios