National Instruments MXI Series Getting Started

National Instruments MXI Series Getting Started

Hide thumbs Also See for MXI Series:
Table of Contents

Advertisement

Quick Links

MXI
TM
Getting Started with Your PCI-MXI-2 and the
NI-VXI
/NI-VISA
Software for Linux
TM
TM
PCI-MXI-2 for Linux
October 2005
370551D-01

Advertisement

Table of Contents
loading

Summary of Contents for National Instruments MXI Series

  • Page 1 Getting Started with Your PCI-MXI-2 and the NI-VXI /NI-VISA Software for Linux PCI-MXI-2 for Linux October 2005 370551D-01...
  • Page 2 For further support information, refer to the Technical Support and Professional Services appendix. To comment on National Instruments documentation, refer to the National Instruments Web site at ni.com/info and enter the info code feedback. © 2002–2005 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 These classes are known as Class A (for use in industrial-commercial locations only) or Class B (for use in residential or commercial locations). All National Instruments (NI) products are FCC Class A products. Depending on where it is operated, this Class A product could be subject to restrictions in the FCC rules. (In Canada, the Department of Communications (DOC), of Industry Canada, regulates wireless interference in much the same way.) Digital...
  • Page 5: Table Of Contents

    Install the PCI-MXI-2 ....................2-4 Chapter 3 VXI-MXI-2 Configuration and Installation Configure the VXI-MXI-2.....................3-1 Front Panel Features ..................3-3 Removing the Metal Enclosure ...............3-3 VXIbus Logical Address .................3-4 VXIbus Slot 0/Non-Slot 0 ................3-5 VXIbus Local Bus ...................3-7 © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 6 Contents VXIbus CLK10 Routing ................. 3-8 Trigger Input Termination ................3-12 MXIbus Termination..................3-13 Configuration EEPROM ................. 3-14 Onboard DRAM....................3-16 Install the VXI-MXI-2....................3-17 Connect the MXIbus Cable ................... 3-18 Chapter 4 VME-MXI-2 Configuration and Installation Configure the VME-MXI-2................... 4-1 Front Panel Features..................
  • Page 7 Advanced VXI Settings ..............6-23 VXI/VME Auto Retry ............6-24 Transfer Limit..............6-24 Arbiter Type ...............6-24 Request Level ..............6-25 VXI/VME Fair Requester...........6-25 Arbiter Timeout ..............6-25 MXI Bus Options ....................6-26 MXI Bus System Controller .............6-26 MXI Bus Timeout Value..............6-26 © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 8 Contents Advanced MXI Settings ..............6-27 MXI Auto Retry ..............6-27 Transfer Limit ..............6-28 Parity Checking ..............6-28 MXI Fair Requester............6-28 MXI CLK10 Signal............6-28 Chapter 7 Using the NI-VXI/NI-VISA Software Interactive Control of NI-VXI/NI-VISA............... 7-2 Example Programs......................7-2 Programming Considerations ..................
  • Page 9: About This Manual

    About This Manual This manual contains instructions for installing and configuring the National Instruments PCI-MXI-2 kits for Linux. The VXI MXI-2 kit includes a VXI-MXI-2 module that plugs into a VXI mainframe and links your PCI-based computer to the VXIbus. The VME MXI-2 kit includes a VME-MXI-2 that plugs into a VME chassis and links your PCI-based computer to the VMEbus.
  • Page 10: Conventions

    About This Manual Begin by reading this getting started manual to guide you through the installation and configuration of the hardware and software. You should install and configure the components of the PCI-MXI-2 kit in the order in which this manual describes them. Be sure to review the Quick Start and Default Settings sections in Chapter 1, Introduction and Quick Start.
  • Page 11: Related Documentation

    Multisystem Extension Interface Bus Specification, Version 2.0, National Instruments Corporation • PCI Local Bus Specification, Revision 2.0, PCI Special Interest Group • VXI-MXI-2 User Manual, National Instruments Corporation • VME-MXI-2 User Manual, National Instruments Corporation • VXI-6, VXIbus Mainframe Extender Specification, Revision 2.0, VXIbus Consortium ©...
  • Page 12: Introduction And Quick Start

    VXI MXI-2 kit, which contains a VXI-MXI-2 module, or the VME MXI-2 kit, which contains a VME-MXI-2 module. Similarly, the term VXI/VME-MXI-2 means that information applies to either the VXI-MXI-2 or the VME-MXI-2. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 13: How To Use This Manual

    Chapter 1 Introduction and Quick Start How to Use This Manual The following flowchart shows where to turn in this manual for more information about configuring and using the hardware and software. Gather What You Need Chapter 1 to Get Started Configure and Install the Chapter 2 PCI-MXI-2...
  • Page 14: Pci-Mxi-2 Kit Overview

    Linux Installation Guide. MXI-2 Description MXI-2 is the second generation of the National Instruments MXIbus product line. The MXIbus is a general-purpose, 32-bit, multimaster system bus on a cable. MXI-2 expands the number of signals on a standard MXI cable by including VXI triggers, all VXI interrupts, CLK10, and all of the utility bus signals (SYSFAIL*, SYSRESET*, and ACFAIL*).
  • Page 15: Hardware Description

    The new synchronous MXI block protocol increases MXI-2 throughput to a maximum of 33 MB/s between two MXI-2 devices. All National Instruments MXI-2 boards can initiate and respond to synchronous MXI block cycles. In the remainder of this manual, the term MXIbus refers to MXI-2.
  • Page 16: Software Description

    NI-VISA has a comprehensive library of software routines not only for VXI/VME programming, but also for GPIB, GPIB-VXI, and serial. You can use this software to program instruments connected via different types of interfaces. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 17: Optional Software

    Optional Software Your PCI-MXI-2 kit includes the NI-VXI/NI-VISA bus interface software. In addition, you can use National Instruments LabVIEW to ease your programming task. This standardized program matches the modular virtual instrument capability of VXI and can reduce your VXI/VMEbus software development time.
  • Page 18: Hardware Installation

    0 or 1. These are the default configurations for the PCI-MXI-2 and the VXI-MXI-2, respectively. For more information about the VXI-MXI-2 or VME-MXI-2 hardware, refer to either Chapter 3, VXI-MXI-2 Configuration and Installation, or Chapter 4, VME-MXI-2 Configuration and Installation. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 19: Installing And Loading The Ni-Vxi/Ni-Visa Software For Linux

    Input Parameters and the Id/Logical Address register under Input Parameters. Click Go!. If the CMPL light along the right side of the window is green, and the output value ends in an FF6, you have successfully read the manufacturer ID for National Instruments. PCI-MXI-2 for Linux ni.com...
  • Page 20: Default Settings

    OFF: Factory configuration of the EEPROM is protected. U17 Switch 3 (POS) OFF: Do not alter this setting. U17 Switch 4 (CT) ON: Do not alter this setting. DRAM SIMM Installed Per customer order © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 21 Chapter 1 Introduction and Quick Start Table 1-2. PCI-MXI-2 Universal Hardware Default Settings Hardware Component Default Setting SW1 Switch 1 (FOV) OFF: PCI-MXI-2 boots off the user-configured half of the EEPROM. SW1 Switch 2 (TST) OFF: Factory configuration of the EEPROM is protected.
  • Page 22 MXI CLK10 Receive MXI Transfer Limit Unlimited VXImove uses Synchronous MXI Enabled MXI-2 Auto Retry Enabled A24/A32 Write Posting Disabled User Window Size 64 KB Driver Window Size 32 KB Expansion ROM Enabled © National Instruments Corporation 1-11 PCI-MXI-2 for Linux...
  • Page 23: Vxi/Vme-Mxi-2

    Chapter 1 Introduction and Quick Start VXI/VME-MXI-2 This section summarizes the hardware and software default settings for the VXI-MXI-2 and VME-MXI-2. Table 1-6. VXI-MXI-2 Hardware Default Settings Hardware Component Default Setting Logical Address (U43) VXIbus Slot 0/Non-Slot 0 (W2) Automatic detection VXIbus Local Bus (S8, S9) Both OFF: Single VXI-MXI-2 VXIbus CLK10 Routing (W3)
  • Page 24 Disabled Interlocked Mode Disabled VXI/VME System Controller Auto 125 µs VXI/VME Bus Timeout Value VXI/VME Auto Retry Disabled VXI/VME Transfer Limit VXI/VME Arbiter Type Priority VXI/VME Request Level VXI/VME Fair Request Enabled © National Instruments Corporation 1-13 PCI-MXI-2 for Linux...
  • Page 25 Chapter 1 Introduction and Quick Start Table 1-8. VXI/VME-MXI-2 Configuration Editor Default Settings (Continued) Editor Field Default Setting VXI/VME Arbiter Timeout Enabled MXI System Controller Auto MXI Bus Timeout Value 1 ms MXI Auto Retry Disabled MXI Transfer Limit Unlimited MXI Parity Checking Enabled MXI Fair Requester...
  • Page 26: Pci-Mxi-2 Configuration And Installation

    This section describes how to configure the configuration EEPROM on the PCI-MXI-2 and PCI-MXI-2 Universal. Figure 2-1 shows the PCI-MXI-2. The drawing shows the location and factory-default settings on the module. Your PCI-MXI-2 may look slightly different. Figure 2-2 shows the PCI-MXI-2 Universal. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 27 Chapter 2 PCI-MXI-2 Configuration and Installation 1 SW1 2 DRAM Figure 2-1. PCI-MXI-2 Parts Locator Diagram PCI-MXI-2 for Linux ni.com...
  • Page 28 Chapter 2 PCI-MXI-2 Configuration and Installation 1 SW1 2 DRAM Figure 2-2. PCI-MXI-2 Universal Parts Locator Diagram © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 29: Configuration Eeprom

    Chapter 2 PCI-MXI-2 Configuration and Installation Configuration EEPROM The PCI-MXI-2 has an onboard EEPROM, which stores default register values that are loaded at power-on. The EEPROM is divided into two halves—a factory-configuration half, and a user-configuration half—so you can modify the user-configurable half, while the factory-configured half stores a back-up of the default user settings.
  • Page 30 Chapter 2 PCI-MXI-2 Configuration and Installation Figure 2-3 shows how to install the PCI-MXI-2. 1 PCI Bus Slot 2 PCI-MXI-2 Board 3 PC Figure 2-3. PCI-MXI-2 Installed in a Computer © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 31: Vxi-Mxi-2 Configuration And Installation

    The drawing shows the location and factory-default settings of most of the configuration switches and jumpers on the module. Notice that switch S6 is accessible only by removing the front cover. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 32 Chapter 3 VXI-MXI-2 Configuration and Installation 1 U35 3 W3 5 S9 7 U43 9 S5 11 S3 2 W2 4 S8 6 S7 8 S6 10 S4 12 S2 Figure 3-1. VXI-MXI-2 Right-Side Cover PCI-MXI-2 for Linux ni.com...
  • Page 33: Front Panel Features

    Refer to the Onboard DRAM section for details about changing DRAM. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 34: Vxibus Logical Address

    Chapter 3 VXI-MXI-2 Configuration and Installation VXIbus Logical Address Each device in a VXIbus/MXIbus system is assigned a unique number between 0 and 254. This 8-bit number, called the logical address, defines the base address for the VXI configuration registers located on the device. With unique logical addresses, each VXIbus device in the system is assigned 64 bytes of configuration space in the upper 16 KB of A16 space.
  • Page 35: Vxibus Slot 0/Non-Slot 0

    You can manually configure the VXI-MXI-2 for either Slot 0 or Non-Slot 0 operation by defeating the automatic-detection circuitry. Use the three-position jumper W2 to select automatic Slot 0 detection, Slot 0, or Non-Slot 0 operation. Figure 3-3 shows these three settings. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 36 Chapter 3 VXI-MXI-2 Configuration and Installation Do not install a device configured for Slot 0 into another slot without first Caution reconfiguring it to either Non-Slot 0 or automatic configuration. Neglecting to do this could damage the device, the VXIbus backplane, or both. Slot 0 Auto Nonslot 0...
  • Page 37: Vxibus Local Bus

    Figure 3-4c shows the setting to use if the VXI-MXI-2 is between two others. Use the setting of Figure 3-4d for the VXI-MXI-2 located to the right of all others. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 38: Vxibus Clk10 Routing

    Chapter 3 VXI-MXI-2 Configuration and Installation VXI-MXI to left VXI-MXI to left VXI-MXI to right VXI-MXI to right b. Leftmost VXI-MXI-2 in Mainframe a. Single VXI-MXI-2 in Mainframe (Default) VXI-MXI to left VXI-MXI to left VXI-MXI to right VXI-MXI to right c.VXI-MXI-2 between Two Others d.
  • Page 39 S3 setting to drive CLK10 out the external CLK10 SMB connector, do not set the W3 jumper to receive the SMB CLK10 signal; instead use the settings shown in either Figure 3-5a or Figure 3-5c as appropriate. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 40 Chapter 3 VXI-MXI-2 Configuration and Installation When switch S3 is set so that the VXI-MXI-2 receives the SMB CLK10 signal, you have the option to add a 50Ω termination to the signal by setting switch S4. S4 is unused—its setting does not matter—when S3 is configured to drive the external CLK SMB signal.
  • Page 41 50Ω Termination for SMB CLK10 (Effective only when S3 is set to “IN”) S4 Off SMB CLK10 Output Polarity (Effective only when S3 is set to “OUT” ) INVERTED NON-INVERTED d. Receive External CLK SMB with 50Ω Termination Figure 3-6. SMB CLK10 Settings © National Instruments Corporation 3-11 PCI-MXI-2 for Linux...
  • Page 42: Trigger Input Termination

    Chapter 3 VXI-MXI-2 Configuration and Installation The VXI-MXI-2 can also drive or receive the MXIbus CLK10 signal. Switch S7 controls whether the VXI-MXI-2 drives MXIbus CLK10 from the VXIbus CLK10 or receives MXIbus CLK10. As shown in Figure 3-5c, if W3 is configured to use the MXIbus CLK10 to generate the VXIbus CLK10 signal, switch S7 must be configured to receive MXIbus CLK10.
  • Page 43: Mxibus Termination

    (Figure 3-9c). The settings of switches 3 and 4 have no effect on MXIbus termination. Use switch 2 of U35 to select whether you want the VXI-MXI-2 to automatically control termination of the MXIbus. Switch 1 of U35 lets © National Instruments Corporation 3-13 PCI-MXI-2 for Linux...
  • Page 44: Configuration Eeprom

    Chapter 3 VXI-MXI-2 Configuration and Installation you manually control whether to terminate the MXIbus when automatic termination is turned off. Switch 1 has no effect when switch 2 is set for automatic MXIbus termination; you must turn off automatic termination if you want to manually control termination.
  • Page 45 Terminate MXIbus c. Boot from User Configuration (Factory Configuration Unprotected) Restore Factory Configuration Change Factory Configuration Automatic MXIbus Termination Terminate MXIbus d. Boot from Factory Configuration (Factory Configuration Unprotected) Figure 3-10. EEPROM Operation © National Instruments Corporation 3-15 PCI-MXI-2 for Linux...
  • Page 46: Onboard Dram

    Chapter 3 VXI-MXI-2 Configuration and Installation Onboard DRAM The VXI-MXI-2 can accommodate up to two 1.35 in. DRAM SIMMs. Table 3-1 lists the SIMMs you can use. Table 3-1. VXI-MXI-2 DRAM Configurations National Instruments Switch Setting Bank 0 Bank 1 Total DRAM Option of S6...
  • Page 47: Install The Vxi-Mxi-2

    Refer to Table 3-1 for how to adjust the switch (ON or OFF) for all supported DRAM configurations. Many of the DRAM options are available from National Instruments. Install the VXI-MXI-2 This section contains general installation instructions for the VXI-MXI-2.
  • Page 48: Connect The Mxibus Cable

    Chapter 3 VXI-MXI-2 Configuration and Installation If you are installing the VXI-MXI-2 into a D-size mainframe, install a support designed for installing C-size boards in D-size mainframes. The VXI-MXI-2 has no P3 connector and cannot provide P3 Slot 0 control to VXI devices requiring this capability. If the VXI-MXI-2 is not configured for automatic Slot 0 detection, be certain that Caution the slot you select in your VXIbus mainframe matches the VXI-MXI-2 configuration as...
  • Page 49 When you have properly connected the MXI-2 cable, power on the VXIbus mainframe and then the computer. Always turn on the mainframe first. Doing so makes it possible for your external Note computer to access the VXI boards in the mainframe upon startup. © National Instruments Corporation 3-19 PCI-MXI-2 for Linux...
  • Page 50: Vme-Mxi-2 Configuration And Installation

    VMEbus chassis. Figure 4-1 shows the VME-MXI-2. The drawing shows the location and factory-default settings of the configuration switches and jumpers on the module. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 51 Chapter 4 VME-MXI-2 Configuration and Installation 1 S2 3 W2 5 DRAM Bank 1 2 U21 4 U20 6 DRAM Bank 0 Figure 4-1. VME-MXI-2 Parts Locator Diagram PCI-MXI-2 for Linux ni.com...
  • Page 52: Front Panel Features

    Refer to VXI-6, VXIbus Mainframe Extender Specification, for more information on setting base addresses on a multimainframe hierarchy. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 53: Vme-Mxi-2 Intermodule Signaling

    Chapter 4 VME-MXI-2 Configuration and Installation Figure 4-2 shows switch settings for A16 base address hex C040 and F000. a. Switch Set to A16 Base Address Hex C040 (Default) b. Switch Set to A16 Base Address Hex F000 Figure 4-2. Base Address Selection VME-MXI-2 Intermodule Signaling If you will be installing more than one VME-MXI-2 in a single VMEbus chassis, you must select a user-defined pin for use by the VME-MXI-2.
  • Page 54: Mxibus Termination

    MXIbus when automatic termination is turned off. Switch 4 has no effect when switch 3 is set for automatic MXIbus termination; you must turn off automatic termination if you want to manually control termination. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 55: Configuration Eeprom

    Chapter 4 VME-MXI-2 Configuration and Installation a. Automatic MXIbus Termination (Default) b. Terminate MXIbus (On) c. Do Not Terminate MXIbus (Off) Figure 4-4. MXIbus Termination Configuration EEPROM The VME-MXI-2 has an onboard EEPROM, which stores default register values that are loaded at power-on. The EEPROM is divided into two halves—a factory-configuration half, and a user-configuration half.
  • Page 56 Boot from User Configuration (Factory Configuration Protected) (Default) b. Boot from Factory Configuration (Factory Configuration Protected) c. Boot from User Configuration (Factory Configuration Unprotected) d. Boot from Factory Configuration (Factory Configuration Unprotected) Figure 4-5. EEPROM Operation © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 57: Onboard Dram

    Figure 4-6. SIMM Size Configuration Refer to Table 4-1 for how to adjust the switch (ON or OFF) for all supported DRAM configurations. Many of the DRAM options are available from National Instruments. Table 4-1. VME-MXI-2 DRAM Configurations National Instruments...
  • Page 58: Install The Vme-Mxi-2

    To protect both yourself and the mainframe from electrical hazards, the mainframe should remain off until you are finished installing the VME-MXI-2 module. Remove or open any doors or covers blocking access to the mainframe slots. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 59: Connect The Mxibus Cable

    Chapter 4 VME-MXI-2 Configuration and Installation Insert the VME-MXI-2 in the slot you have selected by aligning the top and bottom of the board with the card-edge guides inside the mainframe. Slowly push the VME-MXI-2 straight into the slot until its plug connectors are resting on the backplane receptacle connectors.
  • Page 60 VMEbus mainframe and then the computer. Always turn on the mainframe first. Doing so makes it possible for your external Note computer to access the VME boards in the mainframe upon startup. © National Instruments Corporation 4-11 PCI-MXI-2 for Linux...
  • Page 61: Ni-Vxi/Ni-Visa Software Installation

    INSTALL The script uses to install the packages. The script also optionally installs support for NI-VXI in LabVIEW. Note Refer to the file on the CD-ROM for additional important information and README instructions. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 62: Removing The Ni-Vxi Driver For Linux

    The NI-VISA software is configured to be loaded in the directory. /usr/local/vxipnp Completing the Software Installation After the software is installed, run , the National Instruments resman Resource Manager. You must run every time the computer or resman chassis power is cycled so that your application can access devices in the VXI/VME chassis.
  • Page 63: Ni-Vxi Configuration Utility

    Most of the features on the PCI-MXI-2, VXI-MXI-2, and VME-MXI-2 are configurable through software, using , rather than through vxiedit hardware switches or jumpers on the boards themselves. In addition, the utility can override some of the hardware settings. vxiedit © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 64: Pci-Mxi-2 Configuration Editor

    Chapter 6 NI-VXI Configuration Utility Figure 6-1 shows the main menu of the resource editor. vxiedit Figure 6-1. VXIedit Main Screen The rest of this chapter describes only the features of the PCI-MXI-2 Configuration Editor and the VXI/VME-MXI-2 Configuration Editor. For instructions on using the other editors, refer to your software utility reference manual—either the NI-VXI Graphical Utilities Reference Manual or the NI-VXI Text Utilities Reference Manual.
  • Page 65: Update Current Configuration

    EEPROM and files used by NI-VXI. Notice that some of the configuration settings cannot take effect until you reset the machine, either by using the reset button or by turning the power off and on again. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 66: Record Configuration To File

    Chapter 6 NI-VXI Configuration Utility Record Configuration to File With this option you can save your configuration settings to a file. Notice that this option does not write the configuration settings to the PCI-MXI-2 configuration EEPROM. If you want to update the PCI-MXI-2 configuration settings, use the Update Current Configuration option instead.
  • Page 67: Device Settings

    Logical Address This parameter sets the MXI logical address of the PCI-MXI-2. The following table shows the allowable range of values and the default value. Logical Address Range Default Value 0 to 254 © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 68: Device Type

    Chapter 6 NI-VXI Configuration Utility Device Type This field indicates the classification of the PCI-MXI-2. The default value is MBD, designating a message-based device. The following table shows the available options. Classification Setting Extended Device Message-Based Device Register-Based Device The device type affects only the contents of the Device Class field in the Device Type register.
  • Page 69: Vxi/Vme Shared Ram Size

    Shared RAM Size Onboard memory Onboard memory The shared RAM pool is used by function calls. For VXImemAlloc() information on the function, refer to the NI-VXI User VXImemAlloc() Manual and the NI-VXI Programmer Reference Manual. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 70: Advanced Shared Ram Settings

    Chapter 6 NI-VXI Configuration Utility When the Address Space field is in the default setting of A16 only, this field is Note ignored. This field is also ignored if the Memory Select fields for both the lower and upper half windows are set to Onboard memory. Advanced Shared RAM Settings Clicking the Advanced button displays a dialog box to configure the destination of MXIbus cycles that map into the PCI-MXI-2 through the...
  • Page 71 VXI/VME devices that support retries will not have this problem, because they can handle VXI/VME retry conditions correctly by automatically retrying the access. For example, the National Instruments VXI-DAQ boards handle VXI/VME retry conditions properly, and do not exhibit this problem.
  • Page 72: Resource Manager Delay

    Chapter 6 NI-VXI Configuration Utility Resource Manager Delay The only option under the Resource Manager portion of the Logical Address Configuration Editor is the Resource Manager Delay control. Note This field is effective only when the PCI-MXI-2 is at its default logical address of 0. The PCI-MXI-2 is the Resource Manager only if its logical address is 0.
  • Page 73: Default Controller (La -1)

    This field is meaningful only when the PCI-MXI-2 is configured as a message-based device. Servant Area Range Default Value 0 to 255 Note If the PCI-MXI-2 is the Resource Manager (Logical Address 0), this setting is irrelevant. © National Instruments Corporation 6-11 PCI-MXI-2 for Linux...
  • Page 74: Number Of Handlers

    Chapter 6 NI-VXI Configuration Utility Number of Handlers This field gives the number of interrupt handlers that the PCI-MXI-2 supports. Interrupt Handlers Default Value 0 to 7 Number of Interrupters This field gives the number of interrupters that the PCI-MXI-2 supports. Interrupters Default Value 0 to 7...
  • Page 75: Bus Configuration Editor

    VXI/VME-MXI-2 Configuration Editor. Refer to the Connect the MXIbus Cable section of Chapter 3, VXI-MXI-2 Configuration and Installation, or the Connect the MXIbus Cable section of Chapter 4, VME-MXI-2 Configuration and Installation. © National Instruments Corporation 6-13 PCI-MXI-2 for Linux...
  • Page 76: Mxi Bus Timeout

    Chapter 6 NI-VXI Configuration Utility You can select the Yes or No options to manually determine whether the PCI-MXI-2 should be the MXIbus System Controller. You must still be certain to cable the MXIbus system appropriately when you make either of these selections.
  • Page 77: Mxi Transfer Limit

    This is the default situation because many external masters do not support VXI/MXI retries. If the external master does support retries, it may be beneficial to disable the MXI-2 auto retry feature. With this feature © National Instruments Corporation 6-15 PCI-MXI-2 for Linux...
  • Page 78: A24/A32 Write Posting

    Chapter 6 NI-VXI Configuration Utility disabled, you can lower the MXI Bus Timeout because there will be no delay due to the inward cycles being retried. Note The PCI-MXI-2 has a limit on the number of automatic retries they will perform on any one cycle.
  • Page 79: Expansion Rom

    VXI/VME-MXI-2 Configuration Editor Before running the VXI/VME-MXI-2 Configuration Editor, you must run resman Note Throughout this section, the term VXI/VME-MXI-2 denotes that the information applies to both the VXI-MXI-2 and the VME-MXI-2. © National Instruments Corporation 6-17 PCI-MXI-2 for Linux...
  • Page 80 Chapter 6 NI-VXI Configuration Utility Upon entering the VXI/VME-MXI-2 Configuration Editor, the program displays a list of VXI/VME-MXI-2 boards that detected in your resman system, as shown in Figure 6-7. Figure 6-7. VXI/VME-MXI-2 Selection Dialog Box Select the device you want to configure from the Detected Boards pull-down list, or you can select User LA and type in the board’s logical address in the Logical Address field.
  • Page 81: La Selection And Logical Address

    Address control to select a logical address within the range of 1 to 254. If you use this option, the hardware switch setting has no effect and you must use the VXI/VME-MXI-2 Configuration Editor to change the logical address. © National Instruments Corporation 6-19 PCI-MXI-2 for Linux...
  • Page 82: Address Space And Requested Memory

    Chapter 6 NI-VXI Configuration Utility Address Space and Requested Memory The VXI/VME-MXI-2 requires at least 16 KB of address space in A24 space or at least 64 KB in A32 space. Use the Address Space control to select whether you want to use A24 space or A32 space. Use the Requested Memory control to set the amount of memory space that the VXI/VME-MXI-2 will request.
  • Page 83: Interlocked Mode

    VXI/VME-MXI-2 modules for normal operating mode and others for interlocked arbitration mode. The VXI/VMEbus mainframes configured in interlocked arbitration mode will be interlocked with each other and the mainframes configured for normal operating mode can perform transfers in parallel. © National Instruments Corporation 6-21 PCI-MXI-2 for Linux...
  • Page 84: Vxi/Vme Bus Options

    Chapter 6 NI-VXI Configuration Utility This type of system configuration is recommended if you have one of the following situations: • A VXI/VMEbus mainframe with only slave devices and no masters. Without bus masters, there is no chance for deadlock. You can configure the VXI/VME-MXI-2 devices in this mainframe for normal operating mode.
  • Page 85: Vxi/Vme Bus Timeout Value

    Click the Advanced button to reach additional configuration options for the VXI/VME Bus portion of this editor, as shown in Figure 6-9. These options are intended for more advanced users. Figure 6-9. Advanced VXI Settings © National Instruments Corporation 6-23 PCI-MXI-2 for Linux...
  • Page 86: Vxi/Vme Auto Retry

    Chapter 6 NI-VXI Configuration Utility VXI/VME Auto Retry The VXI/VME-MXI-2 has an automatic retry feature for cycles that map from the VXI/VMEbus to the MXIbus. By default this option is disabled. Normally, when a cycle maps from the VXI/VMEbus to the MXIbus, any retry response received on the MXIbus is passed to the VXI/VMEbus.
  • Page 87: Request Level

    BGOUT lines on the backplane. If no device takes over the bus within the timeout limit, the BGOUT is removed and the bus is either idle or granted to another requester. © National Instruments Corporation 6-25 PCI-MXI-2 for Linux...
  • Page 88: Mxi Bus Options

    Chapter 6 NI-VXI Configuration Utility MXI Bus Options Use the options in this group to control features of the MXIbus interface on the VXI/VME-MXI-2 module. MXI Bus System Controller You can use the System Controller control to determine whether the VXI/VME-MXI-2 acts as the MXI Bus System Controller.
  • Page 89: Advanced Mxi Settings

    The VXI/VME-MXI-2 has a limit on the number of automatic retries it will perform on any one cycle. If the limit is exceeded and the VXI/VME-MXI-2 receives another retry, it will pass a retry back to the MXIbus even though Auto Retry is enabled. © National Instruments Corporation 6-27 PCI-MXI-2 for Linux...
  • Page 90: Transfer Limit

    Chapter 6 NI-VXI Configuration Utility Transfer Limit You can use this feature to control how many data transfers the VXI/VME-MXI-2 will perform on the MXIbus before releasing it to another master device that is requesting use of the bus. The default setting holds the MXIbus for an unlimited period of time.
  • Page 91: Using The Ni-Vxi/Ni-Visa Software

    The NI-VISA online help describes the attributes, events, and operations you can use in NI-VISA. The user manual is available in the directory. Use the VXIpnp /linux/NIvisa/Manuals Adobe Acrobat Reader program to open and navigate through this manual. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 92: Interactive Control Of Ni-Vxi/Ni-Visa

    Chapter 7 Using the NI-VXI/NI-VISA Software Interactive Control of NI-VXI/NI-VISA The easiest way to learn how to communicate with your instruments is by controlling them interactively. Use the VXI/VME interactive control utility or its text mode counterpart, ) to write to and read from your victext instruments.
  • Page 93: Low-Level Access Functions

    You can obtain the VXI address of your onboard memory using the function. When you have the VXI/VME address, GetDevInfo() you can access that memory using high-level or low-level VXI/VMEbus access functions. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 94: System Configuration Functions

    Chapter 7 Using the NI-VXI/NI-VISA Software System Configuration Functions The System Configuration functions provide the lowest-level initialization of your VXI controller. For NI-VXI, use the function InitVXIlibrary() at the start of each application and the function at CloseVXIlibrary() the end of each application. For NI-VISA, use viOpenDefaultRM() at the start of each application and the function at the end of...
  • Page 95 (linker, debugger, and so on). Your compiler documentation is an important and useful source of information for writing, compiling, and debugging C programs. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 96: Ni-Vxi/Ni-Visa Software Overview

    Any executable not listed in this section is used by the driver and should not be Note executed by the user directly. • is the National Instruments multiple-mainframe Resource resman Manager. • is a graphical interactive control program. This program is described in detail in the NI-VXI Graphical Utilities Reference Manual.
  • Page 97 Appendix A NI-VXI/NI-VISA Software Overview Header Files for NI-VXI directory (where is the actual location where NIVXI /include NIVXI you installed the NI-VXI software package) contains the following files for the C language interface: include • is the main header file containing the C prototypes for the nivxi.h NI-VXI functions.
  • Page 98 Figure B-1 shows the default settings for EEPROM operation. Caution Do not alter the settings of switches 3 and 4 of U17. Leave these switches as shown in Figure B-1 unless specifically directed by National Instruments. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 99 Appendix B EEPROM Configuration U17 or SW1 Figure B-1. EEPROM Operation Default Settings Fixing an Invalid EEPROM Configuration Certain EEPROM configurations can cause your PCI computer to lock up while in its boot process. Generally, only the size and location of the memory windows can cause problems with the PCI-MXI-2 locking up your system.
  • Page 100 10. Replace the computer cover. 11. Turn on the computer. If the computer does not boot with this configuration, you will have to repeat these steps, modifying your configuration until a final configuration is reached. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 101 Use the VXI Resource Editor program or its text-mode vxiedit counterpart, , to configure the PCI-MXI-2. The Resource Editor vxitedit program is located in the directory ( NIVXI /bin /usr/local/ by default). nivxi/bin © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 102 Appendix C Common Questions Which NI-VXI utility program must I use to perform startup Resource Manager operations? Use the program to perform startup Resource Manager operations. resman It is located in the directory ( NIVXI /bin /usr/local/nivxi/bin default). uses the settings in the Configuration Editor of resman .
  • Page 103 I have a system that requires rugged chassis and bulkhead cables. Can I still use MXIbus? Yes, National Instruments sells MXIbus bulkhead cables. Contact National Instruments for further information. What kind of signal is CLK10 and what kind of signal do I need for an external CLK10? CLK10 is a differential ECL signal on the VXIbus backplane.
  • Page 104 Appendix C Common Questions NI-VXI library ( by default). Run /usr/local/nivxi/lib ldconfig reread this file. Whenever I try to execute any of the NI-VXI utilities, I receive a message that it could not find a particular file even though the file does exist.
  • Page 105 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 at ni.com/support include the following: – Self-Help Resources—For answers and solutions, visit the...
  • Page 106 This 16 KB region is referred to as VXI configuration space. A24 space VXIbus address space equivalent to the VME 16 MB standard address space. A32 space VXIbus address space equivalent to the VME 4 GB extended address space. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 107 Glossary ACFAIL A VMEbus backplane signal that is asserted when a power failure has occurred (either AC line source or power supply malfunction), or if it is necessary to disable the power supply (such as for a high temperature condition). address Character code that identifies a specific location (or series of locations) in memory.
  • Page 108 A set of registers through which the system can identify a module device type, model, manufacturer, address space, and memory requirements. In order to support automatic system and memory configuration, the VXIbus specification requires that all VXIbus devices have a set of such registers. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 109 Glossary daisy-chain A method of propagating signals along a bus, in which the devices are prioritized on the basis of their position on the bus. Data Transfer Bus DTB; one of four buses on the VMEbus backplane. The DTB is used by a bus master to transfer binary data between itself and a slave device.
  • Page 110 A VMEbus functional module that detects interrupt requests generated by Interrupters and responds to those requests by requesting status and identify information. interrupt level The relative priority at which a device can interrupt. IRQ* Interrupt signal. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 111 Module Identification lines. MTBF Mean Time Between Failure. MXI-2 The second generation of the National Instruments MXIbus product line. MXI-2 expands the number of signals on a standard MXIbus cable by including VXI triggers, all VXI interrupts, CLK10, SYSFAIL*, SYSRESET*, and ACFAIL*.
  • Page 112 Register-based devices are typically controlled by message-based devices via device-dependent register reads and writes. resman The name of the National Instruments Resource Manager in NI-VXI bus interface software. See also Resource Manager. Resource Manager A message-based Commander located at Logical Address 0, which...
  • Page 113 Glossary retry An acknowledge by a destination that signifies that the cycle did not complete and should be repeated. RPM Package Manager, a widely-used software distribution tool that you can use to install, upgrade, or remove software from your system. Seconds.
  • Page 114 Installing such a device into any other slot can damage the device, the VMEbus/VXIbus backplane, or both. VXIbus VMEbus Extensions for Instrumentation. VXIinit A program in the NI-VXI bus interface software package that initializes the board interrupts, shared RAM, VXI register configurations, and bus configurations. © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 115 Glossary VXItedit VXI Resource Editor program, a part of the NI-VXI bus interface software package. Used to configure the system, edit the manufacturer name and ID numbers, edit the model names of VXI and non-VXI devices in the system, as well as the system interrupt configuration information, and display the system configuration information generated by the Resource Manager.
  • Page 116 7-4 quick start, 1-6 symbols, 7-4 VME-MXI-2 module, 4-1 cables configuration EEPROM, 4-6 connecting MXIbus cable default settings VME-MXI-2 module, 4-10 Configuration Editor settings VXI-MXI-2 module, 3-18 (table), 1-13 hardware settings (table), 1-13 © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 117 Index front panel features, 4-3 MXIbus termination, 4-5 Default Controller (LA –1), 6-11 onboard DRAM, 4-8 default settings, 1-9 DRAM configurations hardware settings (table), 1-13 (table), 4-8 PCI-MXI-2 board SIMM size configuration Bus Configuration Editor (figure), 4-8 (table), 1-11 parts locator diagram (figure), 4-2 Device Configuration Editor VMEbus A16 base address, 4-3 (table), 1-11...
  • Page 118 IRQ level, selecting, 6-11 handlers, selecting number of, 6-12 hardware KnowledgeBase, D-1 See also PCI-MXI-2 board; VME-MXI-2 module; VXI-MXI-2 module default settings (table) PCI-MXI-2 board, 1-9 PCI-MXI-2 Universal board, 1-10 VME-MXI-2 module, 1-13 © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 119 Index LA selection and logical address option, 6-19 NI support and services, D-1 LabVIEW software, 1-6 NI-VXI/NI-VISA software LEDs on VXI/VME-MXI-2, C-2 common questions, C-1 local bus, VXIbus, 3-7 compiling C programs, 7-4 local resource access functions, 7-3 symbols, 7-4 logical address description, 1-5 configuration...
  • Page 120 (LA –1), 6-11 questions about NI-VXI/NI-VISA default settings (table), 1-11 software, C-1 figure, 6-10 quick start number of handlers, 6-12 configuration, 1-6 number of interrupters, 6-12 default settings, 1-9 protocol register, 6-12 © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 121 Index device interactions, 1-8 hardware installation, 1-7 technical support, D-1 VME users, 1-8 termination MXIbus termination VME-MXI-2 module, 4-5 VXI-MXI-2 module, 3-13 read protocol response, 6-12 trigger input termination, VXI-MXI-2 related documentation, xi module, 3-12 removing NI-VXI driver for Linux, 5-2 training and certification (NI resources), D-1 request level for VME Data Transfer Bus, transfer limit, setting...
  • Page 122 VXI/VME extender kit VXI/VME-MXI-2 (note), 6-17 hardware description, 1-4 VXIbus CLK10 routing, 3-8 introduction, 1-1 CLK10 generation (figure), 3-9 MXI-2 description, 1-3 SMB CLK10 settings (figure), 3-9, 3-11 overview, 1-3 VXIbus local bus, 3-7 © National Instruments Corporation PCI-MXI-2 for Linux...
  • Page 123 Index VXIbus logical address, 3-4 connecting MXIbus cable, 3-18 See also logical address default settings VXIbus logical address. See logical address Configuration Editor settings (table), 1-13 VXIbus Slot 0/non-Slot 0, 3-5 hardware settings (table), 1-12 VXIedit configuration utility hardware description, 1-4 VME device configuration information, 1-8 installation, 3-17...

This manual is also suitable for:

Pci-mxi-2Vxi-mxi-2Vme-mxi-2

Table of Contents