Scpi Command Structure; Syntax For Common Commands - R&S SMB100A Operating Manual

Rf and microwave signal generator
Hide thumbs Also See for SMB100A:
Table of Contents

Advertisement

®
R&S
SMB100A
}
}catch( const string errorString )
{
cout<<errorString<<endl;
}
client.disconnect( );
return errorCode;
}

6.3 SCPI Command Structure

SCPI commands consist of a so-called header and, in most cases, one or more param-
eters. The header and the parameters are separated by a "white space" (ASCII code 0
to 9, 11 to 32 decimal, e.g. blank). The headers may consist of several mnemonics
(keywords). Queries are formed by appending a question mark directly to the header.
The commands can be either device-specific or device-independent (common com-
mands). Common and device-specific commands differ in their syntax.

6.3.1 Syntax for Common Commands

Common (=device-independent) commands consist of a header preceded by an aster-
isk (*) and possibly one or more parameters.
Examples:
*RST
*ESE
*ESR?
*IDN?
Operating Manual 1407.0806.32 ─ 21
if( qPos > 0 )
{
string rcStr = "";
client.receive( rcStr );
cout << rcStr << endl;
}
}
if( useSingleCommand )
{
terminate = true;
}
RESET
EVENT STATUS ENABLE
EVENT STATUS QUERY
IDENTIFICATION QUERY
Remote Control Basics
SCPI Command Structure
Resets the instrument.
Sets the bits of the event status enable
registers.
Queries the contents of the event status
register.
Queries the instrument identification
string.
258

Advertisement

Table of Contents
loading

Table of Contents