Sample Program
7-17
IM 760101-11E
7
7.7
Output of Waveform Data (FLOAT Format)
Y
N
Y
N
Y
N
Y
N
Y
N
Y
N
Y
N
Y
N
Y
N
Y
N
N
Y
Y
N
Y
N
Y
N
Y
N
N
Y
N
Y
GpibWaveAscii()
Initializes GP-IB
GP-IB initialization
successful?
Initializes the WT
Initialization
successful?
Sets the voltage range of element 1 to 100 V
Setting
successful?
Sets the waveform's Time/Div value to 10 ms.
Setting
successful?
Turns ON waveform sampling.
Setting
successful?
Sets the transition filter 1(UPD) to “FALL.”
Setting
successful?
Data updated
2 times on the unit?
Clears the event register
(read and trash the response).
Instructs to wait for WT data update.
Setting
successful?
Sets U1 as the target for waveform trace.
Sets the output format to FLOAT.
Sets the output format to FLOAT.
Setting
successful?
<Continued on top right>
Displays
error message
End (return value = 1)
<Continued from bottom left>
Sets the terminator to NONE.
Setting
successful?
Sets the start and end points for output
of waveform display data (1002 data's worth).
Loads measured values from the WT.
Setting
successful?
Loaded
successfully?
Sets the terminator to LF.
Setting
successful?
1002 data
displayed?
1 data’s
worth (4 bytes)
processed?
Condition A true
(see A below)?
Generates a hexadecimal
display string.
Condition B true
(see B below)?
Generates a hexadecimal
display string.
Generates a hexadecimal
display string.
Generates a hexadecimal
display string for 1 data's
worth of bytes.
A: When a 4-byte data is split into 2 two-byte data, one of the two-byte
data is "0x00??".
B: When a 4-byte data is split into 2 two-byte data, one of the two-byte
data is "0x0???".
<Continues on next page>
Displays
error message
End (return value = 1)
Cuts the GP-IB
connection.
Initializes variables
End (return value = 0)
1
Содержание wt1600
Страница 1: ...Digital Power Meter Communication Interface IM 760101 11E 4th Edition ...
Страница 131: ...7 2 IM 760101 11E 7 2 Sample Program Image ...
Страница 138: ...Sample Program 7 9 IM 760101 11E 7 7 4 Output of Normal Measurement Data ...
Страница 142: ...Sample Program 7 13 IM 760101 11E 7 7 5 Output of Harmonic Measurement Data ...