background image

28 Getting Started  

Chapter 1

Card Numbers

The card number (cc of the channel_list) identifies the module within a 
switchbox. The card number assigned depends on the switch configuration 
used. Leading zeroes can be ignored for the card number.

In a single-module switchbox configuration, the card number is always 01.
In a multiple-module switchbox

 

configuration, modules are set to successive 

logical addresses. 

The module with the lowest logical address is always card number 01. The 
module with the next successive logical address is card number 02, etc. 
Figure 1-15 illustrates card numbers and logical addresses of a typical 
multiple-module switchbox configuration. 

Channel Addresses

The channel address (nn of the channel list) determines which relay on the 
selected card will be addressed. Form C switch channel numbers are 00 
through 31. The channels can be addressed using channel numbers or 
channel ranges:

single channels (@ccnn);

multiple channels (@ccnn,ccnn,...);

sequential channels (@ccnn:ccnn);

groups of sequential channels (@ccnn:ccnn,ccnn:ccnn);

or any combination of the above.

Use a comma (,) to form a channel list or a colon (:) to form a channel range. 
Only valid channels can be accessed in a channel list or channel range. 
Also, the channel range must be from a lower channel number to a higher 
channel number. For example, 

CLOS(@100:215)

 is acceptable, but 

CLOS(@215:100)

 generates an error.

Figure 1-15. Typical Card Numbers in a Multiple-module Switchbox

Command

Module

Note: Physical placement of the Module in the Logical Address

     order is not required, but is recommended.

Switch Module

Logical Address = 120

Secondary Address = 15

Card Number 01

Logical Address = 121

Switch Module

Switch Module

Logical Address = 122

1

2

8

6

4

3

2

1

6

8

4

2

1

Card Number 02

6

4

1

2

8

1

6

3

2

8

4

1

2

Card Number 03

6

4

1

2

8

1

6

3

2

8

4

1

2

Summary of Contents for E1463A

Page 1: ... VXIplug play example programs VXIplug play Online Help VXIplug play function reference VXIplug play Online Help Soft Front Panel information VXIplug play Online Help VISA language information Agilent VISA User s Guide Agilent VEE programming information Agilent VEE User s Manual Supplied with Agilent Command Modules Embedded Controllers and VXLink Agilent E1463A 32 Channel 5 Amp Form C Switch Use...

Page 2: ......

Page 3: ...9 Wiring a Terminal Module 20 Attaching a Terminal Module to the Form C Switch 22 Protecting Relays and Circuits 23 Relay Life Factors 23 Extending Relay Life 24 Adding Relay and Circuit Protection 25 Maximum Allowable Module Switch Current 26 Programming the Form C Switch 27 Using SCPI Commands 27 Addressing the Form C Switch 27 Initial Operation 29 Chapter 2 Using the Form C Switch 31 Using This...

Page 4: ... 46 Example Synchronizing the Form C Switch BASIC 46 Chapter 3 E1463A Command Reference 47 ABORt 50 ARM 51 ARM COUNt 51 ARM COUNt 52 DISPlay 53 DISPlay MONitor CARD 53 DISPlay MONitor STATe 54 INITiate 55 INITiate CONTinuous 55 INITiate CONTinuous 56 INITiate IMMediate 56 OUTPut 57 OUTPut EXTernal STATe 57 OUTPut EXTernal STATe 58 OUTPut STATe 58 OUTPut STATe 59 OUTPut TTLTrgn STATe 59 OUTPut TTLT...

Page 5: ...scriptions 82 Reading and Writing to the Registers 82 Manufacturer Identification Register 82 Device Type Register 82 Status Control Register 82 Relay Control Register 84 Programming Examples 85 Example Reading the Registers BASIC 85 Example Reading the Registers C HP UX 86 Example Making Measurements BASIC 87 Example Making Measurements C HP UX 88 Example Scanning Channels BASIC 90 Example Scanni...

Page 6: ...6 Notes ...

Page 7: ...site preparation or maintenance 7 TO THE EXTENT ALLOWED BY LOCAL LAW THE ABOVE WARRANTIES ARE EXCLUSIVE AND NO OTHER WARRANTY OR CONDITION WHETHER WRITTEN OR ORAL IS EXPRESSED OR IMPLIED AND AGILENT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OR CONDITIONS OF MERCHANTABILITY SATISFACTORY QUALITY AND FITNESS FOR A PARTICULAR PURPOSE 8 Agilent will be liable for damage to tangible property per incid...

Page 8: ...p away from live circuits Operating personnel must not remove equipment covers or shields Procedures involving the removal of covers or shields are for use by service trained personnel only Under certain conditions dangerous voltages may exist even with the equipment switched off To avoid dangerous electrical shock DO NOT perform procedures involving cover or shield removal unless you are qualifie...

Page 9: ...11 1998 IEC 61000 4 2 1995 A1 1998 EN 61000 4 2 1995 IEC 61000 4 3 1995 EN 61000 4 3 1995 IEC 61000 4 4 1995 EN 61000 4 4 1995 IEC 61000 4 5 1995 EN 61000 4 5 1995 IEC 61000 4 6 1996 EN 61000 4 6 1996 IEC 61000 4 11 1994 EN 61000 4 11 1994 Canada ICES 001 1998 Australia New Zealand AS NZS 2064 1 Limit Group 1 Class A 1 4kV CD 8kV AD 3 V m 80 1000 MHz 0 5kV signal lines 1kV power lines 0 5 kV line ...

Page 10: ...10 Notes ...

Page 11: ...ounter or multiple plug in modules for a switchbox or scanning multimeter instrument Basic Operation The Form C switch is a C Size VXIbus and VMEbus register based product that can be used for switching scanning and control The switch can operate in a C Size VXIbus or VMEbus mainframe The switch has 32 channels of Form C relays Each channel includes a relay with common C normally open NO and norma...

Page 12: ...hen a channel is closed the common contact C is connected to the normally open contact NO User inputs and outputs to each channel are via the NO NC and C terminal connectors on the terminal module Figure 1 1 Form C Switch Simplified Schematic TERMINAL MODULE C0NO C0C C0NC C0N0 C0C C0NC NC NO Channel 0 E1463A MODULE Channel 15 C15N0 C15C C15C NO NC C15NC C15C C15NO Pads for MOVS Pads for MOVS Jumpe...

Page 13: ... Commands for Programmable Instruments SCPI General Purpose Relay Configuration As factory configured the Form C switch module is set for general purpose relay configuration For this configuration you can switch channels by opening or closing channel relays or you can scan a set of channels Figure 1 2 shows a typical general purpose relay configuration for channel 00 When the relay is open NC term...

Page 14: ...ards involved should install configure or remove the Form C switch module Use only wire rated for the highest input voltage and remove all power sources from the mainframe and installed modules before installing or removing a module CAUTION MAXIMUM VOLTAGE CURRENT Maximum allowable voltage per channel for the Form C switch is 125 Vdc or 250 Vrms Maximum current per channel is 5 Adc or ac rms non i...

Page 15: ...e Logical Address Switch The logical address switch LADDR factory setting is 120 Valid addresses are from 1 to 255 The Form C switch can be configured as a single instrument or as a switchbox See Figure 1 4 for switch position information NOTE The address switch selected value must be a multiple of 8 if the module is the first module in a switchbox used with a VXIbus command module and is being in...

Page 16: ...t priority You can select eight different interrupt priority levels Level 1 is the lowest priority and Level 7 is the highest priority Level X disables the interrupt The Form C switch factory setting is Level 1 To change the interrupt priority remove the 4 pin jumper from the old priority location and reinstall in the new priority location If the 4 pin jumper is not used the two jumper locations m...

Page 17: ... Tighten the top and bottom screws to secure the module to the To remove the module from the mainframe reverse the procedure mainframe Set the extraction levers out 1 3 Slide the E1463A into any slot except slot 0 until the backplane connectors touch 2 NOTE The extraction levers will not seat the backplane connectors on older VXIbus mainframes You must manually seat the connectors by pushing in th...

Page 18: ...dule Description Terminal Module Option A3G Description Connecting User Inputs Wiring a Terminal Module Attaching a Terminal Module to the Form C Switch Standard Terminal Module Description Figure 1 7 shows the standard screw type terminal module connectors and associated channel numbers Terminal Module Option A3G Description Option A3G provides a plastic terminal module housing with solder eye co...

Page 19: ...Pin 04NO 05NO 06NO 07NO 08NO 09NO 10NO 11NO 12NO 13NO 14NO 15NO C2 Pin 15C 14C 11C 13C 12C 10C 09C 06C 08C 07C 05C 04C C32 Pin 01C 02C 03C 00C Pin E2 15NC 14NC 11NC 13NC 12NC 10NC 09NC 06NC 08NC 07NC 05NC 04NC Pin E32 01NC 03NC 02NC 00NC A2 Pin 31NO 30NO Pin C2 31C 30C Pin E2 31NC 30NC 27NO 29NO 28NO 26NO 25NO 22NO 23NO 24NO 21NO 20NO 27C 29C 28C 26C 25C 22C 24C 23C 21C 20C A32 Pin 18NO 19NO 17NO ...

Page 20: ...ends should be stripped 6 mm 0 25 inch and tinned to prevent single strands from shorting to adjacent terminals Figure 1 10 Wiring a Terminal Module continued on next page Tighten wraps to secure wires Remove Clear Cover 1 Remove and Retain Wiring Exit Panel 2 Make Connections 3 Route Wiring Install Connectors Solder Eye Only 4 5 A Release Screws B Press Tab Forward and Release Tab Remove 1 of the...

Page 21: ...ire exit holes in panels Cut required Install the Terminal 8 Module 6 possible hole as small as Keep wiring exit panel Extraction Levers Terminal Module onto the E1463A tighten screws B Press down and Push in the Extraction Levers to Lock the 9 onto the fixture A Hook in the top cover tabs Replace Clear Cover 7 ...

