1.27 Index _____________________________________________________________ 1
1.1. About Command s & Queri es
This section lists and describes the remote control commands and queries recognized by the
instrument. All commands and queries can be executed in either local or remote state.
The description for each command or query, with syntax and other information, begins on a
new page. The name (header) is given in both long and short form, and the subject is indicated
as a command or query or both. Queries perform actions such as obtaining information, and
are recognized by the questio n mark (?) following the header.
1.3.1 How they are listed
The descriptions are listed in alphabetical order according to their short form.
1.3.2 How they are describe d
In the descriptions themselves, a brief explanation of the fun ction performed is given. This is
followed by a presentation of the formal syntax, with the header given in
Upper-and-Lower-Case characters and the short form derived from it in ALL UPPER-CASE
characters. Where applicable, the syntax of the query is given with the format of its response.
1.3.3 When can they be used?
The commands and queries listed here can be used for 4050 Series arbitrary/function
waveform generators.
1.3.4 Command Notation
The following notation is used in the commands:
< > Angular brackets enclose words that are used
placeholders, of which there are two types: the header path
and the data parameter of a command.
:= A colon followed by an equals sign separates a placeholder
from the description of the type and range of values that
may be used in a command instead of the placeholder.
{ } Braces enclose a list of choices, one of which one must be
made.
[ ] Square brackets enclose optional items.
… An ellipsis indicates that the items both to its left and right
may be repeated a number of times.
1
2
1.2. Table of Com mands & Que ries
Subsystem
Get or set the OPC bit (0) in the Event Status
Get or set the Standard Event Status Enable register
Reads and clears the contents of the Event Status
lls the default
test and the response
test has detected any
Set or get basic wave parameters. Turns on or off
Short Long Form
*IDN *IDN SYSTEM Get identificatio n from device.
*OPC *OPC SYSTEM
*CLS *CLS SYSTEM Clear all the status d ata regi sters.
*ESE *ESE SYSTEM
*ESR *ESR SYSTEM
*RST *RST SYSTEM Initiate a device reset. The *RST reca
*SRE *SRE SYSTEM Set or get the bit settings of the Service Request
*STB *STB SYSTEM Read the contents of the 488.2 defined status register
*TST *TST SYSTEM Perform an internal self-
CHDR COMM_HEADER SIGNAL Sets or gets the command returned format
OUTP OUTPUT SIGNAL Set or get output state.
BSWV BASIC_WAVE SIGNAL
ARWV ARBWAVE SYSTEM Change arbitrary wave type.
MDWV MODULATEWAVE SIGNAL Set or get modulate wave parameters.
SWWV SWEEPWAVE SIGNAL Sets or gets sweep parameters.
BTWV BURSTWAVE SIGNAL Set or get burst wave parameters.
PACP PARACOPY SIGNAL Copies parameters from one chan nel to the other.
SYNC SYNC SIGNAL Set or get in-phase signal.
NBFM NumBer_ForMat SYSTEM Sets or ge ts d ata format.
SCFG SYSTEM_CONFIG SYSTEM Changes system load data of power on.
Function
Register (ESR).
(ESE).
Register (ESR).
setup.
Enable Register (SRE).
(STB), and the Master Summary Status (MSS).
indicates whether the selferrors.
channel signal.
BUZZ BUZZER SYSTEM Set or get buzzer State.
SCSV SCREEN_SAVE SYSTEM Sets o r gets screen save state.
ROSC ROSCILLATOR SIGNAL Set or get clock source.
FCNT FREQCOUNTER SIGNAL Sets or gets frequency counter parameters.
INVT INVERT SIGNAL Set or get output signal phase state.
COUP COUPLING SIGNAL Sets or gets coupling parameters.
VOLTPRT VOLTPRT SYSTEM Sets or ge ts state of over-voltage protection.
STL STORELIST SIGNAL Lists all stored waveforms.
WVDT WVDT SIGNAL Sets and gets arbi trary wave data.
VKEY VIRTUALKEY SYSTEM Sets the virtual keys.
HARM HARMonic SIGNAL Sets or gets harmonic information.
CMBN CoMBiNe SIGNAL Sets or ge ts wave co mbine information.
SYST:COMM:
LAN:IPAD
SYSTEM:COMMU
NICATE:
SYSTEM The Command can set and get system IP address.
LAN:IPADDRESS
SYST:COMM:
LAN:SMAS
SYSTEM:COMMU
NICATE:
SYSTEM The Command can set and get system subnet mask.
LAN:SMASK
SYST:COMM:
LAN:GAT
SYSTEM:COMMU
NICATE:
SYSTEM The Command can set and get system Gateway.
LAN:GATEWAY
3
4
1.3. IEEE 488.2 Comm on Comma nd Introduc tion
IEEE standard defines the common commands used for querying the basic information of the
instrument or executing basic operations. These commands usually start with "*" and the
length of the keywords of the command is usually 3 characters.
1.3.1 IDN
DESCRIPTION The *IDN? Query causes the instrument to identify itself. The
response comprises manufacturer, model number, serial number,
software version and firmware version.
QUERY SYNTAX *IDN?
RESPONSE FORMAT *IDN ,<device id> ,<model>,<serial number>, <software>, <version>,
<firmware version>
<device id>: =“BK Precision” is used to identify instrument.
<model>:= A model identifier less than 14 characters.
<serial number>:= A nine- or 1 0-digit decimal code .
<software version>:= A serial numbers about software version.
<firmware version>:= two digits giving the major release level
followed by a period, then one digit giving the minor release level
followed by a period and a single-digit update level (xx.y.z).
EXAMPLE 1 Reads version information.
*IDN?
return:
*IDN BK Precision,4050B,00-00-00-13-22,1.01.01.10R1,20.234.3.
1.3.2 OPC
DESCRIPTION The *OPC (OPeration Complete) command sets to true the OPC bit
(bit 0) in the standard Event Status Register (ESR).
The *OPC? query always responds with the ASCII character 1
because the device only responds to the query when the
previous command has been entirely executed.
QUERY SYNTAX *OPC?
The following command causes all the status data registers to be
be reflected in the ESB summary message bit (bit 5) of the STB register.
RESPONSE FORMAT *OPC 1
1.3.3 CLS
DESCRIPTION The *CLS command clears all the status data registers.
COMMAND SYNTAX *CLS
EXAMPLE
cleared:
*CLS
1.3.4 ESE
DESCRIPTION The *ESE command sets the Standard Event Status Enable register
(ESE). This command allows one or more events in the ESR register to
The *ESE? query reads the contents of the ESE register.
COMMAND SYNTAX *ESE <value>
<value> : = 0 to 255.
QUERY SYNTAX *ESE?
RESPONSE FORMAT *ESE <value>
EXAMPLE The following instructions allows the ESB bit to be set if a user request
(URQ bit 6, i.e. decimal 64) and/or a device dependent error (DDE bit
3, i.e. decimal 8) occurs. Summing these values yields the ESE register
mask 64+8=72.
*ESE?
Return:
*ESE 72
RELATED COMMANDS *ESR
1.3.5 ESR
DESCRIPTION The *ESR? query reads and clears the contents of the Event
5
6
Status Register (ESR). The response represents the sum of the binary
values of the register bits 0 to 7.
QUERY SYNTAX *ESR?
RESPONSE FORMAT *ESR <value>
<value> : = 0 to 255
EXAMPLE The following instruction reads and clears the content of the ESR
register:
*ESR?
Return:
*ESR 0
RELATED COMMANDS *CLS, *ESE
1.3.6 RST
DESCRIPTION The *RST command initiates a device reset. The *RST recalls the
default setup.
COMMAND SYNTAX * RST
EXAMPLE This example resets the signal generator:
*RST
1.3.7 SRE
DESCRIPTION The *SRE command sets the Service Request Enable register (SRE).
This command allows the user to specify which summary message
bit(s) in the STB register will generate a service request.
A summary message bit is enabled by writing a ‘1’ into the
corresponding bit location. Conversely, writing a ‘0’ into a given bit
location prevents the associated event from generating a service
request (SRQ). Clearing the SRE register disables SRQ interrupts.
The *SRE? query returns a value that, when converted to a
binary number represents the bit settings of the SRE register. Note
that bit 6 (MSS) cannot be set and it’s retur ned value is always zero.
COMMAND SYNTAX *SRE <value>
<value> : = 0 to 255
test and the response
QUERY SYNTAX *SRE?
RESPONSE FORMAT *SRE <value>
EXAMPLE The following instruction allows a SRQ to be generated as soon as the
MAV summary bit (bit 4, i.e. decimal 16) or the INB summary bit (bit 0,
i.e. decimal 1) in the STB register, or both are set. Summing these two
values yields the SRE mask 16+1 = 17.
*SRE?
Return:
*SRE 17
1.3.8 STB
DESCRIPTION The *STB? query reads the contents of the 488.2 defined status
register (STB), and the Master Summary Status (MSS).
The response represents the values of bits 0 to 5 and 7 of the Status
Byte register and the MSS summary message.
The response to a *STB? query is identical to the response of a serial
poll except that the MSS summary message appears in bit 6 in place of
the RQS message.
QUERY SYN TAX *STB?
RESPONSE FORMAT *STB <value>
<value> : = 0 to 255
EXAMPLE The following reads the status byte register:
*STB?
Return:
*STB 0
RELATED COMMANDS *CLS, *SRE
1.3.9 TST
DESCRIPTION The *TST? query performs an internal self-
indicates whether the self-test has detected any errors. The self-test
includes testing the hardware of all channels.
Hardware failures are identified by a unique binary code in the
returned <status> number. A “0” response indicates that no failures
occurred.
7
8
QUERY SYNTAX *TST?
RESPONSE FORMAT *TST <status>
<status> : = 0 self-test successful
EXAMPLE The following causes a self-test to be performed:
TST?
Return(if no failure):
*TST 0
RELATED COMMANDS *CAL
1.3.10 CHDR
DESCRIPTION This Command is used to change query command return format.
SHORT parameter is return short format. LONG parameter is return
long format. Off is that command header and parameter unit will
not return.