Keysight E1459A User & Scpi Programming Manual
Keysight E1459A User & Scpi Programming Manual

Keysight E1459A User & Scpi Programming Manual

64-channel isolated input interrupt module
Table of Contents

Advertisement

Quick Links

75000 Series C
User & SCPI Programming Manual
Keysight E1459A / Z2404A
64-Channel Isolated Input
Interrupt Module

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the E1459A and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Keysight E1459A

  • Page 1 75000 Series C User & SCPI Programming Manual Keysight E1459A / Z2404A 64-Channel Isolated Input Interrupt Module...
  • Page 3 Warranty © Keysight Technologies, Inc. 1991-2019 No part of this manual may be repro- To contact Keysight for sales and techni- THE MATERIAL CONTAINED IN THIS duced in any form or by any means cal support, refer to the support links on DOCUMENT IS PROVIDED “AS IS,”...
  • Page 4 In Case of Damage Cleaning Instruments that appear damaged or Clean the outside of the Keysight mod- defective should be made inoperative ule/chassis with a soft, lint-free, and secured against unintended oper- slightly dampened cloth. Do not use ation until they can be repaired by detergent or chemical solvents.
  • Page 5 Safety Symbols A CAUTION denotes a hazard. It calls attention to an operating pro- cedure or practice, that, if not cor- rectly performed or adhered to could result in damage to the product or loss of important data. Do not proceed beyond a CAUTION notice until the indicated condi- tions are fully understood and met.
  • Page 7: Table Of Contents

    Connecting User Inputs ........23 Installing the Keysight E1459A in a VXIbus Mainframe ....25 Terminal Block .
  • Page 8 [SENSe:]EVENt:PORTn:PEDGe:ENABle? ......62 [SENSe:]EVENt:PSUMmary:DAVailable? ......63 viii Keysight E1459/Z2404B User and SCPI Programming Guide...
  • Page 9 Channel Data Register Port 0/2 ........93 Keysight E1459/Z2404B User and SCPI Programming Guide...
  • Page 10 Output and Edge Detection Examples ......105 C Error Messages Keysight E1459/Z2404B User and SCPI Programming Guide...
  • Page 11: Installing And Configuring The E1459A

    Figure 1 shows the functional block diagram for the module. 1 The Keysight E1459A and Z2404B are functionally identical. The Keysight E1459A is provided with a downloadable SCPI driver and a VXIplug&play driver; the Z2404B was not provided with a language driver.
  • Page 12 Installing and Configuring the E1459A Functional Description To VXIbus Transceivers Figure 1-1 Keysight E1459A 64-Channel Isolated Digital Input/Interrupt Block Diagram Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 13: Watchdog Timer

    Figure 1-2 Resolver Block Diagram Watchdog Timer The Keysight E1459A provides a programmable timer facility which, in the event of time-out, will generate a "system wide" reset to all other card-cage modules. This timer may be disabled by the SCPI command DIAG:SYSR:ENAB OFF.
  • Page 14: Input Debounce Processing

    If the channel data registers are serviced via a "polled mode" method (which is not keyed to the posting of the "marker Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 15: Input Edge Detection

    Figure 3 demonstrates a typical example. A channel that has been programmed to detect both positive and negative edge transitions posts a marker at the occurrence of a positive edge. Before user software can service this interrupt, a Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 16 DAV (Data AVailable) situation. The second DAV is retained (and valid) until a subsequent read of the corresponding data register. Figure 1-4 DAV Timing Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 17: Input Data Capture

    In that event, the marker bit is forced inactive for a two clock (16 MHz) period before again being posted to the control FPGA. In the "Data Capture Mode", the Keysight E1459A may be programmed to generate an interrupt on the occurrence of an external capture clock, or an internal 1.0 MHz sample clock may be selected to allow the state of the data...
  • Page 18: Front Panel Markers

    Front Panel Markers All "Data Available" and "Edge Detect" marker bits are physically available via the Keysight E1459A front panel. These outputs are TTL/HC compatible and may be used to trigger other system-wide events or to provide logging information for statistical tracking or other performance analysis purposes.
  • Page 19: Configuring For Installation

    STATIC-SENSITIVE DEVICE. Use anti-static procedures when removing, configuring, and installing a module. The module is susceptible to static discharges. Do not install the module without its metal shield attached. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 20: Setting The Logical Address

    4 pin jumper, the jumpers must all be placed in the same row for proper operation. Consult your mainframe manual to be sure that backplane jumpers are configured correctly. If you are using the Keysight E1401B Mainframe these jumpers are automatically set when the card is installed.
  • Page 21: Setting Input Threshold Levels

    Configuring for Installation Installing and Configuring the E1459A Figure 1-5 Keysight E1459A Logical Address Switch and IRQ Jumper Locations Setting Input Threshold Levels The threshold levels for each channel can be set independently. A six pin plug with a two pin shorting jack is provided for each channel. The channel can be identified from the silk-screen on the board.
  • Page 22: Setting The Reset Time On The Watchdog Timer

    O indicates the jumper is removed. The factory default setting is 1.2 second. Jumper Reset Time 600 ms 150 ms 1.2 sec Not Allowed JM202 JM203 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 23: Connecting User Inputs

    Installing and Configuring the E1459A Connecting User Inputs The Keysight E1459A Isolated Digital Input/Interrupt module consists of a component module and a terminal block. User inputs for each channel consists of a low and a high connection for each channel. The inputs will only detect signals of a positive polarity.
  • Page 24 CH 61 HI CH 62 LO CH 62 HI CH 63 HI CH 63 LO +5VTC DAV3N INTR3N XTRIG3N DAV2N INTR2N XTRIG2N DAV1N INTR1N XTRIG1N DAV0N INTR0N XTRIG0N Figure 1-7 Front Panel Connections Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 25: Installing The Keysight E1459A In A Vxibus Mainframe

    Configuring for Installation Installing and Configuring the E1459A Installing the Keysight E1459A in a VXIbus Mainframe The Keysight E1459A may be installed in any C-size VXIbus mainframe slot (except slot 0). Refer to Figure 8 to install the module in a mainframe.
  • Page 26: Terminal Block

    Configuring for Installation Terminal Block The Keysight E1459A includes both the input / interrupt module and a screw-type standard terminal block. User inputs to the terminal block are to the High and Low for each channel, +5Volt, Ground, Data Valid (DAV0 - DAV3), External Trigger (XTRIG0 - XTRIG3), and Interrupt (INTR0 - INTR3) .
  • Page 27: Wiring A Terminal Block

    Configuring for Installation Installing and Configuring the E1459A Wiring a Terminal Block The following illustrations show how to connect field wiring to the terminal block. Continued on Next Page Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 28 Install the Terminal Push in the Extraction Levers to Lock the Module Terminal Module onto the HP E1459A Extraction Levers HP E1459A Module Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 29: Using The Keysight E1459A Module

    Keysight VISA User’s Guide. These programs were written and tested in Microsoft Visual C++ but should compile under any standard ANSI C compiler. To run the programs you must have the Keysight SICL Library, the Keysight VISA extensions, and an Keysight 82340 or 82341 GPIB module installed and properly configured in your PC.
  • Page 30: Power-On / Reset States

    Using the Keysight E1459A Module Power-on / Reset States Power-on / Reset States At power-on or reset (*RST) the Keysight E1459A is set to the following conditions: – Watchdog timer is off (disabled). – Clock Source is Internal – Input Debounce Time is 18.0 S.
  • Page 31 /* Close Sessions */ errStatus = viClose (E1459); if (VI_SUCCESS > errStatus){ printf("ERROR: viClose() returned 0x%x\n",errStatus); return 0;} errStatusviClose (viRM); if (VI_SUCCESS > errStatus){ printf("ERROR: viClose() returned 0x%x\n",errStatus); return 0;} /* End of main program */ Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 32: Digital Input

    Using the Keysight E1459A Module Power-on / Reset States Digital Input The Keysight E1459A is capable of simple digital inputs on any of the individual four ports or combined Ports 0 and 1 or Ports 2 and 3. The MEASure...
  • Page 33 = viClose (E1459); if (VI_SUCCESS > errStatus){ printf("ERROR: viClose() returned 0x%x\n",errStatus); return 0;} errStatus = viClose (viRM); if (VI_SUCCESS > errStatus){ printf("ERROR: viClose() returned 0x%x\n",errStatus); return 0;} /* End of main program */ Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 34: Edge Detected Event Detection

    Edge Detected Event Detection Edge Detected Event Detection The Keysight E1459A can respond to two types of events: Edge Events (either negative edge, positive edge, or both) and Data Available. Figures 2-1 and 2-2 show the general flow of commands necessary to program the Keysight E1459A to detect events.
  • Page 35 2. Poll the Status Subsystem 3. Use SRQ to interrupt STATus:OPERation:PSUMmary:ENABle <mask> STATus:OPERation:ENABle 512 *SRE128 [SENSe:]EVENt:PORTn:NEDGe? Read the data and clear the event detector register [SENSe:]EVENt:PORTn:PEDGe? Figure 2-1 Keysight E1459A Edge Event Detection Flowchart Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 36 2. Poll the Status Subsystem 3. Use SRQ to interrupt STATus:OPERation:PSUMmary:ENABle <mask> STATus:OPERation:ENABle 512 *SRE128 MEASure:DIGital:DATAn:type:VALue? Read the data and clear the MEASure:DIGital:DATAn:type:BITm? event detector register Figure 2-2 Keysight E1459A Data Available Event Detection Flowchart Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 37: Example 3: Edge Interrupt

    /* Open the Instrument Session */ errStatus = viOpen (viRM, INSTR_ADDR,VI_NULL,VI_NULL, &E1459); if (VI_SUCCESS > errStatus){ printf("ERROR: viOpen() returned 0x%x\n",errStatus); return errStatus;} /* Unmask the negative edge events for Port 0 */ errStatus = viPrintf (E1459, "EVEN:PORT0:NEDG:ENAB 0xFFFF\n"); Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 38 (VI_SUCCESS > errStatus){ printf("ERROR: viPrintf() returned 0x%x\n",errStatus); return errStatus;} printf ("Positive Edge Event value = %s\n",val); /* Close Sessions */ errStatus = viClose (E1459); if (VI_SUCCESS > errStatus){ printf("ERROR: viClose() returned 0x%x\n",errStatus); Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 39 Edge Detected Event Detection Using the Keysight E1459A Module return 0;} errStatus = viClose (viRM); if (VI_SUCCESS > errStatus){ printf("ERROR: viClose() returned 0x%x\n",errStatus); return 0;} /* End of main program */ Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 40 Using the Keysight E1459A Module Edge Detected Event Detection Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 41: Keysight E1459A Scpi Command Reference

    The Standard Commands for Programmable Instruments (SCPI) commands described in this chapter are only available in the downloadable SCPI driver for the Keysight Command Modules such as the Keysight E1406. If you are not using a command module, you should use the Keysight VXIplug&play driver. This driver is available on the Keysight Instrument Drivers CD and available on the World Wide Web.
  • Page 42: Command Separator

    For example: DISPlay:MONitor[:STATe] <state> The third level command [:STATe] is an implied command. For example, to set the display monitor state, you can send either of the following command statements: DISPlay:MONitor <state> DISPlay:MONitor:STATe <state> Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 43: Command Parameters

    Linking IEEE 488.2 Common Commands with SCPI Commands. Use a semicolon between the commands. For example: *RST;DISP:MON ON or DISP:MON ON;*TRG Linking Multiple SCPI Commands. Use both a semicolon and a colon between the commands. For example: DISP:MON:PORT 0;:MEAS:DIG:DATA0:WORD::VAL? Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 44: Diagnostic:sysreset Subsystem

    – If the Watchdog timer is enabled, the state of the timer MUST be read before the Watchdog time elapses. If the state is not read before the time elapses, the Watchdog Timer asserts the VXIbus SYSRESET line. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 45: Diagnostic:sysreset:enable

    Returns the state of the Watchdog Timer as either a (unsigned) 1, or 0. Parameters None Comments Returns a 1 if the Watchdog Timer is enabled. Returns a 0 if the Timer is not enabled. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 46: Display:monitor Subsystem

    DISP:MON:PORT AUTO Set automatic display mode 1 The display monitor is an RS-232 Terminal attached to an Keysight E1405B, E1406, or E1306 Command Module and provides an interactive user interface to the Keysight E1459A. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 47: Display:monitor:port? [Minimum | Maximum | Default]

    – a 0 or OFF turns the display monitor automatic mode off; a 1 or ON turns the display monitor automatic mode on. – *RST Condition: sets the automatic mode on. Example DISP:MON:PORT:AUTO ON Turns automatic display mode on Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 48: Display:monitor:port:auto

    -- Size of the data: 16-bit word or 32-bit word -- Actual data: signed decimal and hexadecimal – A keyboard entry at the terminal sets DISP:MON OFF. – *RST Condition: OFF. Example DISP:MON ON turns the display mode on. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 49 Returns the value of the Display Monitor State as either 0 (for OFF) or 1 (for ON). Parameters None Comments – DISP:MON[:STAT]? returns a 1 if the monitor mode is on; or returns a 0 if the monitor mode is off. Example DISP:MON? Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 50: Syntax

    INTernal will result in an error -221, "Settings Conflict". – *RST Condition: sets the input clock source to INTernal. Example INP1:CLOC:SOUR EXT Sets the input clock source for Port 1 to External Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 51: Inputn:clock[:Source]

    – Ports 0 and 1 use the same debounce time, Ports 2 and 3 use the same debounce time. For n = 0 or n = 1, both Ports 0 and 1 are set; for n = 2 or n = 3, both Ports 2 and 3 are set. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 52: Inputn:debounce:time? [Minimum | Maximum | Default]

    Ports 0 and 1; for n = 2 or n = 3, this command returns the debounce time for both Ports both Ports 2 and 3. Example INP2:DEB:TIME? Queries input circuit debounce time of Port 2 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 53: Measure Subsystem

    MEASure Subsystem The MEASure commands are used for the Isolated Digital Input part of the Keysight E1459A. These commands return data corresponding to the current value of the input signals. Refer to Chapter 2 for more examples of using the MEASure Subsystem.
  • Page 54: Measure:digital:datan[:Type]:Bitm

    MEAS:DIG:DATA3:WORD:BIT 12? Queries value of Bit 12 in 16-bit word from Port 3 MEAS:DIG:DATA 2:LWORD:BIT23? Queries value of Bit 23 in 32-bit word from Ports 2 and 3 (Bit 7 in Port 3) Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 55: Memory Subsystem

    – The maximum length for <name> is 12 characters. – This command deletes the single, named macro; the *PMC Common command purges all macros. Example MEM:DEL:MACR test_macro Deletes the macro named test_macro which was previously defined using the *DMC Common command. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 56: Sense Subsystem

    SENSe Subsystem The SENSe Subsystem configures Event Detection in the Keysight E1459A Module. The Keysight E1459A has an event detector for each 16 bit Port to detect positive or negative edge transitions and whether new data is available: DAV New data is available on the specified digital input port(s).
  • Page 57: [Sense:]Event:portn:davailable

    – The clock source for Port n must be set to EXTernal and the event must be enabled. Otherwise, error -221, "Settings conflict" occurs. – The external clock source is selected with the INPutn:CLOCk[:SOURce]EXT command. – *RST Condition: disables the interrupt. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 58: [Sense:]Event:portn:davailable:enable

    [SENSe:]EVENt:PORTn:EDGE<state> command and a Positive edge mask and/or Negative edge mask must be enabled and set to a non-zero value. – The Edge Event Status is cleared by reading PEDGE and/or NEDGE status registers for that port. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 59: [Sense:]Event:portn:edge:enable

    Parameter Type Range of Values Default PORTn numeric 0, 1, 2, 3 (PORT = PORT0) PORT0 Comments – A 0 means the Edge Event is not enabled; a 1 means it is enabled. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 60: [Sense:]Event:portn:nedge

    A 1 means the mask is enabled for that bit, a 0 means the mask is disabled for that bit. – *RST Condition: clears the mask (no enabled bits). Example EVEN:PORT 1:NEDG:ENAB 32767 Enables Negative Edge Event Detection on all bits of Port 1 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 61: [Sense:]Event:portn:nedge:enable

    – When an edge event is detected, the Edge Detect Status is set true. Refer to the [SENSe:]EVENt:PSUM:EDGE? and [SENSe:]EVENt:PORTn:EDGE? commands. – Reading this register for all events that have occurred will clear the event detector register. – *RST Condition: disables the Edge Event. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 62: [Sense:]Event:portn:pedge:enable

    – Each bit enables the corresponding channel positive edge detect mask for Port n. A 1 means the mask is enabled for that bit, a 0 means the mask is disabled for that bit. – *RST Condition: clears the mask (no enabled bits). Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 63: [Sense:]Event:psummary:davailable

    No Edge Event occurred in any port An Edge event occurred in Port 0 An Edge vent occurred in Port 1 An Edge vent occurred in Port 2 An Edge vent occurred in Port 3 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 64 Example If the EVEN:PSUM:EDGE? command returns a value of 10 it indicates an edge event occurred on Ports 1 and 3 (values 2 and 8 respectively, see table). Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 65: Status Subsystem

    (ESB), Message Available bit (MAV) and Questionable Data bit (QUE) in the Status Byte Register (bits 7, 6, 5, 4 and 3 respectively) can be queried with the *STB? command. Use the *ESE? command to query the unmask value for the Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 66 0 through 15 are included in Figure 3-1. The Questionable Status Condition, Event, and Enable registers exist for SCPI compliance only. No status bits are defined or reported in these registers. Figure 3-1 Keysight E1459A Status System Register Diagram Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 67: Status:operation:condition

    Parameters None Comments – The only bit in this register used by the Keysight E1459A is bit 9 (decimal weight 512) which contains the summary of the Operation Status Port register. – The Status Operation Condition register is not cleared by this command. It is cleared only by executing the PSUMmary:EVENt command.
  • Page 68: Status:operation:enable

    None Comments – The only bit in the OPERation Status Register used by the Keysight E1459A is bit 9 (decimal weight 512) which contains the summary of the Operation Status Port Register. This is a destructive read so that all register bits are cleared after the read is executed.
  • Page 69: Status:operation:psummary:enable

    – *RST and *CLS do not affect the value of the enable mask. – STATus:PRESet sets the value of the enable mask to 0. Example STAT:OPER:PSUM:ENAB 0xFFFF Enables all bits of the Operation Status Port Summary Enable Register Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 70: Status:operation:psummary:enable

    Presets the Status system registers and conditions. Parameters None Comments – Resets the following registers and conditions: Register Action Register Action Status Byte none OPER Status condition none Standard Event event none OPER Status event none Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 71: Status:questionable:condition

    Sets the value of the QUEStionable Status Enable Register. The Questionable Status Condition, Event, and Enable registers exist for SCPI compliance only. No status bits are defined or reported in these registers. Parameters None Comments – No bits are defined. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 72: Status:questionable:enable

    – *CLS clears the contents of the Status Questionable Event Register. – STAT:PRESet does not affect the contents of the Status Questionable Event Register but does disable reporting the summary of this register in the Status Byte register (STB?) Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 73: System Subsystem

    Default <number> Numeric None Comments – <number> must be equal to 1 since only one Keysight E1459A module is allowed in a single instrument (logical address). – The command returns the following string: "64-Channel Isolated Digital Input / Interrupt" Example SYSTem:CDEScription? 1 Requests the module description.
  • Page 74: System:ctype?

    <number> Numeric None Comments – <number> must be equal to 1 since only one Keysight E1459A module is allowed in a single instrument (logical address). – The command returns the following string: "HEWLETT-PACKARD,E1459A/Z2404B,0,revision" (revision is the revision of the driver, for example A.01.00).
  • Page 75: System:version

    – Returns a decimal value in the form:YYY.R where YYY is the year and R is the revision number within that year. Since there is no SCPI subsystem defined for Digital I/O or Event Interrupts, the version returned will be: 1990.0 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 76: Ieee 488.2 Common Commands

    IEEE 488.2 Common Commands The following table lists the IEEE 488.2 Common Commands listed by functional group that can be executed by the Keysight E1459A Digital Input / Interrupt Module. However, commands are listed alphabetically in the reference. Example are shown in the reference when the command has parameters or returns a non-trivial response;...
  • Page 77 Remove macros Deletes all macros. *LMC? List macros Lists macros by name. *DMC Define macro Defines a macro. *GMC? Menu query Gets results of menu query. *PMC Purge macros Purges all system macros. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 78: Command Quick Reference

    Returns value of the Positive Edge Detection Mask as a 16 bit integer. :PSUM:DAV? Returns status of DAVailable Event for ALL ports as a 16 bit integer. :PSUM:EDGE? Returns the status of the edge events for ALL ports. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 79 Returns the module description. :CTYP? <number> Returns the module card type. :ERR? Queries the error register for error value and string to identify the error. :VERS? Returns the SCPI version to which this module complies. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 80 Keysight E1459A SCPI Command Reference Command Quick Reference Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 81: A Keysight E1459A Specifications

    E1459A/Z2404B User and SCPI Programming Guide Keysight E1459A Specifications Max Input Voltage: Between High and Low terminal of Each Channel: 60V DC. Between Channels or Between any terminal and chassis: 125V AC or DC. Module Size/Device Type: C, Register-based. Connectors Used: P1 and P2.
  • Page 82 Keysight E1459A Specifications Terminal Module: Screw type, removable, maximum wire size 16AWG. Input Circuit: Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 83: B Keysight E1459A Register Definitions

    Listed below are the different register types on this module. – ID Register - Identifies Keysight as the manufacturer, and that the card is an A16 register based device. – Device Type Register - Identifies card as a Keysight E1459A.
  • Page 84 – Debounce Clock Register - There are two of these registers, one for the lower two ports and one for the upper two ports. These registers control the clock speed of the debouncers. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 85: Addressing The Registers

    This value is used in the following examples. Register Access with Logical Address When using the Keysight E1406 Command Module to access registers via VXI:READ and VXI:WRITE commands, the logical address is used to determine which VXI module is being accessed.
  • Page 86: Register Definitions

    VXI backplane. What is shown here is the method in which A16 addresses are calculated for a module. For example, for the Keysight 75000 Series C Mainframe with an Keysight E1406 Command Module, VXI A16 address space starts at 1F0000 = HEX).
  • Page 87: Manufacturer Id Register

    ) is a read only register. For the Isolated Digital Input/Interrupt, a read of the ID register returns FFFF since the multiplexers are manufactured by Keysight Technologies and are A16 only, register-based devices. Manufacturer ID Register (base + 00 b + 0...
  • Page 88: Status/Control Register

    Edge Enable bit set in the command register, and have at least one bit enabled in one of the mask registers. If an edge event occurs, IRQ will be asserted. This can be verified by reading the Edge Interrupt Status Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 89 Bit 14 is the MODID bit. When a "0" is returned in bit 14 then the module has been selected with a high state on the P2 MODID line. If a "1" is returned then the module has not been selected. This bit is read only. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 90: Edge Interrupt Status Register

    A "0" means it has not been triggered yet. A bit set to "1" will only return to "0" by reading the DAV register associated with that port. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 91: Watchdog Timer Control/Status Register

    When this bit is enabled the INTR line on the terminal module is active, and will be asserted as long as an edge event is captured in either edge detection register. The state of this bit is returned on a read of the register. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 92 DAV ENAB = "1" allows the DAV0/2 line to cause an interrupt if enabled in the Status/Control Register. The DAV line is asserted when data is latched. This should only be enabled when in external trigger mode. When set to "0" the DAV0/2 line cannot cause an interrupt. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 93: Channel Data Register Port 0/2

    (If bit 1 of the Command Register Word is set to a one, then bit 2 must always be set to zero.) In the Keysight E1459A the Data Ready Marker is guaranteed to be cleared when the clock source is switched from internal to external.
  • Page 94: Positive Edge Detect Register Port 0/2

    For Positive/Negative Edge Detect and Mask Registers, channels 0 through 15 are accessed when BS = 0 in the Status/Control Register. For Positive/Negative Edge Detect and Mask Registers, channels 32 through 47 are accessed when BS = 1 in the Status/Control Register. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 95: Negative Edge Detect Register Port 0/2

    Control/Status Register is low ("0"), Port 0 data is accessed. If bit 4 is high ("1"), Port 2 data will be accessed. Positive Mask Register Port 0/2 (Channels 0-15/32-47) (base + 18h) b + 18 Read/Wr Read/Wr Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 96: Debounce Clock Register Port 0 And Port1/ Port 2 And Port 3

    Port 0 and Port 1 are accessed. Port 0 and Port 1 use the same debounce clock. With BS = 0 any value programmed into or read from this register will be the same as the register at b + 2E Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 97 268 S 1074 - 1200 S 001D 1.9 mHz 537 S 2147 - 2400 S 001E 931 mHz 1074 S 4295 - 4800 S 001F 465.5 Hz 2148 S 8590 - 9600 S Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 98: Command Register Port 1/3

    (If bit 1 of the Command Register Word is set to a one, then bit 2 must always be set to zero.) In the Keysight E1459A the Data Ready Marker is guaranteed to be cleared when the clock source is switched from internal to external.
  • Page 99: Channel Data Register Port 1/3

    Positive Edge Detect Register Port 1/3 (Channels 16-31/48-63) (base + 24h) b + 24 Write No Effect Read Read For Positive/Negative Edge Detect and Mask Registers, channels 16 through 31 are accessed when BS = 0 in the Status/Control Register. Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 100: Negative Edge Detect Register Port 1/3

    ("1"), Port 3 data will be accessed. The operation of the Positive Mask Register for Port 1/3 is identical to those of Port 0/2. Positive Mask Register Port 1/3 (Channels 16-31/48-63) (base + 28h) b + 28 Read/Wr Read/Wr Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 101: Negative Mask Register Port 1/3

    Port 3 are accessed. Port 2 and Port 3 use the same debounce clock. With BS = 1 any value programmed into or read from this register will be the same as the register at b + 1E Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 102 268 S 1074 - 1200 S 001D 1.9 mHz 537 S 2147 - 2400 S 931 Hz 001E 1074 S 4295 - 4800 S 466 Hz 001F 2147 s 8590 - 9600 s Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 103: Power On/Reset Conditions

    Microsoft Visual C++ but should compile under any standard ANSI C compiler. To run this program you must have the Keysight SICL library, the Keysight VISA library, an GPIB interface module installed in your PC, and an Keysight E1406 Command Module.
  • Page 104 (VI_SUCCESS > errStatus) { printf(“ERROR: viClose() returned 0x%x\n”,errStatus); return 0;} /* Close the Resource Manager Session */ errStatus = viClose (viRM); if (VI_SUCCESS > errStatus) { printf(“ERROR: viClose() returned 0x%x\n”,errStatus); return 0;} return VI_SUCCESS; Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 105: Output And Edge Detection Examples

    This example is coded in BASIC for a System 9000 (Series 300) linked to a Keysight E1406 Command Module via GPIB. The example enables all four channel ports to detect both positive and negative edges on any channel of any port.
  • Page 106 ! port 0/1 select OUTPUT Vxi_address;"VXI:WRITE 128,16,1" ! edge enable, port 0 OUTPUT Vxi_address;"VXI:WRITE 128,32,1" ! edge enable, port 1 ENABLE INTR 7;2 ! int enable, port 0/1 select OUTPUT Vxi_address;"VXI:WRITE 128,4,32" LOOP DISABLE INTR 7 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 107 ENABLE INTR 7;2 Istat=BINAND(E,15) DISP "Port 0: ";G0,"Port 1: ";G1,"Port 2: ";G2,"Port 3: ";G3,"Intr: ";Istat END LOOP 880 Service: ! DISABLE INTR 7 ! disable E1459A ints, port 0/1 select OUTPUT Vxi_address;"VXI:WRITE 128,4,0" A=SPOLL(Vxi_address) OUTPUT Vxi_address;"STAT:OPER:EVEN?" ENTER Vxi_address;S_op OUTPUT Vxi_address;"DIAG:INT:RESP?" ENTER Vxi_address;R REPEAT OUTPUT Vxi_address;"SYST:ERR?"...
  • Page 108 1330 Istat=BINAND(E,15) 1340 PRINT "Edge Int Status: ";Istat 1350 1355 ! int disable, port 2/3 select 1360 OUTPUT Vxi_address;"VXI:WRITE 128,4,16" 1370 1375 ! get pos edge register port 2 1380 OUTPUT Vxi_address;"VXI:READ? 128,20" Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 109 OUTPUT Vxi_address;"DIAG:INT:SET1 ON" 1650 OUTPUT Vxi_address;"DIAG:INT:ACT ON" 1660 OUTPUT Vxi_address;"*OPC?" 1670 ENTER Vxi_address;Done 1680 1690 ENABLE INTR 7;2 1695 ! int enabled, select port 0 1700 OUTPUT Vxi_address;"VXI:WRITE 128,4,32" 1710 1720 RETURN 1730 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 110 ! mask off all 16 pos bits for port 1 OUTPUT Vxi_address;"VXI:WRITE 128,36,0" ! mask off all 16 neg bits for port 1 OUTPUT Vxi_address;"VXI:WRITE 128,38,0" ! set debounce to 16 uS (250 KHz) for ports 0/1 OUTPUT Vxi_address;"VXI:WRITE 128,30,2" Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 111 Programming Examples Keysight E1459A Register Definitions ! E1459A ints disabled, port 2/3 select OUTPUT Vxi_address;"VXI:WRITE 128,4,16" ! dav enable, ext clk, port 2 OUTPUT Vxi_address;"VXI:WRITE 128,16,6" ! mask off all 16 pos bits for port 2 OUTPUT Vxi_address;"VXI:WRITE 128,24,0" ! mask off all 16 neg bits for port 2 OUTPUT Vxi_address;"VXI:WRITE 128,26,0"...
  • Page 112 Keysight E1459A Register Definitions Programming Examples 680 Service: ! DISABLE INTR 7 ! disable E1459A ints, port 0/1 select OUTPUT Vxi_address;"VXI:WRITE 128,4,0" A=SPOLL(Vxi_address) OUTPUT Vxi_address;"STAT:OPER:EVEN?" ENTER Vxi_address;S_op OUTPUT Vxi_address;"DIAG:INT:RESP?" ENTER Vxi_address;R REPEAT OUTPUT Vxi_address;"SYST:ERR?" ENTER Vxi_address;Ec,A$ UNTIL Ec=0 N=N+1 PRINT "Int #: ";N OUTPUT Vxi_address;"VXI:READ? 128,8"...
  • Page 113 OUTPUT Vxi_address;"DIAG:INT:SET1 ON" 1170 OUTPUT Vxi_address;"DIAG:INT:ACT ON" 1180 OUTPUT Vxi_address;"*OPC?" 1190 ENTER Vxi_address;Done 1200 1210 ENABLE INTR 7;2 1215 ! dav int enabled, port 0/1 select 1220 OUTPUT Vxi_address;"VXI:WRITE 128,4,64" 1230 1240 RETURN 1250 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 114 ! dav enable, ext clk, edge enable, port 1 OUTPUT Vxi_address;"VXI:WRITE 128,32,7" ! unmask high order 8 pos bits for port 1 OUTPUT Vxi_address;"VXI:WRITE 128,36,-256" ! unmask high order 8 neg bits for port 1 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 115 Keysight E1459A Register Definitions OUTPUT Vxi_address;"VXI:WRITE 128,38,-256" ! set debounce to 16 uS (250 KHz) for ports 0/1 OUTPUT Vxi_address;"VXI:WRITE 128,30,2" ! E1459A ints disabled, port 2/3 select OUTPUT Vxi_address;"VXI:WRITE 128,4,16" ! dav enable, ext clk, edge enable, port 2 OUTPUT Vxi_address;"VXI:WRITE 128,16,7"...
  • Page 116 ENABLE INTR 7;2 Istat=BINAND(G,15) Dstat=BINAND(E,15) DISP "DAV Status Reg: ";Dstat,"EInt Status Reg: ";Istat END LOOP 740 Service: ! DISABLE INTR 7 ! disable E1459A ints, port 0/1 select OUTPUT Vxi_address;"VXI:WRITE 128,4,0" A=SPOLL(Vxi_address) OUTPUT Vxi_address;"STAT:OPER:EVEN?" ENTER Vxi_address;S_op OUTPUT Vxi_address;"DIAG:INT:RESP?" ENTER Vxi_address;R REPEAT OUTPUT Vxi_address;"SYST:ERR?"...
  • Page 117 ! get neg edge register, port 1 1130 OUTPUT Vxi_address;"VXI:READ? 128,38" 1140 ENTER Vxi_address;B1 1150 1155 ! E1459A ints disabled, port 2/3 select 1160 OUTPUT Vxi_address;"VXI:WRITE 128,4,16" 1170 1175 ! get dav data register, port 2 1180 OUTPUT Vxi_address;"VXI:READ? 128,18"...
  • Page 118 ! get edge int status register 1620 OUTPUT Vxi_address;"VXI:READ? 128,6" 1630 ENTER Vxi_address;A 1640 A=BINAND(A,15) 1650 PRINT "EInt Status: ";A 1660 1665 ! print wrd 2 edge registers 1670 C=BINAND(C0,-256) 1680 PRINT "Wrd 2 Pos Edge: ";C Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 119 OUTPUT Vxi_address;"DIAG:INT:SET1 ON" 1890 OUTPUT Vxi_address;"DIAG:INT:ACT ON" 1900 OUTPUT Vxi_address;"*OPC?" 1910 ENTER Vxi_address;Done 1920 1930 ENABLE INTR 7;2 1935 !dav/edge int enabled, port 0/1 select 1940 OUTPUT Vxi_address;"VXI:WRITE 128,4,96" 1950 1960 RETURN 1970 Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 120 Keysight E1459A Register Definitions Programming Examples Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 121 E1459A/Z2404B User and SCPI Programming Guide Error Messages The following table lists error messages and possible causes associated with the Keysight E1459A Module. Error Description -104, “Data type error” <mask> is not in decimal format. -109, “Missing parameter” A command does not include a required parameter (parameter cannot be defaulted).
  • Page 122 Error Messages Keysight E1459A/Z2404B User and SCPI Programming Guide...
  • Page 124 This information is subject to change without notice. © Keysight Technologies, 2019 Printed in Malaysia Edition 4, October 2019 *E1459-90001* E1459-90001 www.keysight.com...

This manual is also suitable for:

Z2404a

Table of Contents