Programming Examples
R&S
®
OSP
298
User Manual 1178.7100.02 ─ 05
9
Programming Examples
The following examples demonstrate how to switch relays and channel paths remotely
in the R&S
OSP.
9.1
Switching Relays by SCPI Commands
In this example, direct SCPI commands are sent to control SPDT relays in the module
R&S
shows the dialog window of module R&S
OSP-B101 in the
user interface ("WebGUI"). All 6 relays are in their default position (C-NC closed), and
the dialog is still in local operation mode: the flag "REMOTE" as in the top left corner of
is not displayed.
Figure 9-1: Default state: all connections C-NC are closed
For remote operation, we recommend using the scripting tool
R&S
Forum
, as descri-
on page 240. Use this tool to send the com-
mands in the following examples to the switch unit.
As soon as you send the first command, the switch unit is in remote operation mode.
For terminating this mode from the "WebGUI", click the button "Goto Local Operation",
which is available in the "Context" menu of each main function (see
The lines that start with a double slash (//) are comments, only.
Resetting all modules
*RST
//Resets all switches and output channels in the switch unit.
//The relay states as shown above are not changed.
//The WebGUI control interface shows the remote state by the
//flag "REMOTE" in the top left corner of the display.
Switching Relays by SCPI Commands