4-3
IM DLM4038-17EN
Programming Overview
1
2
3
4
5
6
App
Index
When Concatenating Commands
• Command Groups
A command group is a group of commands that
have common compound headers arranged in a
hierarchy. A command group may contain sub-
groups.
Example Group of commands related to acquisition
:ACQuire:AVERage:COUNt
:ACQuire:MODE
:ACQuire:RLENgth
:ACQuire:INTERLeave
• When Concatenating Commands of the Same
Group
The DLM4000 stores the hierarchical level of the
command that is currently being executed and
processes the next command on the assumption
that it belongs to the same level. Therefore,
the common header section can be omitted for
commands that belong to the same group.
Example
:ACQuire:MODE NORMal;
INTERLeave 1<PMT>
• When Concatenating Commands of Different
Groups
If the subsequent command does not belong to the
same group, place a colon in front of the header
(cannot be omitted).
Example
:ACQuire:MODE
NORMal;:DISPlay:FORMat
SINGle<PMT>
• When Concatenating Simple Headers
If a simple header follows another command, place
a colon in front of the simple header (cannot be
omitted).
Example
:ACQuire:MODE
NORMal;:STARt<PMT>
• When Concatenating Common Commands
Common commands that are defined in the
USBTMC-USB488 are independent of hierarchy.
There is no need to use a colon.
Example
:ACQuire:MODE NORMal;*CLS;
INTERLeave 1<PMT>
4.2 Commands
Command
There are three types of commands (program headers)
that a controller may send to the DLM4000. The
commands differ in their program header formats.
Common Command Header
Commands that are defined in USBTMC-USB488
are called common commands. The header format
of a common command is shown below. Be sure to
include an asterisk (
*
) at the beginning of a common
command.
*
<Mnemonic>
?
Common command example
*CLS
Compound Header
Other commands that are specific to the DLM4000
are classified and arranged in a hierarchy according
to their functions. The compound header syntax is
shown below. Be sure to use a colon to specify a lower
hierarchical level.
:
<Mnemonic>
?
:
Compound header example
:ACQuire:MODE
Simple Header
These commands are functionally independent and are
not contained within a hierarchy. The format of a simple
header is shown below.
<Mnemonic>
?
:
Simple header example
:STARt
Note
A <mnemonic> is an alphanumeric character string.