
13-26
IM 760401-01E
GPIBError:
Call DisplayGPIBError(sts, msg)
GpibHarmonics = 1
Exit Function
Readdata:
sts = ilrsp(Dev, spr) 'Serial Poll
If (sts < 0) Then
GoTo GPIBError
End If
If ((spr And &H41) <> &H41) Then
cnt = cnt - 1
Return
End If
'Read out numerical data till END
msg = "OD" + term
sts = ilwrt(Dev, msg, Len(msg))
If (sts < 0) Then
GoTo GPIBError
End If
List1.AddItem "Measurement - " + CStr(cnt)
List1.ListIndex = List1.Lis 1
Do While qrytemp <> "END"
qrytemp = Space$(200)
sts = ilrd(Dev, qrytemp, Len(qrytemp))
If (sts < 0) Then
GoTo GPIBError
End If
qrytemp = Left(qrytemp, InStr(qrytemp, term) - 2)
If (qrytemp = "END") Then
Exit Do
End If
List1.AddItem qrytemp
List1.ListIndex = List1.Lis 1
Loop
Dummy = DoEvents()
qrytemp = Space$(200)
List1.AddItem ""
List1.ListIndex = List1.Lis 1
Return
End Function
---------------------------------------------------------------------------------------------------
13.6 Sample Program (Output of Harmonic Measurement Data)
Summary of Contents for WT210
Page 1: ...Digital Power Meter IM 760401 01E 3rd Edition ...
Page 208: ...13 18 IM 760401 01E 13 3 Sample Program Image ...
Page 214: ...13 24 IM 760401 01E 13 5 Sample Program Output of Normal Measurement Data ...
Page 266: ...14 50 IM 760401 01E 14 6 Sample Program Image ...
Page 272: ...14 56 IM 760401 01E 14 8 Sample Program Output of Normal Measurement Data ...