User’s Manual 3488 Mode Supplement This manual describes the Agilent 3499A/B/C Switch/Control System when used in the 3488 mode of operation. This manual is a supplement to the Agilent 3499A/B/C Switch/Control System User’s Manual (shipped with the instrument). Adobe Acrobat (PDF) versions of the user’s manual are available at www.agilent.com. © Copyright Agilent Technologies, Inc.
Agilent 3499A/B/C at a Glance The Agilent Technologies 3499A/B/C Switch/Control System provides a convenient mechanical and programming environment for a variety of plug-in modules. With appropriate plug-in modules, the Switch/Control System provides high density/high speed switching and digital I/O capability.
Plug-in Modules at a Glance The Agilent 3499A/B/C mainframes support a variety of plug-in modules to make test system configuration easy.
The Front Panel at a Glance 1. Power On/Standby 8. Scan Keys (see page 78) 2. Reset Module/Instrument 9. Main Menu 3. Shift/Local 10. Open/Close Relay Channels 4. Store/Recall Instrument State 11. Enter a Value/Confirm Selection 5. Monitor Channel/Port/Module 12. Read/Write Digital I/O Ports 6. View Menu 13. Knob 7. Mode Menu 14. Navigation Arrow Keys Note The front panel shown above is the Agilent 3499B. The 3499A and 3499C front panels are similar and have identical functionality.
The Display at a Glance Channel/Slot Number Annunciators The display is divided into several areas. The channel and slot number is always displayed on the right corner of the display. The main area, which is in the center of the display, is primarily used to display channel status (open or closed), information messages, menu items, prompt information, error messages, and so on. Around the display are annunciators to indicate various states of the instrument operation.
The Rear Panel at a Glance The figure below shows the Agilent 3499A rear panel. Slot 1 Slot 4 Slot 2 Slot 5 Slot 3 Slot 0 Control Module GPIB Connector RS-232 Connector Power Input Mini DIN Connector The figure below shows the Agilent 3499B rear panel.
The figure below shows the Agilent 3499C rear panel. Option FP1 (1-slot) and FP2 (2-slot) filler panels can be ordered to cover any unused slots. Slot 1 Slot 2 Slot 3 Slot 4 Slot 5 Mini DIN Connector Slot 6 Slot 7 (2 slot width) Slot 8 (3 slot width) Slot 9 (3 slot width) Slot 0 Control Module GPIB Connector WARNING RS-232 Connector Power Input For protection from electrical shock, the power cord ground must not be defeated.
In This Book Quick Start Chapter 1 prepares the switch/control system for use and helps you get familiar with a few of its front-panel features. Front-Panel Menu Operation Chapter 2 introduces you to the frontpanel menu and describes some of the switch/control system’s menu features. System Overview Chapter 3 gives an overview of a switch/control system, describes how parts of the system work together, and describes the channel addressing scheme used.
Contents Chapter 1 Quick Start 11 To Prepare the Instrument for Use 13 To Install a Module in the 3499A/B/C 15 Basic Operation 17 To Rack Mount the 3499A/B/C 21 Filler Panels 24 Chapter 2 Front-Panel Operation 25 Contents To Power On the Instrument 27 To Select the System Mode 27 To Monitor a Channel or a Slot 28 To Use a Digital I/O Port 30 To View Instrument Errors 35 Scanning Operation 37 To Pair Two Modules Together 40 To Configure for External Trigger 41 To Configure the Power-on State 43 To Configu
Contents Chapter 4 Features and Functions 73 Monitoring a Channel or a Slot 75 Switching a Relay Channel 77 Scanning 78 Digital I/O Operation 84 State Storage 94 Error Conditions 96 Self-Test 96 Display Control 97 Relay Cycle Counts 98 Contents Chapter 5 Remote Interface Reference 99 Command Syntax 101 3488 Mode Command Quick Reference 102 3488 Mode Commands 104 Chapter 6 Error Messages 135 Error Messages 136 Self Test Errors 136 Chapter 7 Application Programs 137 Visual C++ Example Program 139 Visual
1 1 Quick Start
Quick Start 1 This chapter describes the procedure to install the plug-in modules into an Agilent 3499A/B/C mainframe and mount the mainframe onto a system rack. The basic operations of the Agilent 3499A/B/C Switch/ Control System is also described.
Chapter 1 Quick Start To Prepare the Instrument for Use 1 To Prepare the Instrument for Use 1 Check the list of supplied items Verify that you have received the following items with your Agilent 3499A/B/C mainframe: ❏ One power cord; 4 ❏ This User’s Manual; ❏ One Quick Reference Guide; ❏ One Tie Down Clip 03499-21002 (for Agilent 3499B only); ❏ Any plug-in modules that you ordered are delivered in separate shipping containers. 2 Connect the power cord and turn on the instrument 1.
Chapter 1 Quick Start To Prepare the Instrument for Use 1 When shipped from the factory, the SCPI mode and the GPIB interface address of “9” are used. Slot 0 refers to the built-in controller board of the switch/control system. If the Instrument Does Not Turn On 1. Verify that the power cord is firmly plugged into the power receptacle on the rear panel of the 3499A/B/C. 2. Make sure that the power source the 3499A/B/C is plugged into is energized. 3. Verify that the 3499A/B/C is turned on.
Chapter 1 Quick Start To Install a Module in the 3499A/B/C 1 To Install a Module in the 3499A/B/C The plug-in modules you ordered were not installed in the mainframe. The figure on page 16 shows how to install a plug-in module into the 3499B mainframe. Other mainframes use similar procedures. WARNING Disconnect the power cord from the rear panel of the mainframe prior to 4 installing or removing any modules. Caution Use anti-static procedures when configuring, installing or removing any plug-in modules.
1 STEP 2 STEP 1 1. Face the mainframe rear panel toward you. 2. Select a slot in which the module is to be installed. 1. Hold the sides of the module, component side down, by the metal shields. 2. Insert the module into the slot guides and slide the module toward the front of the instrument. 3. Push firmly until the module “snaps” into place. 4. Push both plastic levers inward to lock the module. STEP 3 (for modules with terminal blocks) STEP 4 (for modules with terminal blocks) 1.
Chapter 1 Quick Start Basic Operation 1 Basic Operation An Agilent 3499A/B/C Switch/Control System can be easily operated from the front-panel, or programmed with SCPI commands over the remote interface. The following sections are only intended to show the basic front-panel operation. For detailed front-panel operation, refer to the “Front-Panel4 Operation” chapter on page 25. For more information about programming the instrument, refer to the “Remote Interface Reference” chapter on page 99.
Chapter 1 Quick Start Basic Operation 1 To Select a Slot and Channel When the instrument is first turned on, the display shows the model number and the slot number of the controller board. 3499 0 Use the knob to select a channel on the active slot. For example, with the display shown above, turning the knob to the right will select the first of the individual built-in digital I/O ports. DIN 090 The “DIN” indicates the port is set for a digital input operation.
Chapter 1 Quick Start Basic Operation 1 To Open or Close a Channel When a channel is selected, you can open or close the channel using the front panel keys. For example, with an N2260A 40-channel MUX installed in slot 1, select channel 00 as described on the previous page. MUX OPEN 100 4 Press the CLOSE key to close the channel. MUX CLOSED 100 Press the OPEN key to open the channel MUX OPEN 100 In this manner, you can select and control as many channels as you need.
Chapter 1 Quick Start Basic Operation 1 To Open All Channels on a Module You can open individual channels on a module one at a time as described above. There are times, however, when it would be more expedient to open all channels on a module at once. Use the arrow keys to select the module to work with. You cannot have an individual channel selected for this operation.
Chapter 1 Quick Start To Rack Mount the 3499A/B/C 1 To Rack Mount the 3499A/B/C You can mount the Agilent 3499A/B/C on a standard 19-inch EIA rack cabinet with the optional rack-mounting kits. The instructions and mounting hardware are included with each rack-mounting kit. Agilent 3499A 4 To rack mount a 3499A, the full-rack-width mainframe, order either: • • Rack-mount kit with handles, part number 5183-7170, or Rack-mount kit without handles, part number 5183-7171.
Chapter 1 Quick Start To Rack Mount the 3499A/B/C 1 Agilent 3499B To rack mount a single 3499B, order either: • Adapter kit, part number 5183-7172 (includes the flange and filler panel). Flange Filler Panel 3499B SWITCH/CONTROL SYSTEM To Rack Mount a Single Agilent 3499B with Adapter kit 5183-7172 OR • • • A Support Shelf, part number 5063-9255, A slide kit, part number 1494-0015, And a filler panel, part number 5002-3999.
Chapter 1 Quick Start To Rack Mount the 3499A/B/C 1 To rack mount two Agilent 3499B’s side-by-side (or any System II instrument next to an Agilent 3499B), order: • • A Support Shelf, part number 5063-9255, And a slide kit, part number 1494-0015.
Chapter 1 Quick Start Filler Panels 1 Agilent 3499C To rack mount an Agilent 3499C, order either: • • Adapter kit without handles, part number 5063-9216, or Adapter kit with handles, part number 5063-9223. Adapter kit To Rack Mount an Agilent 3499C Filler Panels Order filler panels to cover any unused slots in an Agilent 3499A/B/C.
2 2 Front-Panel Operation
Front-Panel Operation 2 The Agilent 3499A/B/C mainframes all operate the same from the frontpanel. This chapter does not give a detailed description of every possible front-panel operation. It does, however, give you a good overview of the front-panel menus and front-panel keys. See the “Features and Functions” chapter on page 73 for additional discussions of the instrument’s capabilities and operation.
Chapter 2 Front-Panel Operation To Power On the Instrument To Power On the Instrument To power on the instrument, press the power switch on the front panel. If the instrument is powered up for the first time, the instrument will use the factory default settings as shown on page 71. Otherwise, the instrument will power on to the state specified. Refer to "To Configure the Power-on State", on page 43 for more details.
Chapter 2 Front-Panel Operation To Monitor a Channel or a Slot To Monitor a Channel or a Slot 2 You can continuously monitor the current status of a particular switching channel, a digital I/O port, or an entire plug-in module. Monitoring from the front panel is especially useful when developing and debugging remote interface commands. 1. Press the monitor key, the MON annunciator lights up to indicate the instrument is in the monitoring state. 2. Select the slot or the channel/port to be monitored.
Chapter 2 Front-Panel Operation To Monitor a Channel or a Slot . Display Description 1:0,,,,,,6,,,9, 2 2 The display for a multiplexer or a GP relay module. This display indicates that the monitored module is in Slot 2 and channels 10, 16, and 19 are closed. 4 ROW 3:,1,,3,,,6,7 3 0;,,3,COL 3, 3 00:H255 DIO DOUT L254. 4 12 090 0 091 ROW 0:,1,,3, 5 00:H255 5 L254. The display for a matrix module.
Chapter 2 Front-Panel Operation To Use a Digital I/O Port To Use a Digital I/O Port 2 You can work with a digital I/O module as a port (all eight bits) or as individual bits. Reading a Digital I/O Port You can read data from the built-in 4-bit digital I/O port, or any one of the 8-bit ports on a digital I/O or multifunction module (with a DIO function). You can read the entire port (all bits) when you select the slot (for example, the built-in port is channel 090).
Chapter 2 Front-Panel Operation To Use a Digital I/O Port Writing to a Digital I/O Port You can write data to the built-in digital I/O port (numbered 090) or to one of the built-in digital I/O port bits (numbered 091 through 094), or any one of the 8-bit ports on a digital I/O or multifunction module (with a DIO function). To write to a port: 1. Select a digital I/O port. Use the knob to select the slot and channel number.
Chapter 2 Front-Panel Operation To Use a Digital I/O Port To Configure a Digital I/O Module 2 Digital I/O modules can be configured for handshake modes and control line, flag line, and I/O line polarity. Use the Mode menu to configure digital I/O parameters. See “Digital I/O Operation” on page 84 for detailed descriptions of the operating modes. Only plug-in modules can be configured this way, the built-in digital I/O port (control module) can only be configured at the port level (see page 33).
Chapter 2 Front-Panel Operation To Use a Digital I/O Port 5. Press Enter to select the new mode. The display changes to show the next menu level. CONT POL POS 2 4 6. You may change other configuration parameters as desired using the same procedure. When all desired configurations have been made, 4 press the Mode key to exit the configuration menu. The CONFIG annunciator turns off.
Chapter 2 Front-Panel Operation To Use a Digital I/O Port 5. Turn the knob until the desired data display format (i.e., BINARY) is displayed. 2 BINARY 090 6. Press Enter to make the change and return to the first level of the Mode menu. DISP FORMAT 401 7. Press Mode again to exit the current configuration, the CONFIG annunciator turns off. Note Once you have selected the data display format for a port, it applies to both input and output operations on that port.
Chapter 2 Front-Panel Operation To View Instrument Errors To View Instrument Errors You can view errors from the front panel. This feature is especially useful when developing remote instrument control. If an error occurs, the ERROR annunciator in the display will light. Errors are stored in the error queue in the order they occur. You read the errors in the same order. After all errors have been read, the queue is empty and the 4 ERROR annunciator turns off. To view instrument errors: 1.
Chapter 2 Front-Panel Operation To View Instrument Errors 3. Turn the knob to view other errors in the error queue (if any). 2 4. Press Enter to return to the first level of the View menu, the ERROR annunciator turns off. 5. Press View again to exit the View menu operation, the VIEW annunciator turns off. Note All errors are cleared, and the ERROR annunciator turns off, once the error queue is viewed. See the “Error Messages” chapter on page 135 for a complete list of error messages.
Chapter 2 Front-Panel Operation Scanning Operation Scanning Operation The instrument allows you to combine an external measurement device such as a Digital Multimeter (DMM) with multiplexer channels to create a scan. During a scan, the instrument closes the configured multiplexer channels one at a time to allow a measurement to be made on that channel. 4 Before initiating a scan, a scan list must be set up.
Chapter 2 Front-Panel Operation Scanning Operation 5. Repeat step 3 and 4 to add additional channels to the list. 2 6. When the desired channels have been added, press the S.List key again to return to the first level of the menu. ADD TO SCAN 107 7. Press S.List again to exit the menu. The CONFIG annunciator turns off. To Perform Scanning After the scan configuration is complete, the actual scan can be performed. 1. Press the Step key to close the first channel in the scan list. 2.
Chapter 2 Front-Panel Operation Scanning Operation To View a Scan List You can view which channels are included in a scan list. This example assumes that channels 103 through 107 are included in the scan list. 2 1. Press the View key. The VIEW annunciator lights up and the display shows the first level menu. ERROR 101 4 2. Turn the knob until “SCAN LIST” is displayed. SCAN LIST 101 3. Press Enter. The first channel in the scan list is displayed on the channel area.
Chapter 2 Front-Panel Operation To Pair Two Modules Together To Pair Two Modules Together 2 You can pair two modules together so that they operate as a single unit. The two modules to be paired must be identical (that is, they must have the same model number) and be installed in the same mainframe. When two modules are paired together, any operation on a channel of one module will be duplicated on the corresponding channel of the other module. The example below pairs modules installed in slots 2 and 5.
Chapter 2 Front-Panel Operation To Configure for External Trigger To Configure for External Trigger You can use one of two modules for an external trigger. The built-in rear panel TRIG IN and TRIG OUT pair (on the control module) or the EI (External Increment) and the CC (Channel Closed) pair on a 44474A module. Only one pair can be used at a time. You can specify which pair to use and whether a trigger out pulse is sent out when a relay is closed during scanning operations.
Chapter 2 Front-Panel Operation To Configure for External Trigger 2 4. Turn the knob to select the slot for the external trigger. Slot 0 (control module) is the built-in external trigger (available at the rear panel mini DIN connector, see page 7). If a 44474A is not installed, only slot 0 will be shown. Press Enter. The display shows the current setting for the external trigger. DISABLE 5. Turn the knob to show the alternate choice. ENABLE 6.
Chapter 2 Front-Panel Operation To Configure the Power-on State To Configure the Power-on State 2 Firmware Rev 4.0 ONLY. To read your firmware version, see the procedure on page 48. For more information about firmware revisions, see “Firmware and Control Module Description” on page 55. An instrument with Firmware REV 4.0 or later can be set to power on to the reset state (see “Factory Default and Reset States” on page 71) or to4 a state previously stored in a specified memory location.
Chapter 2 Front-Panel Operation To Configure the Power-on State 6. Turn the knob to select the desired memory location (i.e., 08). POWER ON 08 2 7. Press Enter to accept the stored state and return to the first level menu. More information about storing states is given on page 94 of this manual. POWER ON SET 8. Press the Menu key again to exit the Menu menu. The CONFIG annunciator turns off.
Chapter 2 Front-Panel Operation To Configure the Remote Interface To Configure the Remote Interface In 3488 mode, the instrument can communicate with a computer over the GPIB interface. When shipped from the factory, the GPIB interface is selected and its address is set to “9”. Note The RS-232 interface can be configured and used only in SCPI mode. 4 GPIB Interface Each device on the GPIB interface must have a unique address.
Chapter 2 Front-Panel Operation To Configure the Remote Interface 4. Press Enter to select the interface and show the first parameter. ADDRESS 09 2 5. Turn the knob to set GPIB address (i.e., 07). Valid addresses range from 00 to 30. ADDRESS 07 6. Press Enter to show the second parameter. SRQ ON 7. Press Enter to enable the instrument to assert the SRQ line when powered up. If the computer is so configured, this can be used to interrupt the system computer.
Chapter 2 Front-Panel Operation To Perform a Self-test To Perform a Self-test 2 The self-test feature of the instrument provides you with a method of verifying proper instrument operation. 1. Press the Menu key. The CONFIG annunciator lights up and the first level menu is shown. 4 CARD PAIR 2. Turn the knob to select “SELFTEST”. SELFTEST 3. Press Enter. The self test will begin. The display will briefly show a “starburst” pattern (all display segments lit).
Chapter 2 Front-Panel Operation To Query the Firmware Revision To Query the Firmware Revision 2 Perform the following procedure to query the 3499A/B/C firmware and revision. For a description of the firmware and hardware revisions, see “Firmware and Control Module Description” on page 55. 1. Press the Menu key. The CONFIG annunciator lights up and the first level menu is shown. CARD PAIR 2. Turn the knob to select “REVISION INFO”. REVISION INFO 3. Press Enter.
Chapter 2 Front-Panel Operation To Query the Serial Number To Query the Serial Number Perform the following procedure to query the 3499A/B/C serial number. 1. Press the Menu key. The CONFIG annunciator lights up and the first level menu is shown. CARD PAIR 4 1. Turn the knob to select “SERIAL NO”. SERIAL NO 2. Press Enter. The Agilent 3499A/B/C serial number is displayed. MY12345678 3. Press Enter again to return to the first level of the Menu menu. SERIAL NO 4.
Chapter 2 Front-Panel Operation Local/Remote Control Local/Remote Control 2 The instrument operates in two data entry modes, local and remote. In local mode, all keys on the front panel are fully functional. In remote mode, some front panel keys are locked (exception are: Local, Mon, View, Enter, the arrow keys, and the knob). The instrument will enter the remote state upon receipt of any command over the remote interface. The RMT annunciator lights.
3 3 System Overview
System Overview An Agilent 3499A/B/C Switch/Control System is composed of a mainframe and a set of Plug-in modules. This chapter provides a typical configuration of a test system using the 3499A/B/C for switching and control, followed by a description of the three mainframes and all the Plug-in modules.
Chapter 3 System Overview Agilent 3499A/B/C Switch/Control System Agilent 3499A/B/C Switch/Control System The Agilent 3499A/B/C Switch/Control System provides high density and high speed switching for routing test signals to and from your DUTs (devices under test) and test instruments such as external DMMs, scopes, counters, power supplies, etc.
Chapter 3 System Overview Mainframes Overview Mainframes Overview Three mainframes are available: 3 1 Slots Available Rack Width 3499A 5 full width 3499B 2 half width 3499C 91 full width The 3499C is designed to accommodate multiple width plug-in modules and has 9 logical slots but 14 mechanical slots. Slots 1 through 6 are 1-slot wide, slot 7 is 2-slots wide, and slots 8 and 9 are each 3-slots wide. See the figure on page 7 for more information.
Chapter 3 System Overview Firmware and Control Module Description Firmware and Control Module Description The Agilent 3499A/B/C and this manual support two versions of the Agilent 3499A/B/C control module and four versions of firmware. Firmware revisions and control module versions can be queried from the front-panel. See page 48 for a procedure to read the revision from the front-panel. 4 From the front-panel: Control Module Revision Firmware Revision Typical Display 1.0 1.0 REVISION 1.0 1.0 2.
Chapter 3 System Overview Firmware and Control Module Description State Storage Plug-in module Support Programming Modes Firmware Upgrade Needed? 1.0 Stored setups are cleared if power is cycled. Must upgrade hardware and firmware. Not Applicable YES 2.0 1.0 Stored setups are cleared if power is cycled. Supports all modules except: N2272A N2276A/B N2282A Firmware Version 2.0 allows programming in both SCPI Mode and 3488A Mode. Upgrade to Firmware Revision 3.
Chapter 3 System Overview 3488 Mode Differences 3488 Mode Differences This manual describes using the Agilent 3499A/B/C in the 3488 mode of operation. In general, the SCPI mode of operation is recommended. All the features and functions of 3499A/B/C system and plug-in modules are supported in SCPI mode. The 3488 mode is a subset and does not support all available features. 4 Some of the major differences in 3488 mode of operation are summarized below: • The RS-232 interface is not supported in 3488 mode.
Chapter 3 System Overview Plug-in Modules Overview Plug-in Modules Overview The Agilent 3499A/B/C mainframes support multiple Plug-in modules, including all the existing 3488A modules (4447XX modules), as well as several new ones (N22XXX modules).
Chapter 3 System Overview Plug-in Modules Overview MUX Modules A MUX (multiplexer) module switches one signal to multiple DUTs (devices under test), or multiple signals to one device, one at a time. Example applications include capacitor leakage, connector/switch contact, and insulation resistance test systems. To expand switching capacity or build special configurations, the multiplexer switching modules can also be used with matrix or other switching modules.
Chapter 3 System Overview Plug-in Modules Overview Model Number Module Name Mainframe Slots Required Relay Type Description N2260A 40-Channel MUX Module 1 Latching In 3488 mode, a 40-channel 2wire multiplexer, switches both HI and LO inputs (200 V, 1 A) with DPST relays. N2266A 40-Channel MUX Module 1 Reed nonlatching In 3488 mode, a 40-channel 2wire multiplexer. N2268A 50Ω 3.
Chapter 3 System Overview Plug-in Modules Overview GP Modules The GP (General Purpose) relay modules often consist of independent latching or non-latching relays. They are useful for creating additional isolation between circuits, providing safety interlocks, actuating other relays or circuits, or building special topologies such as binary ladders and tree structures. A simple 4-channel SPST (Single-pole Single-throw) GP switch is shown below.
Chapter 3 System Overview Plug-in Modules Overview Model Number Module Name Mainframe Slots Required Relay Type Description 44471D 20-Channel GP Relay Module 1 Latching The 20 independent SPST (Singlepole Single-throw) relays provide quality connections for low level signals. Can also switch signals up to 250V, 1A. 44475A Breadboard Module 1 NA Use the breadboard for custom circuits and special purpose functions in your test system.
Chapter 3 System Overview Plug-in Modules Overview Matrix Modules A matrix switch is the most versatile type of system switching. Any input can be connected to any output, individually or in combination. This helps minimize the need for complex wiring, and can simplify the DUT interface. In addition, a matrix module can be used in conjunction with other modules to provide a wide variety of switching combinations. A matrix is arranged in rows and columns and a simple 4 x 4 matrix switch is shown below.
Chapter 3 System Overview Plug-in Modules Overview Digital I/O Modules The digital I/O modules provide high-density digital input/output capabilities in an easy-to-control form. The independent TTL-compatible inputs and outputs make it well-suited for monitoring and controlling devices compactly and cost-effectively. Typically, the digital outputs are used to provide drive for relatively high current devices such as solenoids, relays and small motors.
Chapter 3 System Overview Plug-in Modules Overview Multifunction Modules A multifunction module combines two or more functions such as MUX, GP, Matrix, Digital I/O or DAC onto a single module, making it possible to implement a complicated switching application with fewer modules. Therefore, the cost is reduced by minimizing the number of mainframes and modules required. Each separate function on a multifunction module can be operated independently.
Chapter 3 System Overview Plug-in Modules Overview Optical Modules The Agilent N2280A and N2281A are optical switch modules. The table below lists the information about these three optical modules.
Chapter 3 System Overview Channel and Slot Addressing Channel and Slot Addressing A channel refers to an individual relay on a switching module, or an individual bit/port on a digital I/O module. The channel address is in the form of snn, where s represents slot number and nn represents a channel number. For all mainframes, slot 0 refers to the 3499A/B/C control board.
Chapter 3 System Overview Channel and Slot Addressing Channel Addressing (snn) s = Slot Number; nn = Channel Number Plug-in Module 3 N2263A 32-Bit Digital I/O Module Individual Bits: s00, s01, s02... s30, s31 8-Bit Ports: s00, s01, s02, s03 16-Bit Ports: s04, s05 32-Bit Port: s06 N2264A 12-Channel GP Relay + 3-Channel High-current GP Relays + 16-Bit Digital I/O Module 12 GP Relays: s00, s01, s02... s10, s11 3 High-current GP Relays: s20, s21, s22 16-Bit Digital I/O: Individual Bits: s30, s31, s32...
Chapter 3 System Overview Channel and Slot Addressing Plug-in Module Channel Addressing (snn) s = Slot Number; nn = Channel Number N2270A 10-Channel HIgh Voltage MUX Module s00, s01, s02...
Chapter 3 System Overview Channel and Slot Addressing Channel Addressing (snn) s = Slot Number; nn = Channel Number Plug-in Module 3 44474A 16-Bit Digital I/O Module Individual Bits: s00, s01, s02... s14, s15 8-Bit Ports: s00, s01 16-Bit Port: s02 44475A Breadboard Module N/A 44476A 3-Channel 13 GHz Microwave Switch Module s00, s01, s02 44476B 2-Channel 26 GHz Microwave Switch Module s00, s01 44477A 7-Channel Form-C Relay Module s00, s01, s02, s03, s04, s05, s06 44478A 50 Ω 1.
Chapter 3 System Overview Factory Default and Reset States Factory Default and Reset States The table on the next page shows the settings of the instrument after a reset. • You can reset the instrument either by pressing Shift + Card Reset on the front-panel, or with a RESET command over the remote interface. 4 • If a module is accidentally removed or installed while the instrument power is on, the instrument will preform a reset.
3 72
4 4 Features and Functions
Features and Functions This chapter provides details about particular functions and features of the Agilent 3499A/B/C Switch/Control System. The sections in this chapter describe the features using both the front-panel and the remote interface using SCPI commands. The examples in this chapter are general. For specific procedures using the front panel refer to Chapter 2. For SCPI command information refer to Chapter 5.
Chapter 4 Features and Functions Monitoring a Channel or a Slot Monitoring a Channel or a Slot You may need to continuously monitor the current status of a particular switching channel, a digital I/O port, or an entire plug-in module. This is especially useful when developing and debugging remote interface commands or watching for an important signal. • To monitor a channel or a port, specify the channel or port number.4 To monitor a plug-in module, specify the slot number.
Chapter 4 Features and Functions Monitoring a Channel or a Slot Example MON Display 1:0,,,,,,6,,,9, 2 ROW 3:,1,,3,,,6,7 3 0;,,3,COL 3, 3 00:H255 4 4 DIO DOUT L254. 12 090 0 091 ROW 0:,1,,3, 5 00:H255 5 L254. 76 Description The display for a multiplexer or a GP relay module. This display indicates that the monitored module is in Slot 2 and channels 10, 16, and 19 are closed. The display for a matrix module.
Chapter 4 Features and Functions Switching a Relay Channel Switching a Relay Channel Switch modules can be used to route signals to and from your test system. This is achieved by closing or opening the relay channels on these modules. • From the front-panel, you can open or close one relay channel at a time. However, over the GPIB interface, multiple relay channels can 4 be operated by a single command if a channel list is specified.
Chapter 4 Features and Functions Scanning Scanning The Agilent 3499A/B/C can scan switching channels, digital I/O bit channels, and stored channel setups in a scan list. When a scan starts, the first channel in a scan list is closed. The channel is then opened and the next channel in the list is closed. This process repeats for all channels in the scan list. You can sweep through a scan list more than once. You can also synchronize scanned channel closures with external measurement devices.
Chapter 4 Features and Functions Scanning Creating a Scan List Before initiating a scan, a scan list must be set up. The instrument scans the specified channels automatically in the same order of the scan list. • The scan list is automatically cleared whenever the instrument is turned off or reset. You can also clear the scan list by pressing Shift+S.List. • Front-Panel Operation: Press S.List, the CONFIG annunciator will4 light. The display will show “ADD TO SCAN”.
Chapter 4 Features and Functions Scanning Configuring a Scan You can use delay times to control a scan. • You can specify a delay time (from 0 to 99999.999 seconds, with 1 ms resolution) between when a channel is closed and when the next operation begins (and, if configured, a trigger out pulse is sent). The delay time can be set individually for each channel in the scan list, or one delay can be set for all channels in the scan list.
Chapter 4 Features and Functions Scanning Performing a Scan Once you set up a scan list and configure the scan, the actual scan can be performed. • If a scan list contains a non-existing channel, the scan cannot be performed and an error will occur. • If a scan list contains a channel on a digital I/O module that does not work in Mode #1 or Mode #2, the scan cannot be performed and an 4 error will occur (see page 86 for more information about modes).
Chapter 4 Features and Functions Scanning Using External Triggering Two control lines are provided in the rear panel mini-DIN connector: external trigger in and external trigger out. These lines can be used individually or combined to synchronize a scan list with an external instrument (such as a DMM). The figure below shows this connection. The 3499A/B/C can be configured to output a trigger pulse to notify the external instrument whenever a channel is closed.
Chapter 4 Features and Functions Scanning • Front-Panel Operation: Press Menu, use the knob to select “CONF EXT TRIG” and press Enter. Select either slot 0 (built-in external trigger) or the slot where a 44474A is installed and press Enter. Enable or disable the pair of trigger lines and press Enter. Press the Menu key again to exit the menu. Press S.List, select “CONFIG SCAN”, and configure the arm source or trigger source as either EXT or MIX.
Chapter 4 Features and Functions Digital I/O Operation Digital I/O Operation The digital input/output is well-suited for monitoring and controlling external devices. You may use the built-in digital I/O bits or port (on the rear panel), one or more digital I/O modules, or a multifunction modules with a DIO function. In the following context, multifunction modules refer to those with a DIO function.
Chapter 4 Features and Functions Digital I/O Operation • Note Front-Panel Operation: Select a digital I/O module and press Mode. “CONFIG DIO” is shown in the display. Press Enter to show the second-level menu and begin the configuration. Be sure to select the module, not a port or bit. The options on this menu are only available when the module is selected. 4 Select a DIO module. N 2263A 4 CONFIG DIO 4 MODE 1 4 Select flow control mode. Press Enter.
Chapter 4 Features and Functions Digital I/O Operation • Remote Interface Operation: Set the flow control parameters using the following 3488 command. This example assume a digital I/O module is installed in slot 4. OUTPUT 709; “DMODE 4,1,0,1” ! Set the flow control to Mode #1 and the polarity of all lines to default values. About Flow Control Modes (Handshake) Five flow control modes are available for Digital I/O operations.
Chapter 4 Features and Functions Digital I/O Operation Static Mode #1 Static Mode #1 is the default mode. In this mode, data is transferred statically, there is no read or write strobe pulses or handshaking. The I/O Direction line is active and indicates direction of transfer. This is shown in the following timing diagrams. Write Operation (CLOSE, DWRITE, etc.
Chapter 4 Features and Functions Digital I/O Operation Read or Write and Strobe Mode #3 In this mode, the I/O direction line is still used to indicate direction of transfer (input or output) but the PCTL (Peripheral control) line is used to strobe the data. During a write operation, where the 3499A/B/C writes the data to some external device, the strobe pulse signifies that the data on the 16 or 32 data I/O lines is valid. This is shown in the following timing diagram.
Chapter 4 Features and Functions Digital I/O Operation Read and Write Strobe Mode #4 Read and Write Strobe Mode #4 uses the I/O direction line as a Strobe pulse to indicate writing operations. The PCTL line is used to indicate Read operations. It is thus similar to the R/W and Strobe Mode #3 except separate control lines are used for the Strobe pulses and there is no I/O direction line.
Chapter 4 Features and Functions Digital I/O Operation Full Handshake Mode #5 Handshake Mode #5 provides a complete two wire handshake with a data direction line. During write operations, the PCTL line indicates that output data is valid; during read operations, it indicates that the digital I/O module (i.e. N2263A) is “ready for data”. The PFLG line is used by the peripheral device to indicate “ready for data” during write operations or “data valid” for read operations.
Chapter 4 Features and Functions Digital I/O Operation R ea d O peration DATA VALID LATCHED DATA LINES I/O DIRECTION t1 = T im e fro m ou tp u t d isa b le to I/O lin e h ig h (1 0 0 µs m in im u m ) t2 = T im e fro m I/O lin e h igh to ch eck for P F L G lo w (4 5 µs m in im u m ) t3 = T im e fro m P F L G low to ch eck fo r P C T L lo w (5 0 µs m in im u m ) PCTL LINE PFLG LINE 4 t4 = T im e fro m P C T L low to ch eck P F L G h ig h (4 0 µs m in im u m ) t1 100 µs t2 45 µs t3 t4 t5 50 µs 40 µs
Chapter 4 Features and Functions Digital I/O Operation Digital Input Operation 4 • From the front-panel, you can read data from the built-in digital I/O bits/port (numbered 090 through 094) or any one of the 8-bit ports on a digital I/O module or multifunction module. • From the remote interface, you can read data from the individual bit channels and 8-, 16-, or 32-bit ports on a digital I/O module or multifunction module, as well as from the built-in digital I/O bits/port (numbered 090 through 094).
Chapter 4 Features and Functions Digital I/O Operation Digital Output Operation • From the front-panel, you can write data to the built-in digital I/O bits/port (numbered 090 through 094) or any one of the 8-bit ports on a digital I/O module or multifunction module. • From the remote interface, you can write data to individual bit channels and 8-, 16-, or 32-bit ports on a digital I/O module or multifunction module, as well as to the built-in digital I/O bits/port 4 (numbered 090 through 094).
Chapter 4 Features and Functions State Storage State Storage The 3499A/B/C provides the capability to store setups, and then recall them to put the instrument back into a known configuration. Information that can be stored includes: • • • Status of all relay channels (open or closed) Status of digital I/O ports (input or output, flow control, etc.) Remote interface settings (address, baud, etc.) Additionally, you can include a stored state in a scan list as a channel.
Chapter 4 Features and Functions State Storage Firmware Revision Differences (continued) • An instrument reset does not affect the stored instrument setup information. • All stored setups will be cleared if the system mode is changed (for example, to SCPI mode). • Firmware revision 3.0 allows instrument operation in either SCPI or 3488 mode, not both. The mode is selected when the firmware is 4 loaded. To Store an Instrument State Firmware revision 2.0 and 3.0 allow up to 10 stored states.
Chapter 4 Features and Functions Error Conditions Error Conditions When an error occurs, the 3499A/B/C will beep and the ERROR annunciator on the front-panel lights up. This indicates one or more command syntax or hardware errors have been detected. 4 • The error queue will be cleared automatically once you read the queue, change the system mode, send the RESET command, or cycle power on the instrument. However, a module reset will not clear the error queue.
Chapter 4 Features and Functions Display Control Display Control You can turn off the 3499A/B/C display (for security or increased processing speed for example). You can also write a message of up to 13 characters to the front-panel display. Note The display cannot be turned off from the front-panel.
Chapter 4 Features and Functions Relay Cycle Counts Relay Cycle Counts The Agilent 3499A/B/C can read and track the relay cycle counts on some plug-in modules. This feature can be very useful in switching systems to track relay failures and predict system maintenance requirements. • This feature is supported in 3488 Mode by the Agilent N2260A, N2261A, N2262A, N2264A, N2265A, N2266A, N2267A, N2268A, N2270A, and N2280A/81A modules.
5 5 Remote Interface Reference
Remote Interface Reference This chapter describes 3488 mode commands applicable to the Agilent 3499A/B/C Switch/Control System. The chapter contents include: • • • Note Command Syntax, on page 101 3488 Mode Command Quick Reference, on page 102 3488 Mode Commands, on page 104 It is highly recommended that you use SCPI commands (in SCPI mode) instead of 3488A commands (in 3488A mode). The SCPI commands allow you to use all the features of the Agilent 3499A/B/C and the plug-in modules.
Chapter 5 Remote Interface Reference Command Syntax Command Syntax Throughout this manual, the following conventions are used for command syntax for remote interface programming. • • • Square brackets ([ ]) indicate optional keywords or parameters. • A vertical bar ( | ) separates multiple parameters. Braces ({ }) enclose parameter choices within a command string. 4 Angle brackets (< >) enclose parameters for which you must specify a value.
Chapter 5 Remote Interface Reference 3488 Mode Command Quick Reference 3488 Mode Command Quick Reference Command Summary 5 Command Description Page CHAN Open the last channel/bit closed and close the specified channel/bit. 104 CLOSE Close one or more relays (channels/bits) on the plug-in modules. 105 CMON Monitor the open/close states of a plug-in module in the specified slot. 106 CRESET Reset one or multiple cards in the specified slot(s) to their default states.
Chapter 5 Remote Interface Reference 3488 Mode Command Quick Reference Command Description Page MASK Query/set the SRQ mask conditions. 122 OLAP Enable/Disable GPIB I/O overlap mode. 123 OPEN Open one or more relays (channels/bits) on the plug-in modules. 124 RECALL Re-assert the channel/bit setup stored by the command STORE (1-10). 125 RESET Reset the instrument to its power on state. All channels/bits of the plug-in modules are open, etc.
Chapter 5 Remote Interface Reference 3488 Mode Commands 3488 Mode Commands CHAN [] Opens the last channel/bit closed by either STEP or CHAN command and then closes the specified channel/bit. The channel_address has the form @snn, where s is the slot number and nn is the channel number. For all mainframes, slot 0 refers to the 3499A/ B/C control board.
Chapter 5 Remote Interface Reference 3488 Mode Commands CLOSE [,,...] Close one or more channels on the non digital I/O (DIO) modules. It can also be used to “clear” bits on the digital I/O modules. The CLOSE command does not open any channels/bits that were previously closed. The channel_address has the form @snn, where s is the slot number and nn is the channel number. For all mainframes, slot 0 refers to the 3499A/ B/C control board.
Chapter 5 Remote Interface Reference 3488 Mode Commands CMON Causes the 3499A/B/C to monitor the individual card (module) in the specified slot. The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent). Valid slot numbers are: 3499A slots 0 through 5 3499B slots 0 through 2 3499C slots 0 through 9 Specifying 0 as the slot number turns off the monitor function. Cycling power on the instrument or resetting the modules will cancel the monitoring.
Chapter 5 Remote Interface Reference 3488 Mode Commands CPAIR , Pairs two of the same (type) plug-in modules (i.e. two N2261A modules). This operation will effectively assign both modules to both slot numbers so that closing/opening/scanning a channel on either one module will perform the same operation on the respective channel on the other module. The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent).
Chapter 5 Remote Interface Reference 3488 Mode Commands CTYPE This query returns a string containing the module identification in the specified slot. The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent). Valid slot numbers are: 3499A slots 0 through 5 3499B slots 0 through 2 3499C slots 0 through 9 OUTPUT 709; “CTYPE 3” ENTER 709;A$ DISP A$ 5 108 ! Look for the card in Slot 3. ! Card description will be displayed.
Chapter 5 Remote Interface Reference 3488 Mode Commands The string returned has one of the following forms: Module Returned String Empty Slot Mainframe N2260A N2261A N2262A N2263A N2264A N2265A N2266A N2267A N2268A N2270A N2280A N2281A 44470A 44470D 44471A 44471D 44472A 44473A 44474A 44475A 44476A/B 44477A 44478A/B NO CARD Built-in DIO 40CH MUX 40CH GP 4X8 MATRIX 32BIT DIO 12+3 (5A) CH GP+16BIT DIO 4X4 MATRIX +16BIT DIO 20CH MUX 8(8A)CH GP DUAL 1X4 RF MUX 10(1000V)CH MUX QUAD 1X2 OPTICAL DUAL 1X4 OPTICA
Chapter 5 Remote Interface Reference 3488 Mode Commands The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent). Valid slot numbers are: 3499A slots 0 through 5 3499B slots 0 through 2 3499C slots 0 through 9 The port parameter is a number that indicates where the data is to be read. The port is module dependent and the valid port numbers are shown below.
Chapter 5 Remote Interface Reference 3488 Mode Commands • When Slot 0 is specified, only Port 090 is valid. • If a 16-bit port is specified, data will be sent with the high or most significant byte first. The data transfer is terminated with the 3499A/B/C setting the GPIB EOI true line concurrently with the last data byte sent. • If a 32-bit mode (Port 06) is specified, data will be sent with the highest byte fist, then the second highest byte and so on.
Chapter 5 Remote Interface Reference 3488 Mode Commands DBW ,#I Outputs a block of data to the specified digital I/O port. When DBW is received, the 3499A/B/C will interpret the block of data to be output according to the slot/port parameters and DMODE (polarity, handshake) command. The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent).
Chapter 5 Remote Interface Reference 3488 Mode Commands DELAY
Chapter 5 Remote Interface Reference 3488 Mode Commands DISP Writes a message (up to 13 characters) to display on the front panel of the 3499A/B/C. ASCII character string can be up to 13 characters. The characters supported by the 3499A/B/C are shown below Type Letters (Supported by 3499A/B/C) Number 0-9 Letter a-z; A-Z Special Character ‘ (space) ( ) * + , - .
Chapter 5 Remote Interface Reference 3488 Mode Commands DMODE [,][,][,] Establishes the handshake mode as well as polarity of the digital I/O bits and control lines for the plug-in DIO modules. It is also used to enable/ disable the External Increment (EI) and Channel Closed (CC) pulse functions for the 44474A DIO module. The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent).
Chapter 5 Remote Interface Reference 3488 Mode Commands The polarity parameter is a decimal weighted sum of up to seven bits and is defined below. Definition Bit # Default, data lines high true (open), PCTL and PFLG low means ready, I/O Direction line high for ready.
Chapter 5 Remote Interface Reference 3488 Mode Commands DOFF Turns off the 3499A/B/C’s display. This allows the instrument to operate faster because it no longer needs to update the display. OUTPUT 709; “DOFF” ! Turn off the display. DON 4 Turns on the 3499A/B/C’s display. The display will be reactivated by either the DON command or pressing the LOCAL key. Use DON to remove a message written to the display with a DISP command. OUTPUT 709; “DON” ! Turn on the display.
Chapter 5 Remote Interface Reference 3488 Mode Commands DREAD [,number of times to read] Reads the current status of the DIO modules’ ports designated as inputs. The decimal value read back is equal to the decimal sum of the bit values that are set. When Slot 0 is specified, only Port 090 is valid. The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent).
Chapter 5 Remote Interface Reference 3488 Mode Commands • When reading the 4-bit built-in DIO port (Port 090), the decimal value will be between 0 and 15. • When reading an 8-bit port, the decimal value of the bits will be between 0 and 255. • When reading a 16-bit port, the decimal value of the 16 bits will be between –32768 and 32767. Any time the summed decimal value of the 16 bits would exceed +32768, the 2’s complement form is used and 4 expressed as a negative number.
Chapter 5 Remote Interface Reference 3488 Mode Commands DWRITE ,[,...] Configures all or part of a DIO module to digital output ports and writes data to the DIO ports. The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent). Valid slot numbers are: 3499A slots 0 through 5 3499B slots 0 through 2 3499C slots 0 through 9 The port parameter is a number that indicates where the data is to be written.
Chapter 5 Remote Interface Reference 3488 Mode Commands EHALT <0 | 1> Enables or disables the stop-on-error mode. When enabled (EHALT 1), an error will lockup the GPIB interface (no GPIB communication). Default condition is disabled (EHALT 0), which allows GPIB communication after an error is discovered. Note Once the GPIB is locked up, you must reset the GPIB interface. The 3499A/B/C can be reset by either pressing the front panel local key or executing the GPIB CLEAR command.
Chapter 5 Remote Interface Reference 3488 Mode Commands LOCK <0 | 1> Locking out the keyboard prevents the keyboard from being scanned thus permitting faster operation. LOCK 1 locks the keyboard and LOCK 0 (default) unlocks the keyboard. ! Lockout the keyboard. OUTPUT 709; “LOCK 1” MASK [] Sets the SRQ mask to allow certain conditions to generate SRQ.
Chapter 5 Remote Interface Reference 3488 Mode Commands OLAP <0 | 1> Suspends or releases the GPIB I/O communications. In the Overlap disabled mode (default, OLAP 0), the 3499A/B/C holds up GPIB I/O communications while it processes received messages. When Overlap is enabled (OLAP 1), the 3499A/B/C will release the GPIB as soon as the command message is received. Overlap enabled allows faster I/O operations but does not guarantee sequential operation of 4 other devices on the bus.
Chapter 5 Remote Interface Reference 3488 Mode Commands OPEN [,,...] Open one or multiple channels/bits on the plug-in modules. The channel_address has the form @snn, where s is the slot number and nn is the channel number. For all mainframes, slot 0 refers to the 3499A/ B/C control board. Valid slot numbers are: 3499A slots 0 through 5 3499B slots 0 through 2 3499C slots 0 through 9 The channel number, nn, is plug-in module dependent.
Chapter 5 Remote Interface Reference 3488 Mode Commands RECALL <1-40> Recalls the channel/bit setup stored by the command STORE. Only relays and static Digital Outputs are recalled. This means that only those channels/bits that are closed in the stored channel setup will be closed when the channel setup is recalled. Note If no state has been stored in the channel setup selected, an error will result and the 3499A/B/C will send SRQ if it was enabled (see MASK on4 page 122).
Chapter 5 Remote Interface Reference 3488 Mode Commands SLIST [,,...] Specifies a sequence of channels to be scanned. The sequence is specified as a list of up to 85 channel addresses (relays or digital I/O lines) and/or stored setups separated by commas. Contiguous channels may be specified by entering the first channel address and the last channel address separated by a hyphen. STEP is used to sequentially close channels in the list.
Chapter 5 Remote Interface Reference 3488 Mode Commands For example, in the code below, the scan would start by closing channel 104, followed by channel 205, then recall saved setup 10, followed by channels 300, 301, 302, ... 309, and finally channel 410. The 0 channel specified at the end of the list is a stop channel, which will open the last channel closed (channel 410) without closing any other channel. OUTPUT 709; “SLIST 104,10,205,300-309,410,0” ! ‘10’ is a stored setup.
Chapter 5 Remote Interface Reference 3488 Mode Commands SREAD Reads data from the input port on a 44475A Breadboard in the specified slot. The data read back is in the form of a decimal number which is the sum of the binary weighted values of the bits that are high (+5 volts). This command is for 44475A Breadboard only. The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent).
Chapter 5 Remote Interface Reference 3488 Mode Commands SWRITE , Writes data to the output port on a 44475A breadboard in the specific slot. The data value is a decimal sum of the binary weighted values of the bits that are to be set high (+5 volts). The slot parameter is a decimal ranging from 0 to 9 (mainframe dependent). Valid slot numbers are: 3499A slots 0 through 5 3499B slots 0 through 2 3499C slots 0 through 9 4 Two 8-bit ports are available on the 44475A Breadboard.
Chapter 5 Remote Interface Reference 3488 Mode Commands STATUS Reads the 3499A/B/C’s Status Byte and returns a decimal value that is the sum of the values of the individual bits that are set (condition is true). Bit Weighted Value Definition 0 1 End of scan sequence 1 2 Output available 2 4 Power-on SRQ asserted 3 8 Front panel SRQ key pressed 4 16 Ready for instructions 5 32 Error 6 64 RQS 7 128 Not used 5 Bits 0, 2, and 3 will be cleared after the STATUS command is executed.
Chapter 5 Remote Interface Reference 3488 Mode Commands STEP Opens the last channel closed and close the next channel in the Scan List. If STEP is executed and no Scan List exists, the 3499A/B/C will generate an execution error. The 3499A/B/C uses a pointer to keep track of which channel in the Scan List is currently closed. When STEP is executed, that channel is opened and the next item in the list is checked. If the next item in the list is a relay or a digital I/O line, that channel/bit is closed.
Chapter 5 Remote Interface Reference 3488 Mode Commands TEST Initiates the internal self tests and returns a number indicating the test results. A value of “+00000” returned indicates all tests have passed. Any other value indicates the instrument failed the tests as shown below: Error Number Description +00001 ROM Test Failed. +00002 GPIB Test Failed. +00003 RS-232 Test Failed. +00004 Front Panel Test Failed.
Chapter 5 Remote Interface Reference 3488 Mode Commands VIEW Shows the state, either open or closed of a particular channel or a DIO bit. The 3499A/B/C responds with the string “OPEN 1” if the specified channel/bit is open. If the specified channel/bit is closed, the 3499A/B/C responds with the string “CLOSED 0”. The channel_address has the form @snn, where s is the slot number and nn is the channel number. For all mainframes, slot 0 refers to the 3499A/ 4 B/C control board.
5 134
6 6 Error Messages
Error Messages In 3488A mode, you can query the instrument error queue when the ERROR annunciator is on. The returned decimal value is the sum of the values of the possible error conditions, as shown below: Weighted Value Note Error Condition 1 Syntax Error 2 Execution Error which includes: a. Parameter out of range; b. Module type mismatch; c. Attempt to access a nonexistent stored state or scan list.
7 7 Application Programs
Application Programs This chapter provides example programs in Visual C++, Visual BASIC and BASIC to help you develop programs for your specific application. Chapter contents include: Note • Visual C++ Example Program, on page 139 • • Visual BASIC Example Program, on page 141 BASIC Example Program, on page 143 For the example programs provided in this chapter to run properly, make sure that your system has been properly setup according to the requirements of the individual example.
Chapter 7 Application Programs Visual C++ Example Program Visual C++ Example Program This example program is written in Visual C++ 6.0 and has been tested on a PC running WIN95/NT. The example uses the 3488 commands. As the example is currently written, the program requirements are: • GPIB interface selected and set to the address of 09 from the frontpanel; 4 • • Any one of the relay modules installed in Slot 1 of the mainframe; A GPIB interface card installed in your PC with the VISA library.
Chapter 7 Application Programs Visual C++ Example Program /* Create a scanlist, then set up a loop to scan through the channels two times. */ viPrintf( vi, "SLIST 100-103\n"); for ( i = 0; i < 8; i++ ) { viPrintf( vi, "STEP\n" ); Sleep( 25 ); // Wait 25 milliseconds. } printf( "Scan End.\n" ); viClose( vi ); viClose( drm ); } 7 140 // Close session to 3499A/B/C. // Close session to the resource manager.
Chapter 7 Application Programs Visual BASIC Example Program Visual BASIC Example Program This example program is written in Visual BASIC 6.0 and has been tested on a PC running WIN95/NT. The example uses the 3488 commands. As the example is currently written, the program requirements are: • GPIB interface selected and set to the address of 09 from the front- 4 panel; • • Any one of the relay modules installed in Slot 1 of the mainframe; A GPIB interface card installed in your PC with the VISA library.
Chapter 7 Application Programs Visual BASIC Example Program ' Create a scanlist, then set up a loop to scan through ' the channels two times. viVPrintf(vi, "SLIST 100-103" + Chr$(10), 0) ' Create a scan list including 100 through 103. For I = 0 To 8 Call viVPrintf(vi, "STEP" + Chr$(10), 0) ' Step through the channels. Sleep ( 25 ) ' Wait 25 milliseconds. Next viClose (vi) viClose (drm) End ' Close session to 3499A/B/C. ' Close session to the resource manager.
Chapter 7 Application Programs BASIC Example Program BASIC Example Program Sample programs in this section are written in BASIC 6.0 and have been tested on a UNIX workstation. Requirements: • GPIB interface selected and set to the address of 09 from the front4 panel; • • Any one of the relay modules installed in Slot 1 of the mainframe; A GPIB interface card installed in your UNIX workstation. 10 ! EXAMPLE.BAS: TEST 3499A/B/C IN 3488A MODE 20 DIM Retstr$[128]! String returned from the instrument.
7 144
Index If you have questions realated to the operation of the Agilent 3499A/B/C or plug-in modules, call 1.800.453.4844 in the United States, or contact your nearest Agilent Technologies Sales Office.
CPAIR command 107 CRESET command 106 CTYPE command 108 cycle counts of relay 98 Index D data display format 85 DBR command 110 DBW command 112 default states 71 DELAY command 113 delay time setting 80 DigitaI I/O configuration front panel 32 Digital I/O configuration 84 default setting 92, 93 general rules 84 operation described 84 read from port 92 read port 30 write port 31 write to port 93 Digital I/O configuration control line polarity 85 data display format 85 data line polarity 85 default settings 8
N local 50 LOCK command 122 LWORD 92 N2260A module channel numbering 67 default setting 84 descripton 60 relay type 60 N2261A module channel numbering 67 description 61 relay type 61 N2262A module channel numbering 67 description 63 relay type 63 N2263A module channel numbering 68 description 64 N2264A module channel numbering 68 description 65 relay type 65 N2265A module channel numbering 68 description 65 relay type 65 N2266A module channel numbering 68 description 60 relay type 60 N2267A module channel
RESET 71, 96 reset 20 states 71 RESET command 125 Rev 4.