S820E Microwave Site Master™ Programming Manual : All Mode Commands
 
All Mode Commands
 
:BASe:DIRectory:COPY <"source-directory">,<"destination-directory">
:BASe:DIRectory:DELete <"directory">, {1|0}
:BASe:DIRectory:MAKe <"directory">
:BASe:FILe:COPY <"source-filename">, <"destination-filename">
:BASe:FILe:DELete <"filename">
:CONFigure:BASe:FACTorydefault
:CONFigure:BASe:MASTerreset
:CONFigure:BASe:POWeroff 0|1
:CONFigure:VIP:ANALyze:AUTO ON|OFF|1|0
:FETCh:GPSData:RESet
:INSTrument:NSELect <application-mode-number>
:INSTrument:SELect <"mode-identifier">
:MMEMory:DELete <"filename">
:MMEMory:LOAD:STATe 1,<"filename">
:MMEMory:LOAD:TRACe 1,<"filename">
:MMEMory:STORe:PNG 0,<"filename">
:MMEMory:STORe:STATe 0,<"filename">
:MMEMory:STORe:TRACe <integer>,<"filename">
:PROGram:ETT:ABORtscript
:PROGram:ETT:LOADscript <"filename">
:PROGram:ETT:NEXTstep
:SYSTem:CODeload
:SYSTem:PRESet
[:SENSe]:BASe:BRIGhtness <brightness-level>
[:SENSe]:BASe:NET:MANual:GATEway <"Default-Gateway">
[:SENSe]:BASe:NET:MANual:IP <"IP-address">
[:SENSe]:BASe:NET:MANual:SUBnet <"Subnet-Mask">
[:SENSe]:BASe:NET:MODE MANual|DHCP
[:SENSe]:BASe:NET:MODE:MANual:RESTart
[:SENSe]:BASe:REMote 0|1|2
[:SENSe]:BASe:SCRNshot:SCHeme INVerted|STANdard
[:SENSe]:BASe:TIME <time-in-seconds>
[:SENSe]:BASe:VOLume <volume-level>
[:SENSe]:BASe:VOLume:AUDio ON|OFF|1|0
The commands in this section apply to all instrument modes.
*IDN?
Query Description
Provides information about the device. Return format: Anritsu,<model-number>/<options>,<serial-number>,<package-version>
Example
To get device information:
*IDN?
*OPC?
Query Description
Blocks the SCPI engine from receiving new commands until system completes all pending operations. Returns 1 for operation complete.
Example
To block until operation is complete:
*OPC?
:BASe:DIRectory:COPY <"source-directory">,<"destination-directory">
Cmd Description
Copy all files from source directory to destination directory.
Param Type
String, String
Param Description
Source directory, Destination directory
Example
To copy a directory:
:BAS:DIR:COPY "/internal/folder1/", "/internal/folder2/"
:BASe:DIRectory:DELete <"directory">, {1|0}
Cmd Description
Delete contents in a directory.
Param Type
String, Integer
Param Description
Param1: Directory path, Optional Param2: Delete mode - 1 to delete the directory and contents, 0 to delete contents only. Default is 0.
Example
To delete the contents of a directory:
:BAS:DIR:DEL "/internal/folder1/"
:BASe:DIRectory:MAKe <"directory">
Cmd Description
Create a directory.
Param Type
String
Param Description
Directory path
Example
To create a directory:
:BAS:DIR:MAK "/internal/folder1/"
:BASe:FILe:COPY <"source-filename">, <"destination-filename">
Cmd Description
Copy an existing file to another filepath. For USB drives, ensure /usb/ or /usb2/ is correctly used as the root folder.
Param Type
String, String
Param Description
Param1: Source filename, Param2: Destination filename. The folder structure must exist before copying
Example
To copy a file to a connected USB drive:
:BAS:FIL:COPY "/internal/Temp.dat", "/usb/CopiedFile.dat"
:BASe:FILe:DELete <"filename">
Cmd Description
Delete a file.
Param Type
String
Param Description
Filename with extension
Example
To delete a file:
:BAS:FIL:DEL "/internal/temp.dat"
:CONFigure:BASe:FACTorydefault
Cmd Description
This command sets system to factory default state.
Example
To set to factory default:
:CONF:BAS:FACT
:CONFigure:BASe:MASTerreset
Cmd Description
This command sets system to master reset state.
Example
To perform master reset:
:CONF:BAS:MAST
:CONFigure:BASe:POWeroff 0|1
Cmd Description
Command cycles the power to the instrument (0) or turns it completely off (1). Cycling the power does not save the current setup (instrument will restart with last saved setup) whereas turning the instrument off will store the current setup.
Param Range
0 for power cycling, 1 for turning instrument off
Example
To cycle the system power:
:CONF:BAS:POW 0
:CONFigure:VIP:ANALyze:AUTO ON|OFF|1|0
:CONFigure:VIP:ANALyze:AUTO?
Cmd Description
Command sets auto analyze state.
Query Description
Query returns auto analyze state. Query returns 1 if auto analyze is on. Otherwise, it returns 0.
Param Range
ON|OFF|1|0
Default Value
OFF|0
Example
To set auto analyze state to on:
:CONF:VIP:ANAL:AUTO ON
:FETCh:GPSData:RESet
Cmd Description
Reset the current and last GPS data.
Example
To reset GPS data:
:FETC:GPSD:RES
:FETCh:GPSData? {CURRent|LAST}
Query Description
Query returns the current or the last GPS data. If no parameter is entered, it defaults to return current GPS data. Latitude and longitude units are in radians. Altitude units are in meters. Return format: No H/W Found|No Fix|Good Fix (3D),<time-stamp>,<latitude>,<longitude>,<altitude>|Good Fix (2D),<time-stamp>,<latitude>,<longitude>
Param Description
Optional Param: GPS data collection type, default is CURRent.
Param Range
CURRent|LAST
Example
Query the current GPS data:
:FETC:GPSD? CURRent
:INSTrument:CATalog:FULL?
Query Description
Queries the available modes. ’CAA’2 for Advanced Cable Antenna Analyzer mode, ’HI_PM’10 for High Accuracy Power Meter, ’mwVNA’26 for Vector Network Analyzer, ’VVM’102 for Vector Voltmeter, ’cCAA’201 for Classic Cable Antenna Analyzer mode, ’VIP’202 for Visual Inspection Probe
Example
To query available application modes:
:INST:CAT:FULL?
:INSTrument:NSELect <application-mode-number>
:INSTrument:NSELect?
Cmd Description
Command sets the required application mode.
Query Description
Query returns which mode is currently selected. 2 for Advanced Cable Antenna Analyzer mode, 10 for High Accuracy Power Meter, 26 for Vector Network Analyzer, 102 for Vector Voltmeter, 201 for Classic Cable Antenna Analyzer mode, 202 for Visual Inspection Probe.
Param Type
Integer
Param Description
Application Mode
Param Range
2|10|26|102|201|202
Example
To set current application mode to Hi Accuracy Power Meter:
:INST:NSEL 10
:INSTrument:SELect <"mode-identifier">
:INSTrument:SELect?
Cmd Description
Command sets the required application mode.
Query Description
Query returns which mode is currently selected. "CAA" for Advanced Cable Antenna Analyzer mode, "HI_PM" for High Accuracy Power Meter, "mwVNA" for Vector Network Analyzer, "VVM" for Vector Voltmeter, "cCAA" for Classic Cable Antenna Analyzer mode, "VIP" for Visual Inspection Probe
Param Type
String
Param Description
Application mode identifier
Param Range
"CAA"|"HI_PM"|"mwVNA"|"VVM"|"cCAA"|"VIP"
Example
To set current application mode to Hi Accuracy Power Meter:
:INST:SEL "HI_PM"
:MMEMory:DELete <"filename">
Cmd Description
Delete setup(.stp) or measurement(.dat) file.
Param Type
String
Param Description
Filepath with extension
Example
To delete a setup:
:MMEM:DEL "/internal/temp.stp"
:MMEMory:LOAD:STATe 1,<"filename">
Cmd Description
Recall the given setup file.
Param Type
Integer, String
Param Description
Param1: Must send 1 as first parameter, Param2: Filepath with extension.
Example
To recall a setup (include extension):
:MMEM:LOAD:STAT 1, "/internal/temp.stp"
:MMEMory:LOAD:TRACe 1,<"filename">
Cmd Description
Recall the given measurement file.
Param Type
Integer, String
Param Description
Param1: Must send 1 as first parameter, Param2: Filepath with extension.
Example
To recall a measurement (include extension):
:MMEM:LOAD:TRAC 1, "/internal/temp.dat"
:MMEMory:STORe:PNG 0,<"filename">
Cmd Description
Save screenshot as a .png file.
Param Type
Integer, String
Param Description
Param1: Must send 0 as first parameter, Param2: Filepath without extension.
Example
To save a screenshot (include directory path, do not include extension):
:MMEM:STOR:PNG 0, "/internal/temp"
:MMEMory:STORe:STATe 0,<"filename">
Cmd Description
Save the user settings as a setup file.
Param Type
Integer, String
Param Description
Param1: Must send 0 as first parameter, Param2: Filepath without extension.
Example
To save a setup (include directory path, do not include extension):
:MMEM:STOR:STAT 0, "/internal/temp"
Notes
In VIP mode, use this command to save .vipi file. Image must be captured first in order for save to happen.
:MMEMory:STORe:TRACe <integer>,<"filename">
Cmd Description
Stores the trace data and settings into a file with specified type.
Param Type
Integer, String
Param Description
Param1: An integer representing the file type where 1 or 0 : Measurement file (default), 2: S2P Real/Imag (only valid in VNA), 3: S2P Lin Mag/Phase (only valid in VNA), 4: S2P Log Mag/Phase(only valid in VNA), 5: Text (only valid in CAA, VNA, and VVM), 6: CSV (only valid in CAA, VNA, and VVM) , Param2: Filepath without extension.
Example
To save a measurement (include directory path, do not include extension):
:MMEM:STOR:TRAC 0, "/internal/temp"
:PROGram:ETT:ABORtscript
Cmd Description
Command exits easy-test mode.
Example
To abort ETT mode:
:PROG:ETT:ABOR
:PROGram:ETT:LOADscript <"filename">
Cmd Description
Command begins easy-test mode with the given filename.
Param Description
Filename with .ett extension
Example
To enter ETT mode:
:PROG:ETT:LOAD "/internal/my-test.ett"
:PROGram:ETT:NEXTstep
Cmd Description
Command performs the next step while in easy-test mode.
Example
To proceed to the next step in ETT mode:
:PROG:ETT:NEXT
:PROGram:ETT:STATe?
Example
To get the ETT state:
:PROG:ETT:STAT?
:SYSTem:CODeload
Cmd Description
Command performs a firmware update from a USB drive.
Example
To initiate a firmware update:
:SYST:COD
:SYSTem:MBTemperature?
Query Description
Query returns motherboard temperature in degree C.
Example
To query motherboard temperature:
:SYST:MBT?
:SYSTem:OPTions?
Query Description
Query returns option string delimited by "/".
Example
To query full option string:
:SYST:OPT?
:SYSTem:PRESet
Cmd Description
Presets the application to its default state. Use *OPC? to block till preset is complete.
Example
To perform preset:
:SYST:PRES
[:SENSe]:BASe:BRIGhtness <brightness-level>
[:SENSe]:BASe:BRIGhtness?
Cmd Description
Command sets the brightness level.
Query Description
Query returns the brightness level.
Param Type
Integer
Param Range
0 to 10 in increments of 1, where 0 is 0% and 10 is 100% brightness setting.
Default Value
10
Example
To set brightness to 5:
:BAS:BRIG 5
[:SENSe]:BASe:IPaddress?
Query Description
Query returns the IP address in a special format. Return value example: 2887436918 (to recover the actual IP address of 172.26.202.118, you need to convert the returned value to hex AC1ACA76 and then take the resulting 4 numbers (2 characters each, in hex) and convert them back to decimal.
Example
To query IP address:
:BAS:IP?
[:SENSe]:BASe:NET:MANual:GATEway <"Default-Gateway">
[:SENSe]:BASe:NET:MANual:GATEway?
Cmd Description
Command sets the static Gateway.
Query Description
Query returns the static Gateway in string format.
Param Type
String
Param Description
Default Gateway
Example
To set static Gateway:
:BAS:NET:MAN:GATE "192.35.101.1"
[:SENSe]:BASe:NET:MANual:IP <"IP-address">
[:SENSe]:BASe:NET:MANual:IP?
Cmd Description
Command sets the static IP address.
Query Description
Query returns the static IP address in string format.
Param Type
String
Param Description
IP address
Example
To set static IP address:
:BAS:NET:MAN:IP "192.35.100.1"
[:SENSe]:BASe:NET:MANual:SUBnet <"Subnet-Mask">
[:SENSe]:BASe:NET:MANual:SUBnet?
Cmd Description
Command sets the static Subnet Mask.
Query Description
Query returns the static Subnet Mask in string format.
Param Type
String
Param Description
Subnet Mask
Example
To set static Subnet Mask:
:BAS:NET:MAN:SUB "255.255.252.0"
[:SENSe]:BASe:NET:MODE MANual|DHCP
[:SENSe]:BASe:NET:MODE?
Cmd Description
Command sets the Ethernet configuration to DHCP or static (manual).
Query Description
Query returns the Ethernet configuration.
Param Type
Character
Param Description
MANual|DHCP
Example
To set the Ethernet configuration to static (manual):
:BAS:NET:MODE MAN
[:SENSe]:BASe:NET:MODE:MANual:RESTart
Cmd Description
Command sets the Ethernet configuration to static (manual) and restarts the instrument.
Example
To set the Ethernet configuration to static (manual) and trigger a restart:
:BAS:NET:MODE:MAN:REST
[:SENSe]:BASe:REMote 0|1|2
Cmd Description
Command sets instrument into local lock-out for remote operation. Send 0 is to get out of remote mode and restore front-panel operation, 1 to set remote mode with synchronous communication, and 2 to set remote mode with asynchronous communication.
Param Type
Integer
Param Range
1|0
Default Value
0
Example
To set the instrument to remote synchronous mode and perform a local lock-out:
:BAS:REM 1
[:SENSe]:BASe:SCRNshot:SCHeme INVerted|STANdard
[:SENSe]:BASe:SCRNshot:SCHeme?
Cmd Description
Command sets the screenshot setting scheme.
Query Description
Query returns the value that represents the current screenshot scheme.
Param Type
Character
Param Range
INVerted|STANdard
Default Value
INVerted
Example
To set the screen capture scheme to standard:
:BAS:SCRN:SCH STAN
[:SENSe]:BASE:TEMPerature?
Query Description
Query returns motherboard temperature in degree C. Same as :SYSTem:MBTemperature?
Example
To query the motherboard temperature:
:BAS:TEMP?
[:SENSe]:BASe:TIME <time-in-seconds>
[:SENSe]:BASe:TIME?
Cmd Description
Command sets the time. Send a -1 to synchronize the system time with GPS.
Query Description
Query returns value that represents the number of seconds from 1/1/1970.
Param Type
Integer
Param Description
Number of seconds from 1/1/1970
Default Units
s(seconds)
Example
To set the time to 3:09 on January 5, 2012:
:BAS:TIME 1325776177
[:SENSe]:BASe:VOLume <volume-level>
[:SENSe]:BASe:VOLume?
Cmd Description
Command sets the volume level.
Query Description
Query returns the volume level.
Param Type
Integer
Param Range
0 to 10 in increments of 1, where 0 is 0% and 10 is 100% of volume setting.
Default Value
5
Example
To set volume to 7:
:BAS:VOL 7
[:SENSe]:BASe:VOLume:AUDio ON|OFF|1|0
Cmd Description
Command sets the audio state. ON means audio is enabled. OFF means audio is disabled.
Param Type
Character|Integer
Param Range
ON|OFF|1|0
Default Value
ON|1
Example
To mute audio:
:BAS:VOL:AUD OFF