Command Syntax; Case Sensitivity; Spaces; Multiple Parameters - Omega Engineering OMB-NETSCAN 1500 User Manual

Ethernet/internet-based data logging & control instrument
Table of Contents

Advertisement

API Command Reference

Command Syntax

Commands are identified by the following syntax formats:
A single letter (
A single letter (
An at-sign (
An asterisk (
In addition, the commands are governed by the following syntax rules.

Case Sensitivity

Commands may be entered in upper or lower case.
For example,

Spaces

White space (which consists of all ASCII values of 32 and below, and includes the space, tab, new-line
and carriage-return characters) is generally allowed anywhere between commands and command
arguments. However, white space is not allowed in the middle of command options.
For example,

Multiple Parameters

If more than one parameter is used for a command, they must be separated by a comma or white space.
For example:

Command Strings

Commands may be sent individually or in a string with other commands.
For example, the following four lines of a program:
PRINT#1,"C1,1X"
PRINT#1,"A1,1X"
PRINT#1,"C2,2X"
PRINT#1,"A2,2X"
have the same effect as the single line:
PRINT#1,"C1,1 A1,1 C2,2 A2,2 X"

Execute Command

Deferred commands are interpreted and processed as they are received. They require the Execute (
command to be issued in order to be executed. If multiple system commands are used in the same
string, each use of the command must be followed by the Execute (
commands do not require an Execute command to be processed. For more detail on deferred and
immediate command types, refer to the next section on "Command Interpretation" in this chapter.
For example, to clear the SRQ mask and then set it for SRQ on trigger:
PRINT#1,"M000 X M002 X"
To configure channels 1 through 32 for temperature and 33 through 64 for volts, using one command
string:
PRINT#1,"C1-32, 1C33-64, 11X"
A-2
through
)
A
Z
through
) followed by a pound sign (
A
Z
)
@
) followed by a single letter (
*
is interpreted the same as
A1,1X
is not the same as
1 2 3
or
Q4,1,1,0,0
Q 4 1 1 0 0
)
#
through
)
A
Z
.
a1,1X
.
123
is appropriate.
) command. However, immediate
X
NetScan User's Manual
Appendix A
)
X

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-netscan

Table of Contents