10 TEGAM WAY • GENEVA, OHIO 44041
440-466-
6100 • FAX 440
-466-
4-21
Section IV
–
Operating Instructions
1830A Commands
The 1830A can be accessed through a USB interface (as a serial port), or through the LAN
interface Web page (TCP/IP). In either case, you can send commands to the 1830 to read the
value of variables, including instrument settings and measurement values, or change settings.
Commands are text strings and are not case-sensitive. Commands are made up of multiple
words or values sent as a space delimited string.
GET Command
You use the GET command to read the value of system variables and obtain measurements. A
list of all available variables are provided in Table 4.4. The command has the following format:
GET {VARIABLE NAME} {ITEM}
Valid {ITEM}s are:
•
CURRENT_VALUE or CV. When used with the GET command, the command will return the
current value of the variable. If the variable is a measurement, such as POWSUB_1, the
1830A returns a value formatted to four decimal places.
•
RAW. When used with the GET command, the command will return an unformatted value
of the variable. If the variable is a measurement, such as POWSUB_1, the 1830A returns
an unformatted value.
•
MIN or MAX. When used with the GET command, the 1830a returns the minimum or
maximum value for the variable.
•
DEFAULT. When used with the GET command, the command will return the default value
of the variable.
GET Command Examples
To read the current value of the power that the 1830A is measuring, send the following
command:
GET POWSUB_1 CV
A typical response from the 1830A would be:
00:0.5000 mW
where
00: is a status code that means there were no errors, and
0.5000 mW is the reading.
By comparison, the command GET_POWSUB_1 RAW would return the string:
00: 0.500000000000000000000000000000