Hantek — 2 SCPI profile

SCPI profile EN square brackets ( [ ] ). This means that the element is optional and can be omitted. The square brackets are not sent with the command string. If no value is specified for an optional argument, the instrument will select the default value. Command separator The colon ( : ) is used to separate the command keyword from the keyword at the next level. A space must be inserted to separate the argument from the command keyword. Use MIN, MAX arguments For many commands, you can use "MIN" or "MAX" instead of arguments. For example, consider the following command:

SOURce :VOLTage:OFFSet |MINimum|MAXimum If no specific value is selected for the argument, MIN can be replaced to set the offset to the minimum, and MAX can be replaced to set the offset to the maximum. SCPI command terminator The command string sent to the instrument must end with a ( ). The IEEE-488 EOI (end or recognition) message can be interpreted as an character to terminate the command string. followed by an is also acceptable. Command string termination always resets the current SCPI command path to the root level. General command General commands can perform functions such as reset, self-test, and status operations.

General commands, which always start with an asterisk (*) and are 3 characters long, can include one or more arguments. The command keyword is separated from the first argument by a space. Use a semicolon (;) to separate multiple commands as follows: *RST; *CLS; *ESE 32; *OPC? SCPI argument type The SCPI language defines several data formats used by program messages and response messages. Numerical arguments Commands that require the use of numerical arguments, support all common decimal number representations, including optional symbols, decimal point, and scientific notation, etc. Special values for numerical arguments, such as MIN, MAX are also acceptable.

In addition, it is possible to send engineering unit suffixes (for example, M, k, m, or u) along with numerical arguments. If the command only accepts certain values, the instrument will automatically round the input numerical arguments to acceptable values. The following commands require numerical arguments for frequency: SOURce :FREQuency:CENTer |MINimum|MAXimum Due to the SCPI parser is case-insensitive, the letter "M" (or "m") have some confusion. For convenience, the instrument interprets "mV" (or "MV") as millivolts but interprets "MHZ" (or "mhz") as megahertz. Also, interpret "MΩ" (or "mΩ") as megaohm.

You can HDG300C Programming manual Copyright © Qingdao Hantek Electronics Co., LTD 4