Introduction to Programming
6. Introduction to Programming
6.1 Basic Definition
GPIB statement includes instrument control and query commands. A command statement
sends an instruction to the electronic load and query command request information from the
electronic load.
Simple Command
A simple command statement consists of a command or keyword usually followed by a
parameter or data:
LOAD ON
or LOAD:SHORT OFF
Compound Command
When two or more keywords are connected by colons (:), it creates a compound command
statement. The last keyword usually is followed by a parameter or data:
CURRent:STATic:L1 3
or CONFigure:VOLTage:RANGe H
Query Command
A simple query command consists of a keyword followed by a question mark:
MEASure:VOLTage?
MEASure:CURRent? or CHAN?
Forms of Keywords
Every keyword has two forms:
Long-Form In this form, the word is spelled out completely to identify its function. For
instance, CURRENT, VOLTAGE, and MEASURE are long-form
keywords.
Short-Form In this form, the word contains only the first three or four letters of the
long-form. For instance, CURR, VOLT, and MEAS are short-form
keywords.
In keyword definitions and diagrams, the short-form part of each keyword is emphasized in
UPPER CASE letters to help you remember it. However, the electronic load will accept Volt,
volt, voltage, VOLTAGE, volTAGE, etc. regardless to which form you apply. If the keyword is
incomplete, for example, “VOL” or “curre”, it will not be recognized.