Page 22: ...use a small screwdriver to release the two extraction To remove the terminal module from the E1463A onto the E1463A module Push in the extraction levers to lock the terminal module the terminal module to the Apply gentle pressure to attach Align the terminal module connectors to the E1463A module connectors 4 E1463A module extraction levers to release the two 3 2 Levers Extraction Module E1463A Ex...

Page 23: ...or reduces relay life CAUTION Exceeding specified maximum inputs can cause catastrophic failure Switching Frequency Relay contacts heat up when switched As the switching frequency increases the contacts have less time to dissipate heat The resulting increase in contact temperature also reduces relay life End of Life Detection A preventive maintenance routine can prevent problems caused by unexpect...

Page 24: ... can be 5 to 10 times greater than the steady state current Table 1 1 summarizes inrush current magnitudes for different types of loads Be aware of heavy current applications When a relay is used in heavy current applications the thin layer of gold plating on the contact may be destroyed This will not affect the heavy current application However if you go back to a low current application a high c...

Page 25: ...your circuit When installing circuit protection a jumper must be removed first To install these protective devices it is necessary to remove the sheet metal covers from the module The locations for installing the devices are labeled as shown in Table 1 2 where xx the channel number Do not install a capacitor in any of these locations Figure 1 13 shows locations where these protective devices can b...

Page 26: ...annels each carrying 5A or some combination of channels and currents that total 50A This will produce about 67 5 W of internal dissipation leading to an approximate 15oC temperature rise Figure 1 14 shows a typical way to derate the channels in terms of current throughout the channels to keep internal power dissipation under 45 W and 67 5 W or 10o C and 15o C temperature rise respectively Figure 1...

Page 27: ...C or a PC with an 82350A or equivalent Interface Card with command library running Borland Turbo C NOTE Most examples in this manual use SCPI commands See Appendix B for information on writing directly to the registers To address specific channels relays within a Form C switch you must specify the SCPI command and switch channel list Table 1 3 lists the most commonly used commands Addressing the F...

Page 28: ...C switch channel numbers are 00 through 31 The channels can be addressed using channel numbers or channel ranges single channels ccnn multiple channels ccnn ccnn sequential channels ccnn ccnn groups of sequential channels ccnn ccnn ccnn ccnn or any combination of the above Use a comma to form a channel list or a colon to form a channel range Only valid channels can be accessed in a channel list or...

Page 29: ...alue Display result 60 END Example Closing a Channel TURBO C This program closes channel 02 of a Form C switch at logical address 120 secondary address 120 8 15 and queries the channel closure state The result is returned to the computer and displayed 1 channel closed 0 channel open See Chapter 3 for information on the SCPI commands include stdio h include chpib h Include file for GPIB define ISC ...

Page 30: ...30 Getting Started Chapter 1 char ch if error NOERR printf n Error d s n error errstr error printf in call to function s n n routine printf Press Enter to exit scanf c ch exit 0 return 0 ...

Page 31: ... 7 primary address 09 and secondary address 15 LADDR 120 Form C Switch Commands Table 2 1 explains some of the SCPI commands used in this chapter See Chapter 3 for more information on these commands Table 2 1 E1463A Form C Switch Commands Used in Chapter 2 SCPI Command Command Description ROUTe CLOSe channel_list Closes the channels in the channel_list ROUTe CLOSe channel_list Queries the state of...

Page 32: ...ntification BASIC 10 DIM A 50 B 50 C 50 IDimensions three string variables to fifty characters 20 OUTPUT 70915 RST CLS Outputs the commands to reset and clears the status register 30 OUTPUT 70915 IDN Queries for module identification 40 ENTER 70915 A IEnters the results into A 50 OUTPUT 70915 SYST CDES 1 Outputs the command for a card description 60 ENTER 70915 B Enters the results into B 70 OUTPU...

Page 33: ...OUT 7L 5 0 TIMEOUT error_handler IOOUTPUTS FORMC TASK1 15 OUTPUT command error_handler IOENTERS FORMC into1 length ENTER command error_handler IOOUTPUTS FORMC TASK2 12 OUTPUT command error_handler IOENTERS FORMC into2 length ENTER command error_handler IOOUTPUTS FORMC TASK3 12 OUTPUT command error_handler IOENTERS FORMC into3 length ENTER command printf IDENTIFICATION s into1 printf CARD DESCRIPTI...

Page 34: ...ng Channels BASIC This BASIC program shows one way to close and open channel 2 on an E1463A Form C module card 1 NOTE Implied commands are those that appear in square brackets in the command syntax The brackets are not part of the command and are not sent to the instrument For example in the following program ROUTe can be eliminated and just the CLOSe command can be used 10 DISP TEST E1463A Module...

Page 35: ...quired for the 10 dB and 20 dB steps The 8761A and 33300A C operate from a 12V 15V coil voltage while the 8761B and 33300B D operate from a 24V 30V coil voltage To close channel 00 execute the following To open channel 00 use OPEN 100 10 DISP Applying 12V 20 OUTPUT 70915 CLOS 100 Close channel 00 relay connect NO to C 1 is the card number and 00 is the channel number 30 END Figure 2 1 Example Volt...

