
13-16
IM 760401-01E
13.2 Before Programming
Environment
• Model: IBM-compatible PC
• Language: Visual Basic Ver5.0 Professional Edition or later.
• GP-IB board: AT-GPIB/TNT IEEE-488.2 by National Instruments.
Settings on Visual Basic
Standard modules used: Niglobal.bas
Vbib-32.bas
WT210/WT230 Settings
GP-IB address
• The sample programs given in this chapter use a GP-IB address of 1 for the
WT210/WT230.
• Set the GP-IB address to 1 according to the procedures described in section 10.5.
Setting the GP-IB Board
The sample programs in this chapter use the GP-IB serial polling function (ilrsp
function). Turn OFF automatic serial polling (clear the Automatic Serial Polling check
box) to make the sample programs work properly.
Basic Form of Programming
The program data structure of the WT210/WT230 is as follows:
C Par Terminator
ASCII codes are used.
Example
DA
2
CR LF
Command
Parameter
Terminator
Command
Defined by one to three uppercase alphabet characters.
Parameter
Value or character string in ASCII code.
Terminator
• For GP-IB communication
When the WT210/WT230 is a listener, “CR+LF,” “LF,” or “EOI” can be received as
a terminator.
When the WT210/WT230 is a listener, the terminator specified by the DL command
(see page 13-3) is sent.
• For Serial communication
See pages 11-8 and 13-3.
Содержание WT210
Страница 1: ...Digital Power Meter IM 760401 01E 3rd Edition ...
Страница 208: ...13 18 IM 760401 01E 13 3 Sample Program Image ...
Страница 214: ...13 24 IM 760401 01E 13 5 Sample Program Output of Normal Measurement Data ...
Страница 266: ...14 50 IM 760401 01E 14 6 Sample Program Image ...
Страница 272: ...14 56 IM 760401 01E 14 8 Sample Program Output of Normal Measurement Data ...