Spectrum Master™ Programming Manual : 3 Remote Commands : Format Subsystem

Format Subsystem
This subsystem contains commands that determine the formatting of numeric data when it is transferred.
The format setting affects data in specific commands only. If a command is affected, it will be noted in the command description.
Numeric Data Format
:FORMat[:READings][:DATA] ASCii|INTeger,32|REAL,32
:FORMat[:READings][:DATA]?
This command specifies the format in which data is returned in certain commands.
ASCii format returns the data in comma-separated ASCII format. The units are the current instrument units. This format requires many more bytes so it will be the slowest format.
INTeger 32 values are signed 32-bit integers in little-endian byte order. This format returns the data in 4-byte blocks. The units are always mdBm. For example, if the measured result was -12.345 dBm, that value would be sent as -12345.
REAL,32 values are 32-bit floating point numbers conforming to the IEEE 754 standard in little-endian byte order. This format returns the data in 4-byte binary format. The units are the current instrument units.
Both INTeger,32 and REAL,32 formats return a definite block length. Each transfer begins with an ASCII header such as #42204. The first digit represents the number of following digits in the header (in this example, 4). The remainder of the header indicates the number of bytes that follow the header (in this example, 2204). You then divide the number of following bytes by the number of bytes in the data format you’ve chosen (4 for both INTeger,32 and REAL,32…so 2204/4) to get the number of data points (in this example, 551).
 
INITiate Subsystem
This subsystem works with the ABORt subsystem to control the triggering of measurements.
Continuous/Single Sweep
:INITiate:CONTinuous OFF|ON|0|1
:INITiate:CONTinuous?
Specifies whether the sweep/measurement is triggered continuously.
If the value is set to ON or 1, another sweep/measurement is triggered as soon as the current one completes.
If continuous is set to OFF or 0, the instrument enters the “idle” state and waits for the :INITiate[:IMMediate] command or for :INITiate:CONTinuous ON.
The default value is ON. That is, sending :INIT:CONT is equivalent to sending :INIT:CONT ON
The query version of the command returns a 1 if the instrument is continuously sweeping/measuring and returns a 0 if the instrument is in single sweep/measurement mode.
SPA/WCDMA: Shift-3 (Sweep), Sweep (Single/Continuous)
VNA: Shift-3 (Sweep), Sweep Type
 
Trigger Sweep/Measurement
:INITiate[:IMMediate]
Initiates a sweep/measurement.
If :INITitate:CONTinuous is set to ON, this command is ignored.
Use this command in combination with :STATus:OPERation? to synchronize the capture of one complete set of data. When this command is sent, the “sweep complete” bit of :STATus:OPERation? is set to 0, indicating that the measurement has not completed. The data collection is then triggered. The controlling program can poll :STATus:OPERation? to determine the status. When the “sweep complete” bit is set to 1, data is ready to be retrieved.
 
INSTrument Subsystem
One instrument may contain many logical instruments (“modes”). This subsystem controls the selection of the current instrument mode.
Query Available Modes
:INSTrument:CATalog:FULL?
Returns a comma-separated list of available modes. Mode names are enclosed in double quotes (“ ”). Immediately following the string name is the application number.
For example: “SPA”1,“WCDMA”5,”VNA”2
 
Select Mode by Number
:INSTrument:NSELect <integer>
:INSTrument:NSELect?
Sets the instrument mode based on the value of <integer>.
The query version returns the number associated with the current mode.
Use :INSTrument:CATalog:FULL? to get a list of available mode names and their integer representations.
 
Select Mode by Name
:INSTrument[:SELect] <string>
:INSTrument[:SELect]?
Sets the instrument mode based on the mode name specified by <string>.
The query version returns the name of the current mode.
Use :INSTrument:CATalog:FULL? to get a list of available modes.
 

Copyright 2011 Anritsu Company
Anritsu Company
1800-ANRITSU
10450-00034, Rev. A
mmdtechpubs@anritsu.com