Page 36: ... C1C C1NO C1NC C0C MODULE MODULE E1463A C E1463A Channel C MODULE TERMINAL NO NC 00 Channel NC C0NO C0NC C0C C0NC MODULE TERMINAL NO 00 C0NO 8761B RF Switch or 33300B D Step Attenuator 6206B 24V Coil Voltage EXTERNAL 2 1 Port 2 2 33300A C Step Attenuator 8761A RF Switch or 33300 12V Coil Voltage Port C 8761 2 1 12V 6205C EXTERNAL 12V Port 1 1 2 1 ...

Page 37: ...00 is the channel number 30 END Example Matrix Switching BASIC The Form C switch module can be configured as a 4 x 8 single wire matrix to connect any combination of up to four user sources S0 S1 S2 S3 to any combination of up to eight user instruments I0 I1 I1 I7 at a time To do this make the connections shown in Table 2 3 Figure 2 3 Example Digital Output Configuration C NO NC Channel 00 C0NO C0...

Page 38: ...1 is the card number 20 and 25 are channel numbers 30 END 5 13 21 and 29 6 14 22 and 30 7 15 23 and 31 Table 2 3 Matrix Switching Connections Connect These Common C Channel Numbers Together Connect These Normally Open NO Channel Numbers Together Figure 2 4 Example Matrix Switching 03 11 19 27 Close this channel to connect S to I C 24 25 C C 26 C S3 S2 S1 C C S0 I0 C NO NO 16 NO 08 17 C NO NO 09 C ...

Page 39: ...formation about these SCPI commands Example Scanning Using Trig In and Trig Out Ports BASIC This example shows one way to synchronize instrument measurements of a device under test DUT with Form C switch channel closures For measurement synchronization the E1406A Command Module Trig In and Trig Out ports are connected to the instrument Voltmeter Complete and External Trigger ports See Figure 2 5 f...

Page 40: ...e E1406A Command Module TTL trigger bus lines to synchronize Form C channel closures to an E1412A System Multimeter For measurement synchronization the E1406A TTL trigger bus line 0 is used by the Form C module to trigger the multimeter to perform a measurement and the E1406A TTL trigger bus line 1 is used by the multimeter to advance the Form C scan Figure 2 6 shows one way to connect the Form C ...

Page 41: ... SOUR TTLTRG0 Multimeter triggers on TTL trigger line 0 50 OUTPUT 70903 OUTP TTLT1 STAT ON Multimeter pulses TTL trigger line 1 on measurement complete 60 OUTPUT 70903 CONF RES AUTO DEF Set multimeter function to resistance range NPLC 70 OUTPUT 70903 TRIG DEL 0 COUN 3 CAL ZERO AUTO ON Set multimeter trigger delay counts calibration state 80 OUTPUT 70903 OPC Check to see if multimeter is ready When...

Page 42: ...re closed 40 ENTER 70915 Channels Enters the results from the switch card into the variable Channels 50 PRINT Channels Closed Channels Prints the channels closed should print 1s 60 END Using the Scan Complete Bit You can use the Scan Complete bit bit 8 in the Operation Status Register in the command module of a switchbox to determine when a scanning cycle completes no other bits in the register ap...

Page 43: ... 115 Select channels to scan 60 OUTPUT 70915 OPC Wait for operation complete 70 ENTER 70915 A 80 PRINT OPC A 90 OUTPUT 70915 STAT OPER ENAB Query the contents in the operation status register 100 ENTER 70915 A 110 PRINT STAT OPER ENAB A Print the contents of the operation status register 120 OUTPUT 70915 STB Query the contents of the status byte register 130 ENTER 70915 A 140 PRINT Switch Status A...

Page 44: ...o the SAV settings list for the settings recalled by RCL Example Saving and Recalling State BASIC This program shows how to save and recall Form C switch states 10 DIM A 150 Dimension a string variable for 150 characters 20 OUTPUT 70915 CLOS 100 131 Close channels 00 31 on the Form C switch 30 OUTPUT 70915 SAV 5 Save as numeric state 5 40 OUTPUT 70915 RST CLS Reset and clear the Form C switch 50 O...

Page 45: ...xample Detecting Error Conditions Turbo C This Turbo C program attempts an illegal channel closure and polls for an error message If no error occurs the switchbox responds with 0 No error If there has been more than one error the instrument will respond with the first error in its error queue Subsequent queries continue to read the error queue until it is empty The maximum err_message string lengt...

Page 46: ... way to synchronize a Form C switch module with a measurement instrument In this example the Form C switch module switches a signal to a multimeter The program then verifies the channel is closed before the multimeter begins its measurement 10 OUTPUT 70915 CLOS 105 Close channel 5 20 OUTPUT 70915 OPC Wait for operation complete 30 ENTER 70915 Opc_value 40 OUTPUT 70915 CLOS 105 Check to see if chan...

