Using Commands With Parameters; Substitute Parameter Names - ILX Lightwave OMM-6810B User Manual

Optical power and wavelength meter
Table of Contents

Advertisement

G P I B / I E E E 4 8 8 . 2 R E M O T E O P E R A T I O N
3
C H A P T E R
Getting Started with GPIB
"BRI 3", "BRIGHT 3", and "BRIght 3
The syntax of the 6810B commands follow the rules laid out in the IEEE-488.2
standard. Colons (:) indicate the start of a new command path. Semicolons (;)
indicate a separation of commands within a string. A leading semicolon may be
used to return the 6810B command parser to the command path root.
Spaces may be placed anywhere in a command string (after the command header
or query question mark), and must be used to separate the command (header)
from the first parameter (or program data). The following examples show valid
syntax for commands with the 6810B:
"WAVE:MODE NM; WAVE?"
":BRIGHT 2; RANGE:AUTO ON"
"enable:event 255"
"*IDN?"
Below are examples of invalid syntax. These command strings would produce an
error, as explained:
"WAVE MODE CM"-Missing colon between program headers."WAVE:MODE CM"
"RANGE 2 WAVE?"-Missing semicolon between commands."RANGE 2;WAVE?"
"BRIGHT ?"-Space not allowed before question mark."BRIGHT?"
"PWR?"-Letters must be in the correct order."POW?" or "POWER?"

Using Commands with Parameters

Some commands expect a parameter. For example, to change the gain range, the
command would be "RANGE 3". This would set the 6810B's electrical gain to
range three. If a single parameter is expected, it should follow the command with
one space between the command and the parameter.

Substitute Parameter Names

For clarity in programming, the (Boolean) values of one and zero may also be
represented by the appropriate substitute parameter names, as shown in Table
3.4.
31
01_10
OMM-6810B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents