Communication
Commands
10-9
IM 755601-01E
10
Using the :COMMunicate:WAIT command
:
CMD$ =
"
STOR:COUN 200
"
'
............(1)
CALL IBWRT(M7556%, CMD$)
CMD$ =
"
STOR ON
"
'
............(2)
CALL IBWRT(M7556%, CMD$)
'
CMD$ =
"
STAT:FILT10 FALL
"
'
............(3)
CALL IBWRT(M7556%, CMD$)
CMD$ =
"
STAT:EESR?
"
'
............(4)
CALL IBWRT(M7556%, CMD$)
N$ = SPACE$(8)
CALL IBRD(M7556%, N$)
'
CMD$ =
"
TRIG:MODE EXT
"
'
............(5)
CALL IBWRT(M7556%, CMD$)
CMD$ =
"
MEAS ON
"
'
............(6)
CALL IBWRT(M7556%, CMD$)
CMD$ =
"
COMM:WAIT #H0200
" '
............(7)
CALL IBWRT(M7556%, CMD$)
'
CMD$ =
"
MEAS OFF
"
'
............(8)
CALL IBWRT(M7556%, CMD$)
CMD$ =
"
REC:DATA?
"
'
............(9)
CALL IBWRT(M7556%, CMD$)
:
(1) Store 200 points of measured data.
(2) Enter the store start ready state.
(3) Set the external event register on the falling
edge of bit 9 (STR) of the status register.
(4) Read the extended event register in order to
clear the register.
(5) Set the trigger mode to external trigger.
(6) Switch to the measurement mode.
(7) Wait for bit 9 (STR) of the extended event
register to get set.
(8) Exit from the measurement mode.
(9) Query all the measured data that have been
stored.
10.1.6
Programming of Various
Functions
This section describes the commands that are used for
each function and presents examples showing their use.
Use this section as a reference when you are actually
programming.
The program examples are written in Microsoft
QuickBASIC with AT-GPIB/TNT IEEE488.2 board from
National Instruments.
Resetting the Instrument
Use one of the following commands.
:PANel:INITialize
*RST
Example
CMD$ =
"*
RST
"
CALL IBWRT(M7556%, CMD$)
Switching between the SETUP and measurement
modes
Use the following command.
:MEASure
Example 1
Switch to the SETUP mode to change the
instrument’s settings when making measurements in
the measurement mode.
CMD$ =
"
MEAS OFF
"
CALL IBWRT(M7556%, CMD$)
Example 2
Start measurements in the measurement mode after
the settings have been changed.
CMD$ =
"
MEAS ON
"
CALL IBWRT(M7556%, CMD$)
Selecting the limit mode of the comparator
function
Use the following command.
:LIMit[:MODE]
Example 1
Set the limit mode to deviation (%).
CMD$ =
"
LIM PCNT
"
CALL IBWRT(M7556%, CMD$)
Example 2
Set the limit mode to absolute (R).
CMD$ =
"
LIM OHM
"
CALL IBWRT(M7556%, CMD$)
Note
• Changing the limit mode clears the preexisting reference value
and limit values.
• Select the limit mode before setting the reference value and limit
values.
10.1 Before Programming