Agilent Technologies B1500A Manual de servicio Pagina 229

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 598
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 228
Agilent B1500A/B1505A Programming Guide, Edition 11 3-51
Programming Examples
Multi Channel Pulsed Spot Measurements
Measurement
Result Example
Id (uA), Stat, Time (msec),Ig (uA), Stat, Time (msec)
45, NEI, 160.44, 0, NDI, 160.44
Data save completed.
Do you want to perform measurement again?
session.WriteString("ERR? 1" & vbLf) : err = session.ReadString(4 + 2) ’38
If err <> 0 Then session.WriteString("DZ" & vbLf) : GoTo Check_err
session.WriteString("TSR" & vbLf)
session.WriteString("XE" & vbLf)
Dim mret As String = session.ReadString(16 + 16) ’data+comma+data+comma
Dim mret1 As String = session.ReadString(16 + 17) ’data+comma+data+terminator
Dim mtime As Double = Val(Mid(mret, 4, 12))
Dim status As String = Mid(mret, 17, 3)
Dim meas As Double = Val(Mid(mret, 20, 12))
Dim mtime1 As Double = Val(Mid(mret1, 4, 12))
Dim status1 As String = Mid(mret1, 17, 3)
Dim meas1 As Double = Val(Mid(mret1, 20, 12))
data(j, i) = Chr(13) & Chr(10) & meas * 1000000 & ", " & status & ", " & mtime
* 1000 & ", " & meas1 * 1000000 & ", " & status1 & ", " & mtime1 * 1000
session.WriteString("DZ" & vbLf) ’54
save_data(fname, title, value, data, nop1, nop2, session, t)
Exit Sub
Check_err: ’58
session.WriteString("EMG? " & err & vbLf) : msg = session.ReadString(256)
MsgBox("Instrument error: " & err & Chr(10) & msg, vbOKOnly, "")
End Sub
Line Description
38 to 39 Checks if an error occurred. If an error is detected, forces 0 V and goes to Check_err.
41 to 52 Resets time stamp and performs measurement. And stores the returned data into the
mret and tret string variables. Finally, stores the measured data into the data array.
54 to 56 Applies 0 V from all channels. And transfers the data stored in the data variable to the
save_data subprogram (see Table 3-1). And the subprogram will save the data into a
CSV file specified by the fname variable and displays the data on a message box.
59 to 60 Displays a message box to show an error message if the error is detected.
Vista de pagina 228
1 2 ... 224 225 226 227 228 229 230 231 232 233 234 ... 597 598

Comentarios a estos manuales

Sin comentarios