Programming Examples

Example: Module Self-Test

NOTE

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, and a GPIB module in your PC.

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.

 

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.

 

 

 

Chapter 2

Programming the RF Switch 21

Page 21
Image 21
Agilent Technologies E1470A user manual Programming Examples, Chapter Programming the RF Switch