beautypg.com

Introduction, Command syntax – Measurement Computing TempScan/1100 User Manual

Page 198

background image

A-2 API Command Reference

889897

TempScan / MultiScan User’s Manual

Introduction

Command Syntax

Command Characters

Commands are identified with the following characters:

*0 A single letter (

A

through

Z

)

*1 A single letter (

A

through

Z

) followed by a pound sign (

#

)

*2 An at-sign character (

@

)

*3 An asterisk (

*

) followed by a single letter (

A

through

Z

)

In addition, the commands are governed by the following syntax rules.

Case Sensitivity

Commands may be entered in upper or lower case.

For example,

A1,1X

is interpreted the same as

a1,1X

.

White 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,

1 2 3

is not the same as

123

.

Multiple Parameters

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

For example:

Q4,1,1,0,0X

or

Q 4 1 1 0 0X

is appropriate.

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,"OUTPUT07;C1,1X"
PRINT#1,"OUTPUT07;A1,1X"
PRINT#1,"OUTPUT07;C2,2X"
PRINT#1,"OUTPUT07;A2,2X"

have the same effect as the single line:

PRINT#1,"OUTPUT07; C1,1 A1,1 C2,2 A2,2 X"

Execute Command

Deferred commands are interpreted and processed in the Acquisition Buffer as they are received, but they
require the Execute (

X

) 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 (

X

) command. Any

number of Execute (

X

) commands may be inserted into the same command string. However, immediate

commands do not require an Execute (

X

) command to be processed. For more detail on these command

types, see section Command Interpretation next in this chapter.

For example, to clear the SRQ Mask and then set it for SRQ on Trigger Event:

PRINT#1, OUTPUT10; "M000 X M002 X"

To configure Channels 1 through 32 for temperature and Channels 33 through 64 for volts, using one
command string:

PRINT#1,"OUTPUT07;C1-32,1 C33-64,11 X"

This manual is related to the following products: