Intelligent real-time embedded controller for compactrio (21 pages)
Summary of Contents for National Instruments VXI Series
Page 1
™ Getting Started with Your VXIpc Embedded Controller for VxWorks VXIpc Controller for VxWorks Getting Started with Your VXIpc Embedded Controller for VxWorks June 2002 Edition Part Number 370552B-01...
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.
About This Manual Begin by reading this manual for basic instructions on setting up the hardware and software. This manual describes how to get started with your kit using the default hardware and software settings, and describes optional settings you can configure using the NI-VXI/NI-VISA software. You received either the VXIpc 800 Series User Manual, the VXIpc 700 Series User Manual, or the VXIpc 770/870B Series User Manual with your kit, depending on the hardware product you purchased.
Chapter 1 Introduction ❑ Monitor with VGA connector ❑ National Instruments software media for the VXIpc embedded controller ❑ VxWorks Development System The NI-VXI software is already installed on your VXIpc computer. It is also included on disk in case you need to reinstall your software.
Page 14
VISA is the industry standard for developing instrument drivers. Most current drivers written by National Instruments use NI-VISA and support Windows, Solaris 2, VxWorks, Linux, and Macintosh, as long as the appropriate system-level drivers are available for that platform. NI-VISA for VxWorks currently supports only the VXI and Serial interfaces.
Chapter 1 Introduction Software Notes for VxWorks The software configuration for NI-VXI for VxWorks offers all the functionality of our NI-VXI drivers for other platforms, within the text-based VxWorks environment. Use vxitedit to reconfigure your VXI hardware and victext to interactively perform NI-VXI operations accessing your VXI devices.
Software Included with Your VXIpc Controller The software that comes with your VxWorks-based controller falls under two main categories: host based and target based. All National Instruments software that you need to run NI-VXI on your embedded controller—the development target—is already installed on the VXIpc hard drive. The host software is provided separately for you to install on your Windows-based workstation.
Chapter 1 Introduction Reinstalling the NI-VXI Software The NI-VXI software for VxWorks is already installed on your VXIpc hard drive. However, if for some reason you need to reinstall the software, perform the following steps: Be sure you have up to 5 MB of free space available to accommodate the NI-VXI software.
Run the installer on the Host-Side Software for VXIpc with VxWorks disk to install the VXIpc board support package (BSP), online help, example files, header files, and other required software from National Instruments into the subdirectory of your Tornado target installation.
Page 21
Chapter 2 Setup If you make changes to the hardware in your system—for example, if you add a new plug-in card or alter the interrupt used by a device—you may need to change the BSP default settings to reflect your change. Refer to your VxWorks Programmer’s Guide for full details about installation.
Chapter 3 VXI Configuration Utility When making changes to the VXIpc controller through these editors, remember that the changes do not take effect until you commit them by selecting the Update Current Configuration option. Before proceeding to a description of each field in these editors, review the remaining four options of the VXIpc Configuration Editor.
Chapter 3 VXI Configuration Utility Notice that options relating to VXI shared memory are disabled when the Address Space option is set to A16. Only if you select A16/A24 or A16/A32 are the following options relevant: • VXI Shared RAM Size •...
Chapter 3 VXI Configuration Utility When the system IRQ line is disabled, the remote controller functionality is not Note available. Enable the system IRQ line if you are using a multi-mainframe system. The VXI IRQ designated as system IRQ line cannot be disabled using the functions.
Chapter 3 VXI Configuration Utility Automatic VXI Slave Cycle Retry ♦ This option is not available in the VXIpc 700 Series. The VXIpc 800 Series has an automatic retry feature for cycles that map from the VXIbus to the PCI bus on the VXIpc 800. You can use the Automatically retry VXI slave cycles field to enable or disable this option.
Chapter 3 VXI Configuration Utility Arbiter Timeout An arbitration timeout feature is available on the VXIpc controller when it is acting as the VMEbus arbiter. This feature applies only to a VXI Slot 0 VXIpc. By default, this option is disabled. If you enable this feature, the timer begins when the arbiter circuit on the VXIpc drives one of the BGOUT lines on the backplane.
Chapter 3 VXI Configuration Utility The default selection is the Switch option. Notice that the Logical Address is read only. In this option you need to change the hardware switch setting on the VXI/VME-MXI-2 itself if you want to change the logical address. If you select Soft LA for this option, you can then use the Logical Address feature to select a logical address within the range of 1 to 254.
Chapter 3 VXI Configuration Utility longer possible, and system performance may be lower than in normal operating mode. In a VXI/VMEbus/MXIbus system, you can configure some 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.
Chapter 3 VXI Configuration Utility VXI/VME Transfer Limit You can use this feature to control how many data transfers the VXI/VME-MXI-2 will perform on the VXI/VMEbus before releasing it to another master device that is requesting use of the bus. You can choose 16, 64, or 256 transfers.
Chapter 3 VXI Configuration Utility Notice that 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 VXI Auto Retry is enabled.
Chapter 4 Developing Your Application Device Interaction You can interact with your VXI devices by using the victext utility. This utility lets you interactively control your VXI devices. Try the following in victext. In the Command entry field type: help vxiinreg This help file shows you the syntax for this command, which reads VXI device configuration registers.
National Instruments provides three different programming interfaces for accessing your instruments: NI-VISA, NI-VXI, and NI-488.2. NI-VISA is the National Instruments implementation of the VISA API as defined by the VXIplug&play standard. It is very useful in situations where you have different types of instruments in your system—such as VXI, VME, GPIB,...
Page 45
Chapter 4 Developing Your Application Controller, usually a computer, and up to 14 additional instruments. The ANSI/IEEE Standard 488.2-1992 extends IEEE-488.1 by defining a bus communication protocol, a common set of data codes and formats, and a generic set of common device commands. The best way to learn how to program with NI-VXI and NI-VISA is by reviewing the example programs included in your software.
Page 47
Chapter 4 Developing Your Application If you define this symbol in your source code, your source code should look something like the following sample code: #define VXIWVXWORKS #include <nivxi.h> If you define these symbols using the compiler option, you should specify the following when invoking the compiler.
Page 51
Appendix A Default Settings Table A-6. Device Configuration Editor Default Settings Editor Field Default Setting System IRQ Level Disabled Servant Area Size Number of Handlers Number of Interrupters Protocol Register 0xFF0 Read Protocol Response 0x8448 Table A-7. Bus Configuration Editor Default Settings Editor Field Default Setting Bus Timeout...
Device Configuration Editors to change aspects of the hardware and software. Reboot to initialize your National Instruments hardware. Reload the tools you need and run Resman to initialize the VXIbus. Optionally run vxitedit to configure any extender devices on the VXIbus.
Page 53
• Resman—This utility initializes and configures all the other devices in your VXI system. • vxitedit—This utility configures your National Instruments hardware. • victext—This utility allows you to communicate interactively with VXI devices over the VXIbus using the NI-VXI API.
Page 55
Appendix B Common Questions message-based devices, you can send and receive messages with the functions. Notice that wswrt() wsrd() vxiinReg() are for VXI devices only. vxioutReg() What should I do if I get a Configuration EEPROM is Invalid message? There are several reasons why you could receive this message. If you turn off the computer while the configuration update process is still in progress, the VXIpc functions normally except when using vxitedit.
Page 57
Appendix B Common Questions Which interrupt levels are free to be used by ISA bus boards? Which area of upper memory (adapter space) is free for use by ISA bus boards or expanded memory manager software programs? Refer to the appendix on VXIpc system resources in your VXIpc user manual for information on the available port I/O register space, upper memory area, interrupts, and DMA channels.
Page 58
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 60
Glossary ANSI American National Standards Institute ASIC Application-Specific Integrated Circuit bytes backplane an assembly, typically a printed circuit board, with 96-pin connectors and signal paths that bus the connector pins. A C-size VXIbus system has two sets of bused connectors called J1 and J2. A D-size VXIbus system has three sets of bused connectors called J1, J2, and J3.
Page 62
Glossary fair requester a VXIbus device that will not arbitrate for the VXIbus after releasing it until it detects the bus request signal inactive. This ensures that all requesting devices will be granted use of the bus. frame number the frame number is the logical address of the lowest-numbered device in the frame.
Page 63
These devices are able to use Word Serial Protocol to communicate with one another through communication registers. MITE a National Instruments custom ASIC, a sophisticated dual-channel DMA controller that incorporates the Synchronous MXI and VME64 protocols to achieve high-performance block transfer rates NI-VXI...
Page 64
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 the NI-VXI bus interface software. See Resource Manager. Resource Manager a message-based Commander located at Logical Address 0 that provides...
Page 66
Glossary VMEbus System a device configured for installation in Slot 0 of a VXIbus mainframe or Slot Controller 1 of a VMEbus chassis. This device is unique in the VMEbus system in that it performs the VMEbus System Controller functions, including clock sourcing and arbitration for data transfers across the backplane.
Need help?
Do you have a question about the VXI Series and is the answer not in the manual?
Questions and answers