Programming the RF Switch 21
Chapter 2
Programming Examples
The following C-language programs show one way to verify initial operation
for the Cascade RF Switch module, to close signal paths, and to save and
recall module states. To run these programs, you must have installed the
E1470A SCPI Device Driver, Agilent IO Libraries for Windows,andaGPIB
module in your PC.
Example: Module
Self-Test
This program:
• Identifies the module and device driver
• Resets the module
• Closes a path (source/destination)
• Verifies that the path is closed
• Executes the module self-test
The
command performs a device reset on the module and sets it to
its power-on state. (Saved module states and status information are not
affected by
.) The command verifies that the relay positions
match the configurations programmed using the
commands.
NOTE results are unpredictable if you use register -based programming or
or to control individual relays. The value returned
should be a "0". Any other value indicates the actual state of the relays do
not match the configuration programmed by the
command.
See Chapter 3 for details.