Page 47: ...aracters in length always begin with the asterisk character and may include one or more parameters The command keyword is separated from the first parameter by a space character Some examples of Common commands are shown below RST ESE unmask STB SCPI Command Format The SCPI commands perform functions like closing switches opening switches scanning channels querying instrument states or retrieving ...

Page 48: ...or You may use uppercase or lowercase letters Therefore TRIGGER trigger and TrigGeR are all acceptable Implied Commands Implied commands are those that appear in square brackets in the command syntax The brackets are not part of the command and are not sent to the instrument Suppose you send a second level command but do not send the preceding implied command In this case the instrument assumes yo...

Page 49: ...se ON OFF 1 0 Any non zero value is considered true Discrete Selects from a finite number of values These parameters use mnemonics to represent each valid setting An example is the TRIGger SOURce source command where source can be BUS EXTernal HOLD IMMediate or TTLTrgn Numeric Commonly used decimal representations of numbers including optional signs decimal points and scientific notation Examples ...

Page 50: ...n is enabled via an interface an interface CLEAR command can be used to stop the scan When the scan is enabled via the interface and TRIG SOUR BUS or HOLD is set you can use ABORt to stop the scan Related Commands ARM INITiate CONTinuous ROUTe SCAN TRIGger Example Stopping a Scan with ABORt This example stops a continuous scan in progress TRIG SOUR BUS Trigger command will be via backplane bus int...

Page 51: ...67 cycles Parameters Comments Number of Scans Use only numeric values between 1 and 32767 MIN or MAX for the number of scanning cycles Related Commands ABORt INITiate IMMediate RST Condition ARM COUNt 1 Example Setting Ten Scanning Cycles This example sets a Form C switch for 10 scans of channels 00 through 03 When the scan sequence completes channels 00 through 03 relays 00 through 03 are closed ...

Page 52: ...s a parameter MIN returns 1 and MAX returns 32 767 Parameters Comments Related Commands INITiate IMMediate Example Querying Number of Scans This example sets a switchbox for 10 scanning cycles and queries the number of scan cycles set The ARM COUN command returns 10 ARM COUN 10 Set 10 scans per INIT command ARM COUN Query number of scans Name Type Range of Values Default Value MIN MAX numeric MIN ...

Page 53: ...odule in a switchbox to be monitored Parameters Comments Selecting a Specific Module to be Monitored Use DISPlay MONitor CARD to send the card number for the switchbox to be monitored Selecting the Present Module to be Monitored Use DISPlay MONitor CARD AUTO to select the last module addressed by a switching command for example ROUTe CLOSe RST Conditions DISPlay MONitor CARD AUTO Example Select Mo...

Page 54: ...se DISPlay MONitor CARD number AUTO to select the module Monitor Mode with a Form C Switch When monitoring mode is turned ON decimal numbers representing the channels closed will be displayed at the bottom of the display terminal For example if channels 3 7 and 12 are closed the bottom of the display will read as follows where the channel numbers represent channels that are closed Chan 3 7 12 etc ...

Page 55: ...ified by TRIGger SOURce advances the scan through the channel list A trigger at the end of the channel list closes the first channel in the channel list and the scan cycle repeats Noncontinuous Scanning Operation Noncontinuous scanning is enabled with INITiate CONTinuous OFF or INITiate CONTinuous 0 Sending INITiate IMMediate closes the first channel in the channel list Each trigger from the sourc...

Page 56: ... INIT CONT ON Enable continuous scanning INIT CONT Query continuous scanning state INITiate IMMediate INITiate IMMediate starts the scanning process and closes the first channel in the channel list Successive triggers from the source specified by the TRIGger SOURce command advance the scan through the channel list Comments Starting the Scanning Cycle INITiate IMMediate starts scanning by closing t...

Page 57: ... after channel closures The output pulse is a 5V negative going pulse Trig Out Port Shared by Switchboxes When enabled the Trig Out port is pulsed by any switchbox each time a scanned channel is closed To disable the output for a specific module send OUTPut EXTernal STATe OFF or OUTPut EXTernal STATe 0 for that module One Output Selected at a Time Only one output TTLTrg or EXTernal can be enabled ...

Page 58: ...ince the port is enabled OUTP EXT ON Enable E1406A Trig Out port OUTP EXT Query port enable state OUTPut STATe OUTPut STATe mode enables or disables the Trig Out port on the E1406A Command Module OUTPut STATe ON 1 enables the port and OUTPut STATe OFF 0 disables the port This command functions the same as OUTPut EXTernal STATe Parameters Comments RST Condition OUTPut STATe OFF port disabled Exampl...

Page 59: ... Trigger bus line n specifies the TTL Trigger bus line 0 to 7 and mode enables ON or 1 or disables OFF or 0 the specified TTL Trigger bus line Parameters Comments Enabling TTL Trigger Bus When enabled a pulse is output from the selected TTL Trigger bus line 0 to 7 after each channel in the switchbox is closed during a scan If disabled a pulse is not output The output is a negative going pulse One ...

