YOKOGAWA wt1600 User Manual page 141

Digital power meter
Hide thumbs Also See for wt1600:
Table of Contents

Advertisement

7.5 Output of Harmonic Measurement Data
End Function
----------------------------------------------------------------------------------------
7-12
If (sts < 0) Then
Call DisplayGPIBError(sts, msg)
GpibHarmonics = 1
Exit Function
End If
'Wait for the completion of the data updating
msg = "COMMUNICATE:WAIT 1" + term
sts = ilwrt(Dev, msg, Len(msg))
If (sts < 0) Then
Call DisplayGPIBError(sts, msg)
GpibHarmonics = 1
Exit Function
End If
Next wait
'Set the numerical data output items
'ASCII format, List-item = U1, Max order = 100
msg = "NUMERIC:FORMAT ASCII" + term
sts = ilwrt(Dev, msg, Len(msg))
If (sts < 0) Then
Call DisplayGPIBError(sts, msg)
GpibHarmonics = 1
Exit Function
End If
msg = "NUMERIC:LIST:ITEM U,1;ORDER 100" + term
sts = ilwrt(Dev, msg, Len(msg))
If (sts < 0) Then
Call DisplayGPIBError(sts, msg)
GpibHarmonics = 1
Exit Function
End If
List1.Clear
'Read out numerical list-data
msg = "NUMERIC:LIST:VALUE?" + term
sts = ilwrt(Dev, msg, Len(msg))
If (sts < 0) Then
Call DisplayGPIBError(sts, msg)
GpibHarmonics = 1
Exit Function
End If
sts = ilrd(Dev, qry, Len(qry))
If (sts < 0) Then
Call DisplayGPIBError(sts, msg)
GpibHarmonics = 1
Exit Function
End If
'Extract items that are separated by commas(,) from the received data
For item = 1 To 102
length = Len(qry)
comma = InStr(qry, ",")
If (comma = 0) Then comma = InStr(qry, term)
Query(item) = Left(qry, comma - 1)
If (item = 1) Then
List1.AddItem "Total" + "
ElseIf (item = 2) Then
List1.AddItem "
ElseIf (item < 12) Then
List1.AddItem "
ElseIf (item < 102) Then
List1.AddItem "
Else
List1.AddItem "
End If
qry = Mid(qry, comma + 1)
List1.ListIndex = List1.ListIndex + 1
Next item
Call ibonl(Dev, 0)
GpibHarmonics = 0
'Send Command
'Send Command
'Send Command
'Receive Query
" + Query(item)
DC" + "
" + Query(item)
" + CStr(item - 2) + "
" + CStr(item - 2) + "
" + CStr(item - 2) + "
'Send Command
" + Query(item)
" + Query(item)
" + Query(item)
IM 760101-11E

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents