: | A colon links command keywords together to form commands. The colon is not an actual part of the keyword, but is a signal to the SCPI interface parser. A colon must precede a root keyword immediately following a semicolon (see Notational Examples). |
; | A semicolon separates commands if multiple commands are placed on a single program line. |
[ ] | Square brackets enclose one or more optional keywords. |
{ } | Braces enclose one or more keyword or command parameters that may be included one or more times. |
| | A vertical bar indicates “or” and is used to separate alternative parameter options. Example: ON | OFF is the same as ON or OFF. |
< > | Angle brackets enclose parameter descriptions. |
::= | Means “is defined as”. For example: <a>::=<b><c> indicates that <b><c> can replace <a>. |
sp | Space, referred to as white space, must be used to separate keywords from their associated data parameters. It must not be used between keywords or inside keywords. |
XXX | Indicates a root command name. |
Command Specification | Valid Forms |
[:SENSe]:FREQuency:STARt <freq> | The following all produce the same result: :SENSe:FREQuency:STARt 1 MHZ :SENS:FREQ:STAR 1 MHZ :sense:frequency:start 1000000 :FREQ:STAR 1000 KHZ |
:CALCulate:MARKer{1|2|3|4|5|6}:X <x‑parameter> | The first 2 commands set the location of marker 1. The third command sets the location of marker 2. :CALC:MARK:X 1 GHZ :CALC:MARK1:X 1 GHZ :CALC:MARK2:X 2 GHZ |
:UNIT:POWer DBM|DBV|DBMV|DBUV|V|W | The following commands are identical: :UNIT:POWer DBM :unit:pow dbm |
:INITiate:CONTinuous OFF|ON|0|1 | The following commands are identical: :INITiate:CONTinuous OFF :init:cont 0 |
Note | A semicolon is used to join the commands, and a leading colon is used immediately after the semicolon to start the second command. |