Page 60: ...TLTrgn STATe queries the present state of the specified TTL Trigger bus line The command returns 1 if the specified TTLTrg bus line is enabled or 0 if disabled Example Query TTL Trigger Bus Enable State This example enables TTL Trigger bus line 7 and queries the enable state OUTPut TTLTrgn returns 1 since the port is enabled OUTP TTLT7 STAT 1 Enable TTL Trigger bus line 7 OUTP TTLT 7 Query bus ena...

Page 61: ...list channel_list has the form ccnn where cc card number 01 99 and nn channel number 00 31 Parameters Comments Closing Channels To close a single channel use ROUT CLOS ccnn To close multiple channels use ROUT CLOS ccnn ccnn To close sequential channels use ROUT CLOS ccnn ccnn To close groups of sequential channels use ROUT CLOS ccnn ccnn ccnn ccnn or any combination of the above NOTE Closure order...

Page 62: ...t software state of the channel s specified It does not account for relay hardware failures A maximum of 128 channels can be queried at one time If you want to query more than 128 channels you must enter the query data in two separate commands Example Querying Channel Closure This example closes channels 100 and 213 of a two module switchbox and queries channel closure Since the channels are progr...

Page 63: ...f card 1 and 213 opens channel 13 of card 2 ROUTe OPEN ROUTe OPEN channel_list returns the current state of the channel s queried channel_list has the form ccnn where cc card number 01 99 and nn channel number 00 31 The command returns 1 if channel s are open or returns 0 if channel s are closed Comments Query is Software Readback ROUTe OPEN returns the current software state of the channel s spec...

Page 64: ...ntial channels use ROUT SCAN ccnn ccnn ccnn ccnn or any combination of the above NOTE Channel numbers can be in the channel_list in any random order Scanning Operation When a valid channel list is defined INITiate IMMediate begins the scan and closes the first channel in the channel_list Successive triggers from the source specified by TRIGger SOURce advance the scan through the channel list At th...

Page 65: ...4 and 3 respectively can be queried with the STB command Standard Event Status Register In the Standard Event Status Register you can use ESE to query the unmask value the bits to be logically ORed into the Summary bit The registers are queried using decimal weighted bit values Decimal equivalents for bits 0 through 15 are shown in Figure 3 1 OPERation Status Register Using STATus OPERation ENABle...

Page 66: ...64 32 16 8 4 2 1 128 64 32 16 8 4 2 1 2 128 4 8 16 32 1 RQS ESB MAV 1 7 6 3 5 4 2 0 unmask examples ESE 61 unmasks standard event register bits 0 2 3 4 and 5 ESE 128 only unmasks bit 7 SRE 128 unmasks the OPR bit operation in the status byte register This is effective only if the STAT OPER ENAB 256 command is executed STAT QUES ENAB 256 unmasks the Scan Complete Operation Complete 128 7 Register b...

Page 67: ...7 of the Status Byte Register STATus OPERation ENABle 256 sets bit 7 OPR of the Status Byte Register to 1 after bit 8 Scan Complete of the OPERation Status Register is set to 1 Related Commands ROUTe SCAN Example Enabling Operation Status Register Bit 8 STAT OPER ENAB 256 Enable bit 8 of the OPERation Status Register to be reported to bit 7 OPR in the Status Byte Register STATus OPERation ENABle S...

Page 68: ...he OPERation Status Register is set to 1 The command returns 0 if bit 8 of the OPERation Status Register is set to 0 Event Register Cleared Reading the Event Register within the OPERation Status Register with STATus OPERation EVENt clears the Event Register Aborting a Scan Aborting a scan will leave bit 8 set to 0 Related Commands ROUTe SCAN Example Reading the OPERation Status Register After a Sc...

Page 69: ...tion number returns the description of a selected module card in a switchbox Parameters Comments Form C Switch Module Description SYSTem CDEScription returns 32 Channel General Purpose Relay Example Reading the Description of a Module SYST CDES 1 Return description of module card 1 SYSTem CPON SYSTem CPON number ALL sets the selected module card in a switchbox to its power on state Parameters Name...

Page 70: ...f the module revision code number Example Reading the Model Number of a Module SYST CTYP 1 Return the model number SYSTem ERRor SYSTem ERRor returns the error numbers and corresponding error messages in the error queue of a switchbox See Appendix C for a listing of switchbox error numbers and messages Comments Error Numbers Messages in the Error Queue Each error generated by a switchbox stores an ...

Page 71: ...m of 30 error numbers messages for each switchbox If the queue overflows the last error number message in the queue is replaced by 350 Too many errors The least recent error numbers messages remain in the queue and the most recent errors are discarded Example Reading the Error Queue SYST ERR Query the error queue ...

Page 72: ... and an INITiate IMMediate must be executed BUS or HOLD Source Remains If selected TRIGger SOURce BUS or TRIGger SOURce HOLD remains in effect after triggering a switchbox with TRIGger IMMediate Related Commands INITiate ROUTe SCAN Example Advancing Scan Using TRIGger This example uses TRIGger IMMediate to advance the scan of a single module switchbox from channel 00 through 03 Since TRIGger SOURc...

