Agilent Technologies E1470A user manual Addressing the Switch, Programming the RF Switch Chapter

Page 20

Addressing the Switch

By specifying a path destination (a COM number) and a source (a channel

number),

a channel is connected to a COM terminal. The format for

 

addressing the switch is

 

 

 

 

 

 

where <

 

>ROUTe:]PATH[:COMMoROUTe:]PATH[:COMMon]is a 2-digit number specifying the bank<commfor the>,COM<channelterminal>

and <

> is a 3-digit number specifying a channel number. (Leading

0s can be omitted.) See the

 

command in

 

Chapter 3 for valid <

> and <

> numbers.

 

 

 

You can use

comm

chanel

 

 

to indicate

 

 

 

 

 

whether

path is closed (returns a 1) or is open (returns

0). You can

use the PATH statement to create multiple 3-to-1 multiplexers, 6-to-1

 

multiplexers, 9-to-1 multiplexers, 12-to-1 multiplexers, etc. Up to two

 

30-to-1 multiplexers or one 60-to-1 multiplexer can be configured. For

example, the following statements each connect a

 

terminal to

 

channel.

 

 

 

 

 

 

 

 

PATH COMM 00,001

 

!Connects

00 to Channel 001,

 

 

 

 

!COM 00 is common to channels 000,

 

 

 

 

!001, 002; forming

3-to-1 mux.

PATH COMM 04,020

 

!Connects

04 to Channel 020,

PATH COMMcomm

 

 

!COM 04 is common to channels 020

 

 

!through 042; forming

9-to-1 mux.

05,002

 

!Connects

05 to Channel 002,

channel

 

 

!COM 05 is common to channels 000

 

 

 

 

!through 052 forming

18-to-1 mux.

Using invalid numbers for

 

and

will generate an error.

 

 

 

<comm>!open.<channel>

 

 

 

the

When switching[a signal path, only the ]?relays<commnecessary>,<channelto complete>

path are switched. All other relays remain in their current state. This prevents unexpected switching results. However, when closing one signal path, another signal path might open. For example:

PATH COMM 01,010

!Closes

signal path from COM 01

 

!to Channel 010.

PATH COMM? 01,010

!Returns "1" indicating the path is

 

!closed.

 

PATH COMM 02,002

!Closes

signal path from COM 02 to

 

!Channel 002 and changes the state

 

!of the cascade relay, opening the

 

!prior signal path.

PATH COMM? 01,010

!Returns "0" indicating the path is

20 Programming the RF Switch

Chapter 2

Image 20
Contents E1470-90002 Page Contents Appendix C RF Switch Error Messages Index Agilent Technologies Warranty Statement Government Restricted RightsSafety Symbols Documentation HistoryManufacturer’s Name Manufacturer’s AddressDeclares, that the product Product Name Model NumberPage Chapter Using This ChapterSwitching Diagram Cascade Relays COM 33 332 Configuring the RF Switch Chapter Creating Multiple MultiplexersRF Switch Configuration Maximum POWER. The maximum RF power that can be appliedChapter Configuring the RF Switch On this moduleSetting the Logical Address Setting the Interrupt Request Level Connecting User Wiring Installing User Wiring Configuring the RF Switch ChapterAssembling SMB Connector Jacks SMB Connectors and Connector HousingsUser Connections Wiring Installing Device Drivers RF SwitchAddressing the Switch Programming the RF Switch ChapterChapter Programming the RF Switch Programming ExamplesProgramming the RF Switch Chapter Example Closing a Signal Path Example Opening Closing Signal Paths Example Saving Recalling Module States Programming the RF Switch Chapter Command Types Common Commands FormatScpi Commands Format Chapter RF Switch Command ReferenceRF Switch Command Reference Chapter Scpi Command ReferenceLinking Commands DIAGnostic DIAGnosticCLOSeDIAGnosticCLOSe? DIAGnosticOPENDIAGnosticOPEN relay,relay... opens individual relays on Reset to its power-on state Common to NCDIAGnosticOPEN? DIAGOPEN333DIAGnosticRELAY? RSTDIAGThis programCLOS042,043,053,054,256REL?returnsROUTe ROUTePATHCOMMonExample Closing Channel Path 10002 SYSTemVERSion? SYSTemERRor?SYSTem Ieee 488.2 Common Commands Quick Reference CommandCommands Quick Reference DescriptionAppendix a RF Switch Specifications Appendix aRF Switch Specifications Appendix a Appendix B About This AppendixRegister Addressing Addressing OverviewBase Address Figure B-1. Register Address Locations Within VXI A16A16 Address Space Outside the Command Module Register Definitions Table B-1. General Register-based Programming MethodTable B-2. Register Map Register-Based Programming Appendix BTable B-3. Status Register Bit Patterns read Table B-4. Control Register Bit Pattern writeRelay Control Registers Vxie Table B-10. Writing to Relay Control Registers Register Programming Example Create and open a device sessionWait 5 seconds before resetting module Void errhandler /* Error Handling Routine Register-Based Programming Appendix B Appendix C RF Switch Error Messages Appendix CRF Switch Error Messages Appendix C Index IndexIndex E1470-90002