SCPI profile EN 2 SCPI profile SCPI (Standard Commands for Programmable Instruments is a standard instrument programming language based on the existing standards IEEE 488.1 and IEEE 488.2, and follows the IEEE 754 floating point arithmetic rules, ISO 646 information exchange 7-bit coding symbols (equivalent to ASCII programming) and other standards. The SCPI command is a tree-like hierarchical structure, including multiple subsystems, each subsystem is composed of a root keyword and one or several hierarchical keywords. Command symbol The following four symbols are not part of the SCPI command and are not sent with the command but are commonly used to illustrate the arguments in the command.
1. Curly braces {} Arguments in braces are optional and can be left unset. 2. Vertical bar | Vertical bars are used to separate multiple arguments options. One of the arguments must be chosen when sending commands. 3. Triangular parentheses Arguments in triangular brackets must be replaced with a valid value. 4. Square brackets [] The content in square brackets (arguments or keywords) can be omitted. If omitted, the content is set to its default value. Syntax conventions The format used to display commands is as follows:
SOURce :VOLTage |MINimum|MAXimum SOURce :FREQuency:CENTer { |MINimum|MAXimum} According to the command syntax, most commands (and some arguments) are represented as a mixture of upper- and lower-case letters. For short program lines, commands in abbreviated format are acceptable. For better program readability, send commands in long format. For example, VOLT and VOLTage are both acceptable in the statement above. Upper- or lower-case letters are both acceptable, therefore, VOLTage, volt, and Volt all can be used. Other formats (such as VOL and VOLTAG) are invalid and can produce errors. ⚫ The curly braces ( { } ) contain the argument options for the given command string.
Braces are not sent with the command string. ⚫ The vertical bar ( | ) separates multiple argument options for a given command string. Bar is not sent with the command string. ⚫ The triangular brackets ( ) in the second example indicate that a value must be specified for the argument inside the brackets. For example, in the statement above, the argument inside the triangular brackets is . The triangular brackets are not sent with the command string. You must specify a value for the argument (for example "FREQ:CENT 1000") ⚫ Some syntactic elements (such as nodes and arguments) are contained within Copyright © Qingdao Hantek Electronics Co., LTD HDG300C Programming manual 3