Page 73: ...hanged the external trigger source is available to the next switchbox requesting it with a TRIGger SOURce EXTernal command If a switchbox requests an external trigger input already assigned to another switchbox an error is generated Using Bus Triggers To trigger the switchbox with bus triggers when TRIGger SOURce BUS selected use the IEEE 488 2 common command TRG or the GPIB Group Execute Trigger ...

Page 74: ...riggering TRIG SOUR BUS to scan channels 00 through 03 of a single module switchbox The trigger source to advance the scan is the TRG command as set with TRIGger SOURce BUS When INIT is executed the scan is started and channel 00 is closed Then each TRG command advances the scan to the next channel TRIG SOUR BUS Select interface bus triggering SCAN 100 103 Scan channels 00 through 03 INIT Begin sc...

Page 75: ...es the specified TTL trigger line ROUTe CLOSe channel _list CLOSe channel _list OPEN channel_list OPEN channel _list SCAN channel_list Closes channel s Queries channel s closed Opens channel s Queries channel s opened Defines channels for scanning STATus OPERation CONDition OPERation ENABle unmask OPERation ENABle OPERation EVENt PRESet Returns status of the Condition Register Enables the Operatio...

Page 76: ...output queue when all pending operations have completed Used to synchronize between multiple instruments RCL Recall Instrument State Recalls previously stored configuration RST Reset Opens all channels and sets the module to a known state SAV Save Instrument State Stores the current configuration in specified memory SRE Service Request Enable Sets the Service Request Enable Register bits and corre...

Page 77: ... 16 AWG Input Characteristics Maximum Input Voltage 220 Vdc or 250 Vacrms Terminal to Terminal 220 Vdc or 250 Vacrms Terminal to Chassis Maximum Switchable Power per Channel 150 W dc 1250 VA per switch 1500 W dc 12 500 VA per module Maximum Current per Channel non inductive 5 Adc or acrms DC Performance Insulation Resistance between any two points 5x106 Ω at 40 C 95 RH 5x108 Ω at 25 C 40 RH Closed...

Page 78: ...78 Form C Switch Specifications Appendix A Notes ...

Page 79: ...module register programming is not recommended The SCPI driver maintains an image of the card state The driver will be unaware of changes to the card state if you alter the card state by using register writes Register based programming is a series of reads and writes directly to the Form C switch registers This increases throughput speed since it eliminates command parsing and allows the use of an...

Page 80: ... the starting location of the register addresses LADDR is the switch s logical address and 64 is the number of address bytes per VXI device For example the switch s factory set logical address is 120 7816 If this address is not changed the switch will have a base address of C00016 120 64 16 C00016 1E0016 DE0016 or decimal 49 152 120 64 49 152 7680 56 832 A16 Address Space Inside the Command Module...

Page 81: ...SPACE ADDRESS REGISTER 16 16 FFFF ID Register A16 REGISTER MAP E1463A or 49 152 Logical Address 64 Logical Address 64 16 10 16 DESCRIPTION Status Control Register Device Type Register Relay Control Register 1 Relay Control Register 2 06 REGISTER OFFSET 04 02 00 16 16 16 16 16 08 Register Address Base address Register Offset 2 080 768 Logical Address 64 Logical Address 64 000000 IF0000 200000 16 16...

Page 82: ...Identification Register The Manufacturer Identification Register is at offset address 0016 and returns FFFF16 This shows that Agilent Technologies is the manufacturer and the module is an A16 register based module This register is read only Device Type Register The Device Type Register is at offset address 0216 and returns 012116 for an E1463A Form C Switch module This register is read only Status...

Page 83: ...r of the interrupt status For example if the Form C switch module is not busy bit 7 1 and the interrupt is enabled bit 6 0 a read of the Status Control Register base 0416 returns FFBF Writing to the Status Control Register You can only write to bits 0 and 6 of the Status Control Register Enable bit 6 Writing a 1 to this bit disables the interrupt function of the module Soft Reset bit 0 Writing a 1...

Page 84: ...e the channel number to be written to Writes to the Relay Control Registers enable you to open or close the desired channel For example write a 1 to bit 2 of Relay Control Register 1 to close channel 02 Relay Control Register Channels 00 15 b 0616 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Write CH15 CH14 CH13 CH12 CH11 CH10 CH09 CH08 CH07 CH06 CH05 CH04 CH03 CH02 CH01 CH00 Read Always returns FFFF16 R...

Page 85: ... to store register names and addresses 60 DIM Reg_name 1 3 32 Reg_addr 1 3 70 80 Read register names and addresses into the arrays 90 READ Reg_name 100 READ Reg_addr 110 120 Set base address variable 130 Base_addr DVAL DE00 16 140 150 Map the A16 address space in the controller 160 170 CONTROL 16 25 2 180 Call the subprogram Read_regs 190 Read_regs Base_addr Reg_name Reg_addr 200 210 DATA Identifi...

