D-1
Appendix D
Appendix
This appendix gives an example of a program that reads measurement data using a PC-9801 personal computer. The
following program lines correspond to those of the PACKET V sample program on page 10-5.
10 ’ ∗∗∗∗∗∗ GPIB initialize ∗∗∗∗∗∗
20 ISET IFC
30 ISET REN
40 CMD DELIM = 2
50 CMD TIMEOUT = 5
60 ’
70 DIM D $ (500)
80 ’
90 ’ ∗∗∗∗∗∗ DATA READ TEST ∗∗∗∗∗∗
100 PRINT @8 ; “DMA?“
110 FOR I = 0 TO 500
120 INPUT @8 ; D $ ( I )
130 PRINT I, D $ ( I )
140 NEXT I
150 ’
160 END
Lines 20 to 50: GPIB initialization
Line 70: Array declaration
Lines 100 to 140: Equivalent to PACKET V sample program
Notes:
• When controlling the MS9710C from the PC-9801 via the GPIB, be sure to initialize the GPIB at the
beginning of the program.
• DBA?, DBB?, DQA?, and DQB? are intended for personal computers that can input/output arrays. If
your personal computer does not have an array input/output function or it does not use an equivalent
program, use DMA? and DMB? commands.
Appendix D Example of Program Used on PC9801