Agilent Technologies B1500A Service Manual Page 295

  • Download
  • Add to my manuals
  • Print
  • Page
    / 598
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 294
Agilent B1500A/B1505A Programming Guide, Edition 11 3-117
Programming Examples
Using Program Memory
Measurement
Result Example
Memory 1: Id = 0.021955 (A), Status = NAI
Memory 2: Id = 0.021975 (A), Status = NAI
Memory 1: Id = 0.023085 (A), Status = NAI
Memory 2: Id = 0.023335 (A), Status = NAI
Press any key to continue
’changes vd and vg and performs measurement again ’39
session.WriteString("VAR1,0,3" & vbLf) ’%R0=vd
For i = 1 To 2
session.WriteString("DO" & i & vbLf)
session.WriteString("*OPC?" & vbLf) : ret = session.ReadString(1 + 2)
session.WriteString("ERR? 1" & vbLf) : ret = session.ReadString(4 + 2)
If ret <> 0 Then session.WriteString("DZ" & vbLf) : GoTo Check_err
value = session.ReadString(17) : status = Left(value, 3)
value = Mid(value, 4, 12) : meas = Val(value)
Console.WriteLine("Memory " & i & ": Id = " & meas & " (A), Status = " & status &
Chr(10))
Next ’49
Line Description
39 to 49 Changes the value of the internal variable %R0, and performs measurement again. Can
be inserted between line 52 and line 53 of the program shown in Table 3-29.
Page view 294
1 2 ... 290 291 292 293 294 295 296 297 298 299 300 ... 597 598

Comments to this Manuals

No comments