Page 86: ...inters unsigned short id_reg unsigned short device_type unsigned short status_reg unsigned short bank0_channels DEV_REGS main open the controller VXI interface fd open dev vxi primary O_RDWR if fd perror open exit 1 retrieve the A16 pointers dev struct dev_regs vxi_get_a16_addr fd logical_address sub to read the registers read_reg dev END of main program SUB READ_REG int read_reg reg_ptr DEV_REGS ...

Page 87: ... 32 Reg_addr 1 1 70 80 Read register names and address into the arrays 90 READ Reg_name 100 READ Reg_addr 110 120 Set base address variable 130 Base_addr DVAL DE00 16 140 150 Map the A16 address space in the controller 160 CONTROL 16 25 2 170 Call the subprogram Make_meas 180 Make_meas Base_addr Reg_addr 190 200 DATA Bank0 channels register 210 DATA 06 220 END 280 This subprogram closes bit 1 of b...

Page 88: ... For example instead of 10000 you might need to use 12000 makemeas c include time h include sys vxi h source file for controller VXI drivers include fcntl h include stdio h define logical_address 120 logical address of Form C Switch int fd typedef unsigned short word typedef struct dev_regs set up pointers unsigned short id_reg unsigned short device_type unsigned short status_reg unsigned short ba...

Page 89: ...second tv_sec lapsed tv_usec second tv_usec first tv_usec lapsed tv_sec second tv_sec first tv_sec printf Elapsed time for closing a channel is ld sec ld usec n lapsed tv_sec lapsed tv_usec SUB MAKE_MEAS int make_meas reg_ptr DEV_REGS reg_ptr close bit 1 of bank0 reg_ptr bank0_channels 0x0001 for j 0 j 10000 j wait for switch to close printf n Making Measurement make measurements open bit 1 of ban...

Page 90: ...s into the arrays 90 READ Reg_name 100 READ Reg_addr 110 Set base address variable 120 Base_addr DVAL DE00 16 130 140 Map the A16 address space in the controller 150 CONTROL 16 25 2 160 Call the subprogram Scan_meas 170 Scan_meas Base_addr Reg_addr 180 190 DATA Bank0 channels register 200 DATA 06 210 END 270 This subprogram sets all bits in bank0 open then scans through 280 bank 0 closing one chan...

Page 91: ...or loop For example instead of 10000 you might need to use 12000 The math h include file requires a lm option when compiling this program scanning c include time h include math h file to perform math functions include sys vxi h source file for controller VXI drivers include fcntl h include stdio h define logical_address 120 logical address of Form C Switch define lastch15 int fd i reg double y typ...

Page 92: ...d tzp if first tv_usec second tv_usec second tv_usec 1000000 second tv_sec lapsed tv_usec second tv_usec first tv_usec lapsed tv_sec second tv_sec first tv_sec printf Elapsed time for closing a channel is ld sec ld usec n lapsed tv_sec lapsed tv_usec SUB SCAN_MEAS int scan_meas reg_ptr DEV_REGS reg_ptr set bank0 to 000 reg_ptr bank0_channels 0x000 i 0 for i 0 i lastch i y i reg pow 2 0 y reg_ptr b...

Page 93: ...e C 1 Error numbers with positive values are not governed by the SCPI standard See the E1406A Command Module User s Manual for further details on these errors Table C 1 Error Types Range Error Types Description 199 to 100 Command Errors syntax and parameter errors 299 to 200 Execution Errors instrument driver detected errors 399 to 300 Device Specific Errors instrument driver errors that are not c...

Page 94: ...n assigned to another switchbox 2000 Invalid Card Number Addressing a module card in a switchbox that is not part of the switchbox 2001 Invalid Channel Number Attempting to address a channel of a module in a switchbox that is not supported by the module e g channel 99 of a multiplexer module 2006 Command Not Supported On This Card Sending a command to a module card in a switchbox that is unsupport...

Page 95: ...TATe 54 documentation history 8 E error conditions detecting 45 error messages 93 94 error types 93 examples Advancing Scan Using TRIGger 72 Closing a Channel BASIC 29 Closing a Channel TURBO C 29 Closing Form C Switch Channels 62 Controlling RF Switches BASIC 35 Detecting Error Conditions BASIC 45 Detecting Error Conditions Turbo C 45 Digital Output Configuration BASIC 37 Enabling Trig Out Port 5...

Page 96: ...55 INITiate CONTinuous 55 INITiate CONTinuous 56 INITiate IMMediate 56 installing switch in mainframe 17 instrument VXIbus 11 interrupt priority setting 16 L linking commands 49 logical address switch setting 15 M Manufacturer ID register 82 module identification 32 O offset register 81 operation status register 42 operation switch 11 Option A3G terminal module 18 OUTPut subsystem 57 OUTPut EXTern...

Page 97: ...channel addresses 28 configuration 13 14 connector pinouts 19 current maximum 26 description 11 error conditions 45 error messages 93 94 error types 93 installing in mainframe 17 S continued switch cont d logical address 15 module identification 32 operation 11 programming 27 power on conditions 32 querying 42 recalling states 44 relays 12 reset conditions 32 saving states 44 scan complete bit 42 ...

Page 98: ...98 Index Notes ...

Reviews: