Table of Contents

Advertisement

Quick Links

VXI
T
GPIB-VXI/C
User Manual
GPIB-VXI/C User Manual
May 2002 Edition
Part Number 370556A-01

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GPIB-VXI/C and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for National Instruments GPIB-VXI/C

  • Page 1 GPIB-VXI/C User Manual GPIB-VXI/C User Manual May 2002 Edition Part Number 370556A-01...
  • Page 2 Sweden 08 587 895 00, Switzerland 056 200 51 51, Taiwan 02 2528 7227, United Kingdom 01635 523545 For further support information, see the Technical Support and Professional Services appendix. To comment on the documentation, send email to techpubs@ni.com. © 2002 National Instruments Corporation. All rights reserved.
  • Page 3 The reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it.
  • Page 4 Classification requirements are the same for the Federal Communications Commission (FCC) and the Canadian Department of Communications (DOC). Changes or modifications not expressly approved by National Instruments could void the user’s authority to operate the equipment under the FCC Rules.
  • Page 5 Canadian Department of Communications This Class B digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations. Cet appareil numérique de la classe B respecte toutes les exigences du Règlement sur le matériel brouilleur du Canada. Compliance to EU Directives Readers in the European Union (EU) must refer to the Manufacturer’s Declaration of Conformity (DoC) for information** pertaining to the CE Mark compliance scheme.
  • Page 6: Table Of Contents

    External Input Termination ................2-8 EPROM Configuration..................2-9 Discrete Fault Indicator Configuration............2-10 Address Modifier Configuration ..............2-11 GPIB-VXI/C Startup Mode Configuration .............2-12 488-VXI Runtime System Operation ................2-13 System Startup Message Printing..............2-14 Slot 0 Resource Manager Configuration ............2-14 Slot 0 Resource Manager Operation ..........2-15 Front Panel LED Indications for RM Operation.......2-15...
  • Page 7 ConsMode ....................... 3-8 DIAG....................... 3-8 DPram?......................3-9 NVconf? ......................3-10 OBram? ......................3-11 ProgMode......................3-12 WordSerEna ....................3-13 RM Information Queries ....................3-14 A24MemMap? ....................3-15 A32MemMap? ....................3-16 Cmdr?......................3-17 CmdrTable?..................... 3-18 Laddrs?......................3-19 NumLaddrs?....................3-19 GPIB-VXI/C User Manual viii ni.com...
  • Page 8 VXIbus Interrupt Handler Configuration Commands and Queries .......3-49 AllHandlers?....................3-50 AssgnHndlr......................3-51 HandlerLine? ....................3-52 RdHandlers? ....................3-53 IEEE-488.2 Common Commands and Queries .............3-54 *CLS........................3-55 *ESE ........................3-55 *ESE? ......................3-56 *ESR? ......................3-56 *IDN? ......................3-56 *OPC .......................3-57 *OPC?......................3-57 *RST........................3-58 *SRE........................3-58 *SRE? ......................3-59 *STB? ......................3-59 *TRG .......................3-59 © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 9 WSresp? ......................3-98 WSstr....................... 3-99 WSstr? ......................3-100 Chapter 4 Nonvolatile Configuration The GPIB-VXI/C Nonvolatile Configuration Main Menu ........... 4-2 Read in Nonvolatile Configuration ..............4-2 Print Configuration Information ..............4-3 Logical Address ................4-4 Device Type..................4-4 Manufacturer Id ................4-4 Model Code, Slot 0/Non-Slot 0 ............
  • Page 10 Configuration for Diagnostic Testing ................5-1 Diagnostic Test Structure....................5-1 Diagnostics Mode Selection ..................5-2 Diagnostic Test Selection ....................5-4 Diagnostic Test Groups ....................5-5 Group 1–RAM....................5-5 Group 2–68070 CPU ..................5-5 Group 3–MIGA ....................5-6 Group 4–GPIB....................5-8 Group 5–TIC ....................5-11 Group 6–DMA....................5-16 © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 11 Using the NI-VISA Code Instrument Appendix B Using the DMAmove and CDS-852 Adapter Code Instruments Appendix C Specifications Appendix D Connectors Appendix E Error Codes Appendix F GPIB-VXI/C VXI Trigger Support Appendix G Technical Support and Professional Services Glossary Index GPIB-VXI/C User Manual ni.com...
  • Page 12: About This Manual

    About This Manual This manual contains information you need to use the GPIB-VXI/C in your VXIbus system. It describes the function and behavior of GPIB-VXI/C units configured with the standard user firmware option. Conventions The following conventions appear in this manual: This icon denotes a note, which alerts you to important information.
  • Page 13: Related Documentation

    IEEE Standard Digital Interface for Programmable Instrumentation, ANSI/IEEE Standard 488.1-1987 • IEEE Standard for a Versatile Backplane Bus: VMEbus, ANSI/IEEE Standard 1014-1987 • VXIbus Mainframe Extender Specification, VXI-6, Rev. 1.0, VXIbus Consortium • VXIbus System Specification, VXI-1, Rev. 1.3, VXIbus Consortium GPIB-VXI/C User Manual ni.com...
  • Page 14: General Description

    General Description This chapter contains a brief overview of the GPIB-VXI/C and its VXIbus and GPIB capabilities. This chapter also contains an overview of the local command set, an introduction to Code Instruments (CIs), and a description of the front panel.
  • Page 15: Unpacking

    Unpacking Caution Your GPIB-VXI/C is shipped in an antistatic plastic bag to prevent electrostatic damage to components on the module. To avoid such damage while handling the module, touch the plastic bag to a metal part of your VXIbus mainframe chassis before removing the module from the bag.
  • Page 16: Local Command Set Overview

    GPIB addresses. The IEEE 488.2 compatibility applies to 488.2-compatible VXIbus devices associated with GPIB addresses through the GPIB-VXI/C. Local Command Set Overview The GPIB-VXI/C local command set supports the following types of operations: • System configuration and control –...
  • Page 17: Code Instruments

    (the CDS-852 CI; refer to Appendix B, Using the DMAmove and CDS-852 Adapter Code Instruments, for more information) National Instruments does not support other CIs from legacy GPIB-VXI/C applications or development of new custom CIs. GPIB-VXI/C User Manual ni.com...
  • Page 18: Front Panel Features

    VXIbus device in the system has failed. – The FAILED, TEST, and ON LINE LEDs indicate the current GPIB-VXI/C status. – The ACCESS LED indicates when the GPIB-VXI/C is accessed from GPIB or VXIbus or when its MODID is asserted. • Five front panel connectors –...
  • Page 19: Configuration And Startup Procedures

    Refer to Appendix D, Connectors, for descriptions of the RS-232 serial connector and the GPIB interface connector. Cables for connecting the GPIB-VXI/C serial port to an RS-232 terminal or COM1 port on an IBM PC-compatible computer are available from National Instruments.
  • Page 20: Gpib-Vxi/C Configuration

    External Clock Input Unterminated External Trigger Input You do not have to change the GPIB-VXI/C factory configuration to use it as a Slot 0 Resource Manager. The following sections describe the factory configuration settings and present alternate configurations. Figure 2-1 shows the location of the GPIB-VXI/C configurable components and their physical location relative to some of the major circuit components.
  • Page 21 Chapter 2 Configuration and Startup Procedures The GPIB-VXI/C is housed in a metal enclosure that has cutouts for access Note to all switches and jumpers associated with Slot 0/Non-Slot 0 settings, start-up mode, and Shared RAM settings. Under normal circumstances, you do not need to open the enclosure.
  • Page 22: Setting The Logical Address, Gpib Primary Address, And Servant Area Size

    1; down is logical 0. Verifying the Installed RAM Size The GPIB-VXI/C contains 4 MB of factory-installed local RAM but is configured to use the minimum amount of 512 KB. Table 2-2 lists the RAM configurations and their associated switch settings. You can use this information to change the board configuration.
  • Page 23: Setting The Shared Memory Size

    The RAM shared with the VXIbus will be the upper portion of the installed memory. Note The GPIB-VXI/C Offset Register holds the shared memory VXI A24 base address, as described in the VXIbus specification. The RM automatically configures the Offset Register at startup.
  • Page 24: Setting The Reset Operation

    You can change the VXIbus requester level of the GPIB-VXI/C by moving the jumpers on jumper blocks W1 and W2 as shown in Figure 2-2. The GPIB-VXI/C is configured at the factory to be a Level 3 requester. GPIB-VXI/C User Manual...
  • Page 25: Setting The Vxi Interrupt Handler Levels

    Figure 2-2. VXIbus Requester Jumper Settings Setting the VXI Interrupt Handler Levels As part of the hardware capabilities on the GPIB-VXI/C, there are three VXI programmable interrupt handlers. They can be assigned dynamically by the RM or statically according to the contents of the nonvolatile memory...
  • Page 26: External Input Termination

    External Input Termination Switches S12 and S16 enable a 50-ohm termination to ground for the external trigger and external clock inputs, respectively. The GPIB-VXI/C is factory-configured with the termination disabled for both the external trigger and the external clock inputs. Figure 2-3 shows the settings required to enable or disable the termination on the external trigger.
  • Page 27: Eprom Configuration

    Configuration and Startup Procedures EPROM Configuration The amount of read-only memory (ROM) in the GPIB-VXI/C can vary from 512 KB to 1 MB. The standard configuration consists of 512 KB of EPROM, which is used for the operating firmware. The GPIB-VXI/C also includes four sockets for EPROM expansion.
  • Page 28: Discrete Fault Indicator Configuration

    SYSFAIL* is asserted, pins 1 and 6 will present an electrical short-circuit. If S17 is in the ON position, the GPIB-VXI/C DFI is set to the normally closed mode. Therefore, if SYSFAIL* is not asserted while the backplane is powered-up, pins 1 and 6 will present an electrical short-circuit.
  • Page 29: Address Modifier Configuration

    A16 accesses, the lines AM5, AM4, and AM3 are needed high, low, and high, respectively, and AM1 is needed low. During A24 accesses, the lines AM5, AM4, and AM3 are all needed high. The GPIB-VXI/C drives the upper three address modifier lines appropriately for every access. You should configure the GPIB-VXI/C to drive the lower three address modifier lines as needed.
  • Page 30: Gpib-Vxi/C Startup Mode Configuration

    • 488-VXI runtime system mode is the startup mode for normal operation in a VXI system. The GPIB-VXI/C is configured at the factory to start up in this mode. The remainder of this chapter contains a description of operation in this mode.
  • Page 31: 488-Vxi Runtime System Operation

    Never install a GPIB-VXI/C configured for Non-Slot 0 operation in Slot 0 Caution or a GPIB-VXI/C configured for Slot 0 operation in any slot other than Slot 0. Doing so can damage the GPIB-VXI/C, the mainframe, or other modules. © National Instruments Corporation...
  • Page 32: System Startup Message Printing

    Figure 2-9. VXI System Startup Message Switch Settings Slot 0 Resource Manager Configuration You can configure the GPIB-VXI/C for Slot 0 Resource Manager operation by enabling the VXIbus Slot 0 functions and setting the logical address to 0, as shown in Table 2-7.
  • Page 33: Slot 0 Resource Manager Operation

    EXT CLK connector. Invalid. Do not use this setting. Slot 0 Resource Manager Operation At startup, a GPIB-VXI/C configured as a Slot 0 Resource Manager performs its self-tests, executes the RM functions, and then enters its normal mode of operation.
  • Page 34: Self-Test Operation

    SYSRESET* signal is negated. During this period, all of the VXIbus devices in the system should have completed their self-tests. Note You can configure the GPIB-VXI/C to wait for any number of seconds before RM operations begin. The RM then scans Logical Addresses 1 through 254 for static configuration devices (SC devices).
  • Page 35 The RM configures the VXI interrupter and interrupt handlers using a seven-entry table contained in nonvolatile configurations. During the VXI interrupt configuration, the RM assigns interrupt levels to all Programmable Handlers (PH) and Programmable Interrupters (PI). © National Instruments Corporation 2-17 GPIB-VXI/C User Manual...
  • Page 36: Static Configuration Operation

    However, if you want to customize your own DC hierarchy and the nonvolatile configuration specifies that the RM not finish configuring the hierarchy, the GPIB-VXI/C RM does not send Identify Commander or Begin Normal Operation to any devices, either static or dynamic.
  • Page 37: Gpib Address Assignment

    Servants. If the Message-Based device does not support minimal Word Serial[I] or VXIbus 488.2[I4] capabilities, no GPIB address link is created. The GPIB-VXI/C assigns a GPIB address to each device according to the top five bits of its logical address. For example, the GPIB address of a device with Logical Address 96 (01100000b) would be 12 (01100b).
  • Page 38: System Configuration Table

    Chapter 2 Configuration and Startup Procedures You can change the self-assigned default GPIB address of the GPIB-VXI/C through the nonvolatile memory configuration as described in the Change Configuration Information section of Chapter 4, Nonvolatile Configuration. The default GPIB address of the GPIB-VXI/C when configured for multiple secondary addresses is Secondary Address 0 (Primary Address 1).
  • Page 39: Non-Slot 0 Resource Manager Operation

    Message-Based operation. Refer to Table 2-12. Disable the VXIbus Slot 0 functions. Set the model code of the GPIB-VXI/C to be configured for Non-Slot 0 operation using the nonvolatile configuration mode. Set the logical address to a non-zero value with an appropriate Servant area size using the nonvolatile configuration mode or by using DIP switch SW1.
  • Page 40: Non-Slot 0 Message-Based Device Operation

    Configuration and Startup Procedures If the logical address is set to FFh in nonvolatile configuration (the DIP switch cannot set the logical address to FFh), the GPIB-VXI/C will participate in dynamic configuration. Otherwise, the GPIB-VXI/C is a static configuration device.
  • Page 41: Slot 0 Message-Based Device Configuration

    Refer to Table 2-14. Enable the VXIbus Slot 0 functions. Set the model code of the GPIB-VXI/C to be configured for Slot 0 operation using the nonvolatile configuration mode. Set the logical address to a non-zero value with an appropriate Servant area size.
  • Page 42: Slot 0 Message-Based Device Operation

    Servant area. When the GPIB-VXI/C responds to the Begin Normal Operation command, it enters the normal mode of operation. After the GPIB-VXI/C Passed bit is set, the RM can manipulate or read the MODID lines by sending the Word Serial queries Read MODID, Set Lower MODID, or Set Upper MODID to the GPIB-VXI/C.
  • Page 43: Local Command Set

    The GPIB-VXI/C command set consists of commands and queries. Commands cause the GPIB-VXI/C to take some action. A query may also cause the GPIB-VXI/C to take some action, but it also returns a response containing data or other information.
  • Page 44: Command Set Access

    • VXI Word Serial Communication All ports are active when the GPIB-VXI/C is in the Normal Operation substate and operate independently of one another. The GPIB-VXI/C returns query responses only to the port originating the query. The GPIB-VXI/C also maintains a separate status state for each port.
  • Page 45: Command Line Termination

    <LF> (ASCII 0Ah), it is ignored. The GPIB termination is EOI. Commands issued to the GPIB-VXI/C via VXI Word Serial Protocol are terminated by setting the END bit in the last Byte Available command. Responses are terminated by setting the END bit in response to the last Byte Request query.
  • Page 46: Command Response Format

    ( ). A list of error code descriptions is given in Appendix E, Error Codes. If the console response mode is enabled, the GPIB-VXI/C returns an error message in the following format: <CRLF> <error description> If both response modes are enabled, the program mode error message is returned first, followed by the console mode message.
  • Page 47: Help

    <Command Syntax> <Command description> <CRLF> <Command Syntax> <Command description> <CRLF> <Command Syntax> <Command description> • • • • • • Example List syntax and descriptions of general configuration and GPIB address commands. Help? gc,sa © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 48: General Configuration Commands And Queries

    GPIB-VXI/C and enters the nonvolatile configuration editor. reboots the GPIB-VXI/C and enters diagnostic mode. DIAG query can be used to determine the amount of GPIB-VXI/C installed RAM, OBRAM? and the query returns the amount of the installed RAM that is shared with VXI DPRAM? A24 space.
  • Page 49: Conf

    Notice that once the console has been disabled, it must be re-enabled from a command source other than the RS-232 port (such as the GPIB port). Examples Disable console. ConsoleEna 0 Enable console. ConsoleEna 1 © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 50: Consmode

    Example Disable console format responses. ConsMode 0 Enable console format responses. ConsMode 1 DIAG Purpose Reboot into diagnostics mode. Command Syntax DIAG Example Reboot into diagnostics mode. DIAG GPIB-VXI/C User Manual ni.com...
  • Page 51: Dpram

    Chapter 3 Local Command Set DPram? Purpose Get the A24/A32 starting address and the size of the GPIB-VXI/C VXI shared RAM. Query Syntax DPram? Response Program response: <CRLF> <A24/A32 starting address>, <shared RAM size> Console response: This GPIB-VXI has <shared RAM size>K bytes dual ported to [A24, A32] <CRLF>...
  • Page 52: Nvconf

    : 0x 80000 CI Num Blocks ------ Resident Code Instrument Locations ------ # 0: # 1: # 2: # 3: # 4: # 5: # 6: # 7: # 8: # 9: # a: # b: GPIB-VXI/C User Manual 3-10 ni.com...
  • Page 53: Obram

    #23: #24: #25: #26: #27: #28: #29: #30: #31: OBram? Purpose Get the amount of RAM installed onboard the GPIB-VXI/C. Query Syntax OBram? Response Program response: <CRLF> <memsize> where is the amount of installed RAM, in KB. <memsize> Console response: <CRLF>...
  • Page 54: Progmode

    For example, disabling the program response mode from the GPIB port does not affect the response mode on the serial port. Examples Disable program format responses. ProgMode 0 Enable program format responses. ProgMode 1 GPIB-VXI/C User Manual 3-12 ni.com...
  • Page 55: Wordserena

    <logical must be the logical address of the GPIB-VXI/C or an onboard code instrument. address> The default control of the physical registers is given to the GPIB-VXI/C local command set parser. Examples Pass control of the physical registers to code instrument at Logical Address 5.
  • Page 56: Rm Information Queries

    A24MemMap? A32MemMap? the GPIB-VXI/C is the system RM, it can access information about the entire system. If it is not the RM, it has information only about itself and its immediate Servants. query is used to find out how many devices there are in the system.
  • Page 57: A24Memmap

    <A24 memory size> bytes) at A24 Address<A24 memory base> • • Logical Address <la N > has <A24 memory size>K <CRLF> (<A24 memory size> bytes) at A24 Address<A24 memory base> Example Get A24 address map for the system. A24MemMap? © National Instruments Corporation 3-15 GPIB-VXI/C User Manual...
  • Page 58: A32Memmap

    (<A32 memory size> bytes) at A32 Address<A32 memory base> • • Logical Address <la N > has <A32 memory size>K <CRLF> (<A32 memory size> bytes) at A32 Address<A32 memory base> Example Get A32 address map for the system. A32MemMap? GPIB-VXI/C User Manual 3-16 ni.com...
  • Page 59: Cmdr

    <CRLF> <Commander's logical address> Console response: The Commander of Logical Address <logical address> is Logical Address <CRLF> <Commander's logical address> Example Get the Commander’s logical address for Logical Address 15. Cmdr? 15 © National Instruments Corporation 3-17 GPIB-VXI/C User Manual...
  • Page 60: Cmdrtable

    Servant addresses through <la X> <sa X ,1> <sa1,M> field indicates any relevant information about the status and/or capabilities <comment> of the device at Logical Address <la X > GPIB-VXI/C User Manual 3-18 ni.com...
  • Page 61: Laddrs

    Get the number of known logical addresses. Query Syntax NumLaddrs? Response Program response: <CRLF> <num las> where is the number of known logical addresses. <num las> Console response: <CRLF> There are <num las> known Logical Addresses © National Instruments Corporation 3-19 GPIB-VXI/C User Manual...
  • Page 62: Rmentry

    The mnemonics have the following meanings: Device’s logical address Commander’s logical address Device’s GPIB address (255 if not assigned GPIB address) addr Slot number (255 if unknown, such as if the device does not have slot MODID capability) GPIB-VXI/C User Manual 3-20 ni.com...
  • Page 63 For example, memory base address and memory size lines are not returned for A16-only memory space devices. Example Get RM information for a device at Logical Address 78. RmEntry? 78 © National Instruments Corporation 3-21 GPIB-VXI/C User Manual...
  • Page 64: Srvnts

    <comment> if the device has no Servants. field indicates any relevant information about the status and/or capabilities <comment> of the device. Example Get a list of Servants for device at Logical Address 15. Srvnts? 15 GPIB-VXI/C User Manual 3-22 ni.com...
  • Page 65: Statusstate

    Device at Logical Address <logical address> is Failed and Ready <CRLF> Device at Logical Address <logical address> is Passed and Ready Example Get self-test status for device at Logical Address 48. StatusState? 48 © National Instruments Corporation 3-23 GPIB-VXI/C User Manual...
  • Page 66: Dynamic Configuration Commands And Queries

    DCSystem? The DC commands are used to configure the VXI system when all of these conditions are present: • The GPIB-VXI/C is the RM. • At least one DC device is present in the system. • The nonvolatile configuration setup specifies not to send Begin Normal Operation (user-specified hierarchy).
  • Page 67: Dcbnosend

    Device Grant command to the Commander at DCGrantDev <Commander's , granting it the device at logical address> <Servant's logical address> Example Grant Servant at Logical Address 7 to Commander at Logical Address 5. DCGrantDev 5,7 © National Instruments Corporation 3-25 GPIB-VXI/C User Manual...
  • Page 68: Dcsystem

    Normal Operation command has already been sent to the top-level Commanders through local command. DCBNOSend Console response: <CRLF> This IS a Dynamic Configured system. if it is a DC system, or <CRLF> This is NOT a Dynamic Configured system. if it is not a DC system. GPIB-VXI/C User Manual 3-26 ni.com...
  • Page 69: Dynamic Reconfiguration Queries

    RelSrvnt? The dynamic reconfiguration commands are used to reconfigure the GPIB-VXI/C’s Servant subtree after the system has entered the Normal Operation substate. If the GPIB-VXI/C is RM, these commands can be used to reconfigure the entire system. query can be used to make the system or subtree enter the Configure...
  • Page 70: Broadcast

    Local Command Set Broadcast? Purpose Broadcast dynamic reconfiguration, initialization, or termination Word Serial commands to the GPIB-VXI/C’s Message-Based Servants or to all top-level Commanders in the system. Query Syntax Broadcast? <Boolean>,<ws cmd> is 1, the GPIB-VXI/C broadcasts to all top-level Commanders.
  • Page 71 Timeout waiting for Word Serial response from device at <la> Device at did not recognize the command <la> Multiple query error Read Protocol error not supported Read Ready (RR) violation Write Ready (WR) violation © National Instruments Corporation 3-29 GPIB-VXI/C User Manual...
  • Page 72 None of the other bits has significance in this context. is a string explaining the Word Serial error as shown in the previous table. <ws error> Example Broadcast the Identify Commander Word Serial command to all top-level Commanders. broadcast? 1,IDN GPIB-VXI/C User Manual 3-30 ni.com...
  • Page 73: Grantdev

    <Servant's logical address> <Commander's logical address> The GPIB-VXI/C must own the device at <Servant's logical address> The GPIB-VXI/C can get ownership of any device with the command. RelSrvnt? Notice that before the query is used, the Word Serial End Normal Operation...
  • Page 74: Relsrvnt

    Query Syntax RelSrvnt? <Commander's logical address>, <Servant's logical address> Action Commands device at to release ownership of the <Commander's logical address> device at . The GPIB-VXI/C assumes ownership of the <Servant's logical address> device. Response Program response: <CRLF> 65534 if the Commander released the Servant. Any other response indicates that an error occurred.
  • Page 75: Vxi-Defined Common Ascii System Commands

    DRES? query and command are used to peek (read from) and poke (write to) RREG? WREG registers on a VXI device. © National Instruments Corporation 3-33 GPIB-VXI/C User Manual...
  • Page 76: Dcon

    Interrupter levels used by this device where is a 7-digit INTS INTS binary representing the seven VXI interrupt levels and a 1 in each position, meaning Interrupter present Status state of the device: status PASS FAIL IFAIL READY GPIB-VXI/C User Manual 3-34 ni.com...
  • Page 77 Chapter 3 Local Command Set Substate of the device sstate CONF NONE Not used; always returns "" Example Get device configuration information for Logical Address 6. DCON? 6 © National Instruments Corporation 3-35 GPIB-VXI/C User Manual...
  • Page 78: Dinf

    Manufacturer’s ID number manid Device class; the following values may be used: devclass REG = Register-Based device MSG = Message-Based device EXT = Extended-Class device MEM = Memory-Based device Memory space requirement memspace A16/A24 A16/A32 GPIB-VXI/C User Manual 3-36 ni.com...
  • Page 79 Memory sizes for A16, A24, A32 "HHHH HHHHHH HHHHHHHH" Slot number (–1 if unknown) slot Slot 0 Logical Address (–1 if unknown) slot0 Extended device’s subclass Memory device’s attributes attr Not used, always "" © National Instruments Corporation 3-37 GPIB-VXI/C User Manual...
  • Page 80: Dlad

    Console response: <CRLF> Known logical addresses are <la1>,<la2>,..., <la N > CI logical addresses are terminated with an asterisk (*) in the console mode response. Example Get a list of the known logical addresses. DLAD? GPIB-VXI/C User Manual 3-38 ni.com...
  • Page 81: Dnum

    <num las> where is the number of known logical addresses. <num las> Console response: <CRLF> There are <num las> known Logical Addresses. Example Get the number of the known logical addresses. DNUM? © National Instruments Corporation 3-39 GPIB-VXI/C User Manual...
  • Page 82: Dres

    Logical Address <logical address> is <status>. SYSFAIL Inhibit is <CRLF> <state>. where is one of the following: <status> PASS FAIL IFAIL READY is one of the following: <state> Example Soft-reset device at Logical Address 3. DRES? 3 GPIB-VXI/C User Manual 3-40 ni.com...
  • Page 83: Rreg

    <hex word value> Console response: Value 0x<hex word value> (<word value>) read from Logical Address <CRLF> <logical address>, Register offset 0x<reg offset> Example Read Device Type register from Logical Address 12. RREG? 12,2 © National Instruments Corporation 3-41 GPIB-VXI/C User Manual...
  • Page 84: Wreg

    16-bit value to write. <value> Action Write , register offset <value> <logical address> <reg offset> Example Write the Data Low register for Logical Address 4 with the value 65535 WREG 4,14,65535 GPIB-VXI/C User Manual 3-42 ni.com...
  • Page 85: Gpib Address Configuration Commands And Queries

    RM information query SaddrLa? Laddrs? followed by queries. LaSaddr? You can assign GPIB address links to Message-Based Servants of the GPIB-VXI/C with the command. The command deletes all GPIB address links except the link LaSaddr SaDisCon to the GPIB-VXI/C local commands.
  • Page 86: Lasaddr

    • There is still data in the GPIB address input or output queue. Examples Attach GPIB Address 6 to Logical Address 4. LaSaddr 4,6 Release GPIB address currently attached to Logical Address 8. LaSaddr 8,255 GPIB-VXI/C User Manual 3-44 ni.com...
  • Page 87: Lasaddr?

    Logical Address <logical address> is NOT attached to a GPIB <type> <CRLF> Address for logical addresses without attached GPIB addresses. Example Get the GPIB address attached to Logical Address 9. LaSaddr? 9 © National Instruments Corporation 3-45 GPIB-VXI/C User Manual...
  • Page 88: Primary

    Query Syntax Primary? Response Program response: <CRLF> <primary address> where is the GPIB primary address of GPIB-VXI/C. <primary address> Console response: The GPIB primary address (for Secondary Address mode) of this GPIB-VXI <CRLF> is <primary address> GPIB-VXI/C User Manual 3-46...
  • Page 89: Saddrla

    GPIB <type> Address <GPIB address> is NOT attached to a Logical <CRLF> Address for a GPIB address that is not attached to any logical address. Example Get the logical address attached to GPIB Address 9. SaddrLa? 9 © National Instruments Corporation 3-47 GPIB-VXI/C User Manual...
  • Page 90: Saddrs

    • <CRLF> <type> Address <sa N >: attached to Logical Address <la N > SaDisCon Purpose Detach all GPIB address links except the GPIB address link to the GPIB-VXI/C command set. Command Syntax SaDisCon Action Detaches all GPIB address links from Servants of the GPIB-VXI/C.
  • Page 91: Vxibus Interrupt Handler Configuration Commands And Queries

    • RdHandlers? The interrupt handler commands and queries configure and report the relationships between the GPIB-VXI/C interrupt handlers and VXIbus interrupt levels. The GPIB-VXI/C has three programmable interrupter handlers. An application program can confirm this with the query. The queries...
  • Page 92: Allhandlers

    Chapter 3 Local Command Set AllHandlers? Purpose Get the VXIbus interrupt level assigned to all GPIB-VXI/C interrupt handlers. Query Syntax AllHandlers? Response Program response: <CRLF> <level1>,<level2>,<level3> where is the interrupt level assigned to Handler 1, is the interrupt level <level1>...
  • Page 93: Assgnhndlr

    0, the current VXIbus interrupt line held by Interrupt Handler <level> <handler> released. Examples Assign the Interrupt Level 6 to the GPIB-VXI/C Interrupt Handler 2. AssgnHndlr 2,6 Release the interrupt level currently held by the GPIB-VXI/C Interrupt Handler 1. AssgnHndlr 1,0 © National Instruments Corporation 3-51 GPIB-VXI/C User Manual...
  • Page 94: Handlerline

    Chapter 3 Local Command Set HandlerLine? Purpose Get the level assigned to a GPIB-VXI/C interrupt handler. Query Syntax HandlerLine? <handler> Response Program response: <CRLF> <level> Console response: VXI interrupt Handler <handler> assigned to interrupt level <CRLF> <level> is the interrupt level assigned to handler .
  • Page 95: Rdhandlers

    Chapter 3 Local Command Set RdHandlers? Purpose Get the number of assignable GPIB-VXI/C interrupt handlers. Query Syntax RdHandlers? Response Program response: <CRLF> Console response: <CRLF> This GPIB-VXI has 3 configurable VXI interrupt handlers. Example Get the number of assignable GPIB-VXI/C interrupt handlers.
  • Page 96: Ieee-488.2 Common Commands And Queries

    VXI environment, but are included for compatibility. The GPIB-VXI/C has no reason to interrupt as a 488.2 instrument. It is only a parser. All other functions of the GPIB-VXI/C are considered to be interface functions for other 488.2 VXI devices.
  • Page 97: Cls

    Idle state. Command Syntax *CLS Action None. *ESE 488.2 Intent Set the GPIB-VXI/C’s Standard Event Status Enable (ESE) register bits. Command Syntax *ESE <byte value> where is the new value of the ESE register. <byte value> Action Sets ESE to <byte value>...
  • Page 98: Esr

    *ESR? Response <CRLF> <ESR val> is the current value of the ESR. <ESR val> *IDN? 488.2 Intent Get the GPIB-VXI/C’s manufacturer, model, serial number, and firmware level. Query Syntax *IDN? Response "National Instruments","GPIB-VXI",<serial number>,<firmware <CRLF> version> GPIB-VXI/C User Manual 3-56...
  • Page 99: Opc

    Notice that because the GPIB-VXI/C only parses and routes commands, there are never any pending commands on the GPIB-VXI/C. *OPC? 488.2 Intent Cause the GPIB-VXI/C to place an ASCII 1 in its output queue when all pending operations have completed. Query Syntax *OPC? Response <CRLF>...
  • Page 100: Rst

    Return a device to a known initial state. Command Syntax *RST Action None. Other than the response mode configuration, the GPIB-VXI/C does not depart from its initial state. *SRE 488.2 Intent Set the device’s Service Request Enable (SRE) register bits.
  • Page 101: Stb

    Get the contents of a device’s Status Byte. Query Syntax *STB? Response <CRLF> <STB value> where is the current status of the path to the GPIB-VXI/C local <STB value> command parser. *TRG 488.2 Intent Cause a device to execute a stored trigger sequence. Command Syntax...
  • Page 102: Tst

    Failure to complete the self-test is indicated by a failure to respond to this query. If the response is received, the self-test was successful. *WAI 488.2 Intent Prevent device from executing any further commands until the No-Operation Pending flag is TRUE. Command Syntax *WAI Action None. GPIB-VXI/C User Manual 3-60 ni.com...
  • Page 103: Vxibus Access Commands And Queries

    If your application requires block moving or higher speed accesses to or from the Note VXIbus address spaces, refer to Appendix A, Using the NI-VISA Code Instrument. command can be used to remotely reset the system. SYSRESET © National Instruments Corporation 3-61 GPIB-VXI/C User Manual...
  • Page 104: A16

    <word value> <hex word value> hexadecimal format, is in C language hexadecimal format, and <A16 hex address> is in decimal integer format. <A16 address> Example Read the ID register of Logical Address 16. A16? #hc400 GPIB-VXI/C User Manual 3-62 ni.com...
  • Page 105: A24

    2097152 to 14680062 ( <A24 address> #h200000 #hE7FFFE Action Write <word value> <A24 address> Example Write the value A502h to VXI A24 address 504305h. A24 #h504305, #hA502 © National Instruments Corporation 3-63 GPIB-VXI/C User Manual...
  • Page 106: Sysreset

    <A24 hex address> is in decimal integer format. <A24 address> Example Read the word at A24 address 205634h. A24? #h205634 SYSRESET Purpose Remotely reset system. Command Syntax SYSRESET Action Asserts the VXI backplane signal SYSRESET*. GPIB-VXI/C User Manual 3-64 ni.com...
  • Page 107: Ttl/Ecl Trigger Access Commands

    • WaitForTrig These commands can be used to directly manipulate the VXI TTL/ECL trigger lines and the front panel trigger connectors of the GPIB-VXI/C. The trigger functions are grouped into the following four categories: • Source trigger commands act as a standard interface for asserting (sourcing) TTL and ECL triggers, as well as for detecting acknowledgements from accepting devices.
  • Page 108 • Trigger configuration commands are configuration tools for configuring not only the general settings of the trigger inputs and outputs, but also the National Instruments Trigger Interface Chip (TIC) counter and tick timers. The trigger configuration commands are TrigAsstConf...
  • Page 109: Acktrig

    <line text> 0 to 7 TTL <line> 8 to 9 ECL (<line> – 8) 40 to 49 GPIO (<line> – 40) Example Acknowledge a trigger interrupt for TTL line 4. AckTrig 4 © National Instruments Corporation 3-67 GPIB-VXI/C User Manual...
  • Page 110: Distrigsense

    <line text> <line> Value of Value of <line> <line text> 0 to 7 TTL <line> 8 to 9 ECL (<line> - 8) TCNTR TICK 1 Example Disable sensing of TTL line 4. DisTrigSense 4 GPIB-VXI/C User Manual 3-68 ni.com...
  • Page 111: Enatrigsense

    TTL trigger lines 0 to 7 8 to 9 ECL trigger lines 0 to 1 TIC counter TIC TICK timers and the value of specifies the protocol to use. <protocol> Value Protocol START STOP SYNC SEMI-SYNC ASYNC © National Instruments Corporation 3-69 GPIB-VXI/C User Manual...
  • Page 112 <protocol text> <protocol> Value of Value of <protocol> <protocol text> START STOP SYNC SEMI-SYNC ASYNC Example Enable sensing of TTL line 4 for SEMI-SYNC protocol. EnaTrigSense 4, 5 GPIB-VXI/C User Manual 3-70 ni.com...
  • Page 113: Gettrighndlr

    <line text> 0 to 7 TTL <line> 8 to 9 ECL (<line> - 8) TCNTR TICK 1 Example Get the address of the trigger interrupt handler for TTL trigger line 4. GetTrigHndlr 4 © National Instruments Corporation 3-71 GPIB-VXI/C User Manual...
  • Page 114: Maptrigtrig

    Front panel In (unbuffered) Connection to EXTCLK input pin 44 to 49 Hardware-dependent GPIOs 4 to 9 TIC counter pulse output (TCNTR) TIC counter finished output (GCNTR) TIC TICK1 tick timer output TIC TICK2 tick timer output GPIB-VXI/C User Manual 3-72 ni.com...
  • Page 115 ECL (<line> - 8) 40 to 49 GPIO (<line> - 40) TCNTR GCNTR TICK1 TICK2 Example Map TTL line 4 to go out of the front panel with no signal conditioning. MapTrigTrig 4, 41, 0 © National Instruments Corporation 3-73 GPIB-VXI/C User Manual...
  • Page 116: Settrighndlr

    Program response: 0 Console response: Trigger handler(s) installed (lines = <lines text>): <CRLF> DefaultTrigHandler(). where the meaning of , where , and are bits that are <lines text> = x, y, z... set in <lines> GPIB-VXI/C User Manual 3-74 ni.com...
  • Page 117 Set a trigger interrupt handler for TTL trigger line 4. SetTrigHndlr 16, 0 Note DefaultTrigHandler automatically acknowledges acceptor protocols that require acknowledgement, while does not. DefaultTrigHandler2 is used, send to acknowledge the trigger. DefaultTrigHandler2 AckTrig © National Instruments Corporation 3-75 GPIB-VXI/C User Manual...
  • Page 118: Srctrig

    (supports SYNC and SEMI-SYNC protocols only) TIC TICK timers (supports SYNC and SEMI-SYNC protocols only) the value of specifies the protocol to use. <protocol> Value Protocol START STOP SYNC SEMI-SYNC ASYNC SEMI-SYNC and wait for Acknowledge GPIB-VXI/C User Manual 3-76 ni.com...
  • Page 119 TCNTR TICK 1 and the meaning of corresponds to the value of as follows. <protocol text> <protocol> Value of Value of <protocol> <protocol text> START STOP SYNC SEMI-SYNC ASYNC SEMI-SYNC wait ACK © National Instruments Corporation 3-77 GPIB-VXI/C User Manual...
  • Page 120 Chapter 3 Local Command Set Value of Value of <protocol> <protocol text> ASYNC wait ACK ffffh wait ACK ABORT Example Source TTL line 4 for SEMI-SYNC protocol. SrcTrig 4, 5, 0 GPIB-VXI/C User Manual 3-78 ni.com...
  • Page 121: Trigasstconf

    1 = Pass trigger through asynchronously 0 = Synchronize with next CLK10 edge 1 = Participate in SEMI-SYNC with external trigger acknowledge protocol 0 = Do not participate All other values are reserved for future expansion. © National Instruments Corporation 3-79 GPIB-VXI/C User Manual...
  • Page 122 Configure all TTL/ECL trigger lines generally to synchronize to the falling edge of CLK10 (as opposed to the rising edge). TrigAsstConf -1, 1 Example 2 Configure TTL trigger line 4 to synchronize to CLK10 for any assertion method and do not participate in SEMI-SYNC. TrigAsstConf 4, 0 GPIB-VXI/C User Manual 3-80 ni.com...
  • Page 123: Trigcntrconf

    Trigger Line 0 to 7 TTL trigger lines 0 to 7 8 to 9 ECL trigger lines 0 to 1 CLK10 EXTCLK specifies the number of input pulses to count before terminating. <count> © National Instruments Corporation 3-81 GPIB-VXI/C User Manual...
  • Page 124 ECL (<line> - 8) CLK10 EXTCLK Example Configure the counter count 25 assertions on TTL trigger line 5 (the parameter <protocol> when calling will determine whether the counter accepts SYNC or EnaTrigSense SEMI-SYNC assertions). TrigCntrConf 0, 5, 25 GPIB-VXI/C User Manual 3-82 ni.com...
  • Page 125: Trigextconf

    1 = If assertion selected, assert low 0 = If assertion selected, assert high 1 = Invert external input (not feedback) 0 = Pass external input unchanged All other values are reserved for future expansion. © National Instruments Corporation 3-83 GPIB-VXI/C User Manual...
  • Page 126 MapTrigTrig TrigExtConf 40, 8 Example 3 Configure external line 48 (GPIO 8) to be used as feedback for use as a cross-point switch input and output via MapTrigTrig TrigExtConf 48, 1 GPIB-VXI/C User Manual 3-84 ni.com...
  • Page 127: Trigtickconf

    (as a power <tcount1> <tcount2> of two) to count before asserting TICK1 output or TICK2 output, respectively (and terminating the tick timer if configured for non-rollover mode). © National Instruments Corporation 3-85 GPIB-VXI/C User Manual...
  • Page 128 Configure the tick timers to output a continuous 9.765-kHz square wave on TICK1 output and a 1.25-MHz clock on TICK2 output by dividing down CLK10 as an input. Call SrcTrig start the tick timers. TrigTickConf 0, 70, 10, 3 GPIB-VXI/C User Manual 3-86 ni.com...
  • Page 129: Trigtoreqt

    ECL trigger lines 0 to 1 TIC counter TIC TICK1 tick timer Action The GPIB-VXI/C is set up to assert SRQ for a device attached to a GPIB address for a given trigger line’s interrupt, as configured using either the function. SrcTrig...
  • Page 130 Chapter 3 Local Command Set Example Set up Logical Address 4 to assert SRQ when a trigger interrupt occurs on TTL trigger line 2. TrigToREQT 4, 2 GPIB-VXI/C User Manual 3-88 ni.com...
  • Page 131: Umaptrigtrig

    Connection to EXTCLK input pin 44 to 49 Hardware-dependent GPIOs 4 to 9 TIC counter pulse output (TCNTR) TIC counter finished output (GCNTR) TIC TICK1 tick timer output TIC TICK2 tick timer output © National Instruments Corporation 3-89 GPIB-VXI/C User Manual...
  • Page 132 ECL (<line> - 8) 40 to 49 GPIO (<line> - 40) TCNTR GCNTR TICK1 TICK2 Example Unmap route of TTL line 4 to go out of the front panel as mapped by MapTrigTrig UMapTrigTrig 4, 49 GPIB-VXI/C User Manual 3-90 ni.com...
  • Page 133: Waitfortrig

    Value of Value of <line> <line text> 0 to 7 TTL <line> 8 to 9 ECL (<line> - 8) TCNTR TICK1 Example Wait for TTL line 4 to be encountered. WaitForTrig 4, 10000 © National Instruments Corporation 3-91 GPIB-VXI/C User Manual...
  • Page 134: Word Serial Communication Commands And Queries

    Message-Based device, while other commands do not. To distinguish between the two types of Word Serial commands and to avoid confusion between Word Serial commands and GPIB-VXI/C local commands and queries, the following terminology will be used in this section: •...
  • Page 135 Read Protocol Error Word Serial query to a device and reports ProtErr? the error response. The query returns the value of a device’s response register. RespReg? © National Instruments Corporation 3-93 GPIB-VXI/C User Manual...
  • Page 136: Proterr

    Data Low register response. <hex value> Console response: Read Protocol Error for Logical Address <log addr> returned 0x<hex value>: <description> where is text explaining the error response. <description> Example ProtErr? 3 GPIB-VXI/C User Manual 3-94 ni.com...
  • Page 137: Respreg

    Response register bit flags. Capitalized text in a text flag indicates that the corresponding bit flag is in the logic TRUE state. Lowercase text indicates that the corresponding bit flag is in the logic FALSE state. © National Instruments Corporation 3-95 GPIB-VXI/C User Manual...
  • Page 138: Wscmd

    WScmd <log addr>, <WS cmd> Action Sends the Word Serial command to the device at <WS cmd> <log addr> Example Write the Begin Normal Operation Word Serial query (FCFFh) to a device at Logical Address 3. WScmd 3, #hFCFF GPIB-VXI/C User Manual 3-96 ni.com...
  • Page 139: Wscmd?

    Logical Address <log addr> Word Serial Query 0xceff returned <CRLF> 0x<hex value>. Example Write the Read Servant Area Word Serial query (CEFFh) to a device at Logical Address 4. WScmd? 4, #hCEFF © National Instruments Corporation 3-97 GPIB-VXI/C User Manual...
  • Page 140: Wsresp

    Data Low register response. <hex value> Console response: <CRLF> Logical Address <log addr> returned response 0x<hex value> Example Read the 16-bit response to a previously sent Word Serial query from Logical Address 3. WSresp? 3 GPIB-VXI/C User Manual 3-98 ni.com...
  • Page 141: Wsstr

    Writes the string to the device at as a series of Byte Available <string> <log addr> commands. Example Write the string to a device at Logical Address 8. "start" WSstr 8, "start" © National Instruments Corporation 3-99 GPIB-VXI/C User Manual...
  • Page 142: Wsstr?

    < # bytes> <hex # bytes> <resp string> in decimal and hexadecimal, respectively. Example Read a device-dependent response up to 20 characters long from a device at Logical Address 10. WSstr? 10, 20 GPIB-VXI/C User Manual 3-100 ni.com...
  • Page 143: Nonvolatile Configuration

    GPIB-VXI/C. The GPIB-VXI/C nonvolatile (NV) memory is a 256-byte EEPROM that is accessible as 64 longword locations. The first half of the NV memory (32 longwords) is reserved for use by National Instruments. The second half of NV memory is allocated for storing Code Instrument (CI) configuration variables.
  • Page 144: The Gpib-Vxi/C Nonvolatile Configuration Main Menu

    C serial bus. Because it takes five to ten seconds to write the contents of the memory, the GPIB-VXI/C creates a copy of the contents of the EEPROM in RAM, which can be quickly edited. When the editing is complete, the entire contents of the RAM copy can be written back to the EEPROM.
  • Page 145: Print Configuration Information

    ------ CI Nonvolatile User Configuration Variables ------ 0x00:00000000 0x01:00000000 0x02:00000000 0x03:00000000 0x04:00000000 0x05:00000000 0x06:00000000 0x07:00000000 0x08:00000000 0x09:00000000 0x0A:00000000 0x0B:00000000 0x0C:00000000 0x0D:00000000 0x0E:00000000 0x0F:00000000 0x10:00000000 0x11:00000000 0x12:00000000 0x13:00000000 0x14:00000000 0x15:00000000 0x16:00000000 0x17:00000000 0x18:00000000 0x19:00000000 0x1A:00000000 0x1B:00000000 0x1C:00000000 0x1D:00000000 0x1E:00000000 0x1F:00000000 © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 146: Logical Address

    C000h + (40h * Logical Address) If the Logical Address is set to 0, the GPIB-VXI/C will attempt to be the VXI Resource Manager. If the Logical Address is set in the range of 01 to FEh (1 through 254), the GPIB-VXI/C is set up to be a Static Configuration (SC) Message-Based (or possibly Register-Based) device.
  • Page 147: Slave Address Space

    GPIB-VXI/C Model Codes to use. The factory setting is for Slot 0. Slave Address Space The GPIB-VXI/C can be configured to share 0%, 25%, 50%, or 100% of its onboard RAM with the VXIbus in either A24 or A32 address spaces.
  • Page 148: Number Of Psos Processes

    The GPIB-VXI/C requires a minimum of 100h message buffers. The factory setting is 180h. Console You can use this parameter to set the GPIB-VXI/C RS-232 local command console to default to enabled or disabled. You can use the local command to change the setting at runtime.
  • Page 149: A24 Assign Base

    Chapter 4 Nonvolatile Configuration As part of the hardware capabilities on the GPIB-VXI/C, there are three VXI programmable interrupt handlers. They can be assigned dynamically by the RM or statically according to the contents of the nonvolatile memory. A24 Assign Base This entry determines the A24 address where the Resource Manager will begin allocating A24 address space for VXI devices.
  • Page 150: For Failed Device

    Manager during a Word Serial Read Servant Area query. This parameter applies only when the GPIB-VXI/C is not Resource Manager. GPIB Primary This parameter specifies the GPIB primary address of the GPIB-VXI/C to be used when in multiple secondary addressing mode. GPIB Address Assignment Method This parameter specifies what method to use to configure the GPIB address of the GPIB-VXI/C.
  • Page 151: Code Instrument Block Base

    Chapter 4 Nonvolatile Configuration Code Instrument Block Base This parameter specifies the local GPIB-VXI/C address base for Static Code Instruments. Note National Instruments no longer supports development of Code Instruments. Code Instrument Number of RAM Blocks This parameter specifies the number of 4-KB RAM blocks allocated from the block base for use by Static Code Instruments.
  • Page 152: Set Configuration To Factory Settings

    The Change Configuration Information editor modifies only the RAM copy of the NV memory contents. You must update the NV memory with the Write Back (Save) command in the main menu to retain the changes after the GPIB-VXI/C has been Changes reset or powered-down.
  • Page 153: Diagnostic Tests

    Table 5-1. Each test is composed of one or more subroutines called commands. Each test is designed to functionally test a specific part of the GPIB-VXI/C circuitry. You can execute the diagnostics by test groups or by individual tests.
  • Page 154: Diagnostics Mode Selection

    The highest-level menu is the Diagnostics Mode menu, which you can use to select whether to execute a test group or tests, and the mode in which to run them. The Diagnostics Mode menu is shown in the following example and described in Table 5-2. GPIB-VXI/C User Manual ni.com...
  • Page 155 By default, single-stepping, looping, and test message printing are turned off while error reporting is turned on. The selected diagnostics run uninterrupted until they complete or until an error occurs. If an error has © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 156: Diagnostic Test Selection

    Select s to toggle this command on or off. With this feature, each access to memory or to a register is reported on the screen. In addition, the GPIB-VXI/C waits for you to press a key before actually performing the displayed step.
  • Page 157: Diagnostic Test Groups

    Hit 'q' to quit Enter: When you have completed all the diagnostic tests, select to quit and exit diagnostics mode. The GPIB-VXI/C prompts you to reboot the system in a different startup mode. Diagnostic Test Groups Group 1–RAM This group tests the RAM to ensure that the CPU can correctly read and write from RAM addresses.
  • Page 158: Group 3-Miga

    Test Timer 2 matched mode Group 3–MIGA This group tests the MIGA registers. The MIGA, a gate array designed by National Instruments, contains the VXI registers as defined for Message-Based devices. Table 5-5 gives the test numbers and names of the MIGA tests.
  • Page 159 Data Low (device) test Data High (local) test Data Low (local) test Status test Constrol test Response test ICR & ISR test I/O test Signal test Interrupts test Word Serial Protocol test SYSFAIL circuitry test © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 160: Group 4-Gpib

    Check can recognize SDC Check can set END bit on EOI Check can set EOI bit on EOI Check can set END on 8-bit EOS Check can set END on 7-bit EOS Check can recognize GET command GPIB-VXI/C User Manual ni.com...
  • Page 161 Check RPP Check CHES Check PP2 Check SDB Check NL Check EOS Check 9914 and 7210 mode switch Check able to untalk Check able to unlisten Check NBAF and NTNL Check REQTC Check REQFC © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 162 Check flags on 16-bit independent FIFO Fill and empty 16-bit independent FIFO Fill and empty 16-bit FIFO Reset non-full FIFO Reset full FIFO 16-bit FIFO read Fill and empty 16-bit FIFO STOP and HALT in 16-bit A-1st mode GPIB-VXI/C User Manual 5-10 ni.com...
  • Page 163: Group 5-Tic

    Group 5–TIC This group tests the TIC portion of the MANTIS ASIC. The MANTIS, an ASIC designed by National Instruments, handles the TTL/ECL trigger interface and CLK10 conversion. Table 5-7 gives the test numbers and names of the TIC tests.
  • Page 164 TSR8 and TOR8 Registers TSR9 and TOR9 Registers GPIN0 connection GPIN1 connection GPIN2 connection GPIN3 connection GPIN4 connection GPIN5 connection GPIN6 connection GPIN7 connection GPIN8 connection GPIN9 connection Trig0 connection Trig1 connection Trig2 connection Trig3 connection GPIB-VXI/C User Manual 5-12 ni.com...
  • Page 165 Interrupt on Trig3 by ASTS and USTS Interrupt on Trig4 by ASTS and USTS Interrupt on Trig5 by ASTS and USTS Interrupt on Trig6 by ASTS and USTS Interrupt on Trig7 by ASTS and USTS © National Instruments Corporation 5-13 GPIB-VXI/C User Manual...
  • Page 166 Software Semi-Sync accept on Trig4 Software Semi-Sync accept on Trig5 Software Semi-Sync accept on Trig6 Software Semi-Sync accept on Trig7 Software Semi-Sync accept on Trig8 Software Semi-Sync accept on Trig9 Hardware Semi-Sync and Automatic ACK on Trig0 GPIB-VXI/C User Manual 5-14 ni.com...
  • Page 167 Scalar values 1 through 32 with EXT CLK Scalar value 2 with all GPIO lines Scalar value 0x0f using CLK 10, NOROLL1, and INT TRIGIN and TRIGOUT on front panel TRIGIN and TRIGOUT by zig zag of all triggers © National Instruments Corporation 5-15 GPIB-VXI/C User Manual...
  • Page 168: Group 6-Dma

    Group 7–68881 Coprocessor This is a test of the numeric coprocessor operation. If the 68881 is not installed, the GPIB-VXI/C skips this test. Table 5-9 gives the test number and name of the 68881 Coprocessor test. Table 5-9. 68881 Coprocessor Test...
  • Page 169: Group 8-Ram (Exhaustive)

    LED test: SYSFAIL and FAILED LED LED test: ACCESS LED LED test: TEST LED LED test: ONLINE LED Switch test: Startup switches (S10, S11, and S12) Local BTO test: Test local bus timeout unit © National Instruments Corporation 5-17 GPIB-VXI/C User Manual...
  • Page 170 Chapter 5 Diagnostic Tests Table 5-12. Miscellaneous Tests (Continued) Test Number Test Description VXI BTO test: Test VXI bus timeout unit Sanity timer test: Test enabled/disabled EPROM checksum test EEPROM stamp and checksum test GPIB-VXI/C User Manual 5-18 ni.com...
  • Page 171: Using The Ni-Visa Code Instrument

    NI-VISA Code Instrument for the GPIB-VXI/C (the NI-VISA CI), and this appendix now documents the NI-VISA CI. CIs are a National Instruments GPIB-VXI/C proprietary feature. A CI is a set of software routines running on the GPIB-VXI/C that the system sees as its own message-based device.
  • Page 172 “DINF?” “Cmdr?” with viGetAttribute() VI_ATTR_CMDR_LA “LaSaddr?” with viGetAttribute() VI_ATTR_GPIB_SECONDARY_ADDR “Primary?” with viGetAttribute() VI_ATTR_GPIB_PRIMARY_ADDR “WREG” with viOut16() VI_A16_SPACE or “A16” “RREG?” with viIn16() VI_A16_SPACE or “A16?” “A24” with viOut16() VI_A24_SPACE “A24?” with viIn16() VI_A24_SPACE “SrcTrig” viAssertTrigger() GPIB-VXI/C User Manual ni.com...
  • Page 173 , you pass a device-relative offset in the specified address space. viIn16() This is different from the GPIB-VXI/C local command set, which accepts absolute addresses. If your application currently uses absolute addressing and you do not want to convert to device-relative offsets, you may consider the MEMACC resource, which accepts absolute addressing.
  • Page 174 If you have more than one GPIB-VXI controller in your system, or if you change the primary address of a GPIB-VXI controller from its default (1 for the National Instruments GPIB-VXI/C), or if you have a GPIB-VXI controller from another vendor, then you need to configure NI-VISA to find such a controller.
  • Page 175 Code Instruments (CIs). Two CIs come standard in the firmware of the GPIB-VXI/C. The first CI is called the DMAmove CI and is used for dedicating one of the GPIB-VXI/C GPIB addresses for use as a high-speed memory port. The second CI is used for controlling one or more Colorado Data Systems (CDS) 73A-852 adapter modules.
  • Page 176 Appendix B Using the DMAmove and CDS-852 Adapter Code Instruments GPIB-VXI/C local command set command . This section explains how to use the ECIboot? nonvolatile configuration editor to permanently install an EPROMed Code Instrument. Enter the nonvolatile configuration mode as described in Chapter 4, Nonvolatile Configuration.
  • Page 177 For the CDS-852 adapter, configure as many CI base locations as there are 852 adapters to be controlled by the GPIB-VXI/C. For example, to control four 73A-852s, configure CI base locations 0 through 3. The addresses for the two CIs are as follows.
  • Page 178 Must Re-initialize pROBE or reboot for pSOS changes to take effect. Other changes made automatically when configuration saved. ********************************************** DONE WITH CONFIGURATION Change startup mode Dip settings to enter different mode or push RESET to reconfigure. ********************************************** GPIB-VXI/C User Manual ni.com...
  • Page 179 If a CI is configured in nonvolatile configuration to be executed, the CI will be booted upon the next power cycle of the GPIB-VXI/C. The CI booting procedure actually occurs after the Resource Manager has run and the local command set has been initiated on all ports.
  • Page 180 EOI on the last byte, with the continuous data transfer with EOI on the last byte. If you are reading data from the GPIB-VXI/C out to the GPIB, simply follow the 16-byte transfer, which has EOI on the last byte, with a GPIB read. If both...
  • Page 181 DMAmove including moving to or from VXI A16 space, VXI A24 space, or local GPIB-VXI/C memory. It can transfer 8- or 16-bit quantities from either source or destination (they can be different). It can increment or not increment addresses as it counts to give fast access to FIFO registers or block memory.
  • Page 182 All accesses to or from the GPIB and VXI are logged to the serial port. The CDS-852 Adapter Code Instrument After the nonvolatile configuration is complete and the GPIB-VXI/C is rebooted, the CDS-852 Adapter Code Instrument will be up and running. You should see the following...
  • Page 183 852 adapter. Because National Instruments has not had the opportunity to study the command sets of all CDS plug-in instruments, you need to keep in mind the possibility of conflict as you develop your applications.
  • Page 184 Sets the adapter CI read mode to ASCII. The maximum ASCII response size allowed is 512 bytes. Purpose Set the adapter CI read mode to binary. Command Syntax Action Sets the adapter CI read mode to binary. Read size is limited to 512 bytes, or as configured by command. GPIB-VXI/C User Manual B-10 ni.com...
  • Page 185 Configure CI read termination on an EOS character. Command Syntax !!E <hex number> !!e <hex number> is the ASCII value corresponding to the desired EOS character—for <hex number> example, 0Ah for <LF). © National Instruments Corporation B-11 GPIB-VXI/C User Manual...
  • Page 186 The adapter CI expects to find the target 852 adapter at offset * 10000h. <val> The default (initial) value of is the adapter DCI’s logical address. <val> Example Set the adapter CI to operate with a 852 adapter at A24 base address 830000h. !!L 83 GPIB-VXI/C User Manual B-12 ni.com...
  • Page 187 The default value of the read size is <size> 512 bytes. Purpose Enable read termination when the END bit is set. Command Syntax Action Enables read termination when the END bit (bit 8) is set. © National Instruments Corporation B-13 GPIB-VXI/C User Manual...
  • Page 188 Appendix B Using the DMAmove and CDS-852 Adapter Code Instruments Purpose Disable read termination on the END bit. Command Syntax Action Disables read termination on the END bit (bit 8). GPIB-VXI/C User Manual B-14 ni.com...
  • Page 189 Specifications This appendix lists various module specifications of the GPIB-VXI/C, such as physical dimensions and power requirements. Microprocessor........16-MHz 68070 Coprocessor (optional) ......16-MHz 68882 RAM............4 MB (configured to use 512 KB) Physical C-size VXIbus board slot requirements ........1 slot Local bus keying ........
  • Page 190 Temperature..........0 to 55 °C Relative humidity ........0 to 95%, noncondensing Storage Environment Temperature..........–40 to 125 °C Relative humidity ........0 to 100%, noncondensing FCC............Class A verified Functionality IEEE-488 Capability Code Description Source Handshake Acceptor Handshake T5, TE5 Talker, Extended Talker GPIB-VXI/C User Manual ni.com...
  • Page 191 Message-Based Commander and Servant • Dynamically Configurable • Programmable Handler (any three of seven levels) • Trigger Source/Acceptor (SYNC, SEMI-SYNC, ASYNC, STST protocols) • External Trigger I/O Support • External CLK10 I/O Support © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 192 Connectors This appendix describes the connectors found on the GPIB-VXI/C. The illustrations in this appendix show the mating face of the connectors. Note An asterisk suffix (*) on a signal name indicates that the signal is active low. RS-232 Connector Type: 9-pin Subminiature D HD-20 Figure D-1.
  • Page 193 If you are building a cable for the RS-232 port, do not connect to pins 1 and 6. Caution Connecting to these pins can result in damage to the GPIB-VXI/C. You should connect to these pins only if you are using DFI. Refer to the...
  • Page 194 DIO5* Data Bit 5 DIO6* Data Bit 6 DIO7* Data Bit 7 DIO8* Data Bit 8 REN* Remote Enable Logic Ground Logic Ground Logic Ground Logic Ground Logic Ground Logic Ground Logic Ground © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 195 Table D-3. EXT CLK Connector Signals Signal Description Center CLK10 I/O (TTL, 10 MHz) Shield Ground Trigger Input Connector Type: BNC Figure D-4. TRG IN Connector Table D-4. TRG IN Connector Signals Signal Description Center Trigger Input (TTL) Shield Ground GPIB-VXI/C User Manual ni.com...
  • Page 196 Trigger Output (TTL, 50Ω driver) Shield Ground VXIbus P1 and P2 Connector Type: 96-pin DIN Figure D-6. VXIbus Connector Table D-6. VXIbus P1 Connector Signals Row A Row B Row C BBSY* BCLR* not connected BG0IN* BG0OUT* © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 197 Row B Row C BG1IN* BG1OUT* BG2IN* BG2OUT* SYSCLK BG3IN* SYSFAIL* BG3OUT* BERR* DS1* BR0* SYSRESET* DS0* BR1* LWORD* WRITE* BR2* BR3* DTACK* IACK* IACKIN* not connected IACKOUT* not connected IRQ7* IRQ6* IRQ5* IRQ4* IRQ3* IRQ2* IRQ1* GPIB-VXI/C User Manual ni.com...
  • Page 198 –2 V MODID06 not connected LBUSC06 MODID05 not connected LBUSC07 not connected MODID04 not connected LBUSC08 MODID03 not connected LBUSC09 –5.2 V not connected –5.2 V MODID02 not connected LBUSC10 MODID01 not connected LBUSC11 © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 199 TTLTRG1* TTLTRG2* not connected TTLTRG3* +5 V not connected TTLTRG4* not connected TTLTRG5* TTLTRG6* not connected TTLTRG7* not connected not connected not connected not connected MODID00 not connected +24 V SUMBUS +5 V –24 V GPIB-VXI/C User Manual ni.com...
  • Page 200 Syntax Illegal <Arbitrary Block Program Data> Syntax Illegal <Expression Program Data> Syntax Illegal <Character Program Data> Syntax Illegal character on input Syntax Illegal identifier after command Syntax Illegal identifier after > <Program Separator © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 201 Unable to create secondary address link Device Secondary address is already attached to a logical address Device Device is not a Message-Based device Device Device is not a servant of this GPIB-VXI/C Device Device does not have commander capability Device Not Dynamically Configured Device...
  • Page 202 Logical address is out of range Block(s) requested are used Block(s) requested do not exist Servant(s) requested do not exist Servant(s) requested are not servants of the GPIB-VXI/C or another DCI Commander requested does not exist Servant(s) requested do not have the same commander...
  • Page 203 Servant(s) requested has secondary address link Memory requested for DCI Word Serial structures is unavailable Logical address referenced is not the GPIB-VXI/C or local DCI Logical address referenced is not GPIB-VXI/C’s or CI’s servant Stack size requested for worker process exceeds FFFFh words...
  • Page 204 Previous acknowledge is still pending for this line 33064 Trigger Trigger overrun, too many triggers received 33068 Trigger Trigger unassertion overrun, too many triggers received 33076 Trigger Trigger pulse stretch overrun, too many triggers received © National Instruments Corporation GPIB-VXI/C User Manual...
  • Page 205 In addition, the MANTIS has 10 external connections referred to as General Purpose Input/Output (GPIO) connections. Figure F-1 shows the configuration of the GPIOs on the GPIB-VXI/C. You can route a GPIO to any or all of the VXI trigger lines or the 5-bit tick timer. By using the built-in 10 MHz clock or GPIO 13.975 kHz, 4.9152 MHz, or TRIG IN...
  • Page 206 2) T1 and T2 are timers from the GPIO3 68070 processor which are TRIG IN (direct) GPIO2 presently inaccessible to users. TRIG OUT* GPIO1 TRIG IN* (buffer) GPIO0 EXTCLK Backplane CLK10 CLK10 Figure F-1. GPIB-VXI/C GPIO Connections GPIB-VXI/C User Manual ni.com...
  • Page 207 Technical Support and Professional Services Visit the following sections of the National Instruments Web site at for technical support and professional services: ni.com • Support—Online technical support resources include the following: – Self-Help Resources—For immediate answers and solutions, visit our extensive library of technical support resources available in English, Japanese, and Spanish at .
  • Page 208 VXIbus systems have either two sets of bused connectors, designated J1 and J2 backplanes, or three sets of bused connectors, designated J1, J2, and J3 backplanes. Bus Timeout Unit bytes/sec bytes per second © National Instruments Corporation Glossary-1 GPIB-VXI/C User Manual...
  • Page 209 GPIB-VXI/C Downloaded CI DCI; a form of CI that is downloaded into the GPIB-VXI/C’s RAM memory Dynamic configuration DC device; a device that initially has a logical address of 255.
  • Page 210 Logical address an 8-bit number that uniquely identifies each VXIbus device in a system. It defines a device’s A16 register address and indicates Commander/Servant relationships. Least Significant Bit meter megabytes of memory © National Instruments Corporation Glossary-3 GPIB-VXI/C User Manual...
  • Page 211 GPIB-VXI/C. It is commercially available from Software Components Group, Inc. GPIB-VXI/C User Manual Glossary-4...
  • Page 212 Glossary Query similar to a command in that it also causes the GPIB-VXI/C to take some action, but it always returns a response containing data or other information See Resident CI Register-Based Device a Servant-only device that supports VXIbus configuration registers.
  • Page 213 VMEbus Extensions for Instrumentation VXI pROBE mode mode in which you can use the enhanced pROBE debugger. This mode is available only with the GPIB-VXI/C development firmware option. VXI system mode the startup mode for normal operation in a VXI system...
  • Page 214 Slot 0 Resource Manager, 2-14 based on installed memory size (table), 2-5 system startup message printing, 2-14 A24 command, 3-63 Non-Slot 0 Message-based device A24? query, 3-64 configuration A24MemMap? command, 3-15 front panel LED indications, 2-22 © National Instruments Corporation Index-1 GPIB-VXI/C User Manual...
  • Page 215 Word Serial port, B-11 registers, 3-13 enabling read termination on END, B-13 assigning VXIbus interrupt level to GPIB-VXI/C interrupt handler, 3-51 installing, B-2 attaching/detaching GPIB address to a logical logical address assignment, B-8 address, 3-44 setting maximum size of binary...
  • Page 216 Non-Slot 0 Resource Manager, 2-20 configuring trigger line assertion method, 3-79 Slot 0 Message-based device, 2-23 connector, D-4 Slot 0 Resource Manager, 2-14 connectors adding GPIB-VXI/C to system, A-4 external CLK, D-4 discrete fault indicator, 2-10 GPIB, D-2 EPROM, 2-9 RS-232, D-1...
  • Page 217 3-10 deleting a CI, B-5 DisTrigSense command, 3-68 detaching all GPIB address links except to DLAD? query, 3-38 GPIB-VXI/C command set, 3-48 determining if dynamic configured using DMAmove, B-5 system, 3-26 using VISA, A-3 device error table, E-2 DMAmove CI DFI.
  • Page 218 Status Byte, 3-59 external clock input getting current self-test status, 3-23 termination settings (figure), 2-8 getting device manufacturer, mode, serial external trigger input number, and firmware level, 3-56 termination settings (figure), 2-8 © National Instruments Corporation Index-5 GPIB-VXI/C User Manual...
  • Page 219 GPIB primary address, 3-46 error codes, E-1 getting known system hierarchy table, 3-18 factory configuration settings, 2-2 getting level assigned to GPIB-VXI/C kit contents, 1-1 interrupt handler, 3-52 local memory map (figure), B-7 getting list of GPIB addresses in use, 3-48...
  • Page 220 3-72 Laddrs? query, 3-19 mapping trigger interrupt to GPIB SRQ, 3-87 LaSaddr command, 3-44 MapTrigTrig command, 3-72 LaSaddr? query, 3-45 message-based programming with VISA, A-1 local command set, 3-61 access, 3-2 © National Instruments Corporation Index-7 GPIB-VXI/C User Manual...
  • Page 221 GPIB address assignment method, 4-8 GPIB addresses to avoid, 4-8 GPIB flags, 4-8 National Instruments GPIB primary, 4-8 customer education, G-1 GPIB-VXI/C Nonvolatile Configuration professional services, G-1 Main Menu system integration services, G-1 Change Configuration technical support, G-1 Information, 4-9...
  • Page 222 Servant from Commander, 3-32 absolute addressing, A-3 RelSrvnt? query, 3-32 adding GPIB-VXI/C to system, A-4 replacing current trigger line with specified asserting utility signals, A-3 trigger source and action, 3-74 controlling triggers, A-3 resetting system remotely, 3-64...
  • Page 223 2-16 RS-232 connector, D-1 self-test operation, 2-16 RS-232 port static configuration operation, 2-18 risk of damage to GPIB-VXI/C, D-2 switch and jumper settings (table), 2-14 system configuration table, 2-20 soft-resetting a device, 3-40 SaddrLa? query, 3-47 software drivers, G-1...
  • Page 224 G-1 telephone technical support, G-1 termination for external clock input, 2-8 UMapTrigTrig command, 3-89 for external trigger input, 2-8 unmapping trigger component from MapTrigTrig, 3-89 training unpacking your kit, 1-2 customer, G-1 © National Instruments Corporation Index-11 GPIB-VXI/C User Manual...
  • Page 225 A-2 Servant, 1-2 viOut16(), A-2 shared memory capability, 1-2 VISA summary, 1-2 controlling GPIB-VXI/C systems VXIbus interrupt handlers, 1-2 establishing a session to VXI device, A-2 VXIbus master and slave, 1-2 message-based programming, A-1 VXIbus Resource Manager (RM), 1-2...
  • Page 226 Word Serial communication commands and WScmd? query, 3-97 queries WSresp? query, 3-98 ProtErr?, 3-94 WSstr command, 3-99 RespReg?, 3-95 WSstr? query, 3-100 WScmd, 3-96 WScmd?, 3-97 WSresp?, 3-98 WSstr, 3-99 WSstr?, 3-100 © National Instruments Corporation Index-13 GPIB-VXI/C User Manual...

Table of Contents