National Instruments VXI-8340 Series User Manual Download Page 31

Chapter 3

Developing Your Application

©

National Instruments Corporation

3-7

VXI-8340 Series User Manual

Address Space

The VXI-8340 series can decode any 32-bit address on the PCI bus as a
VXI cycle, giving 4 GB of addressability, which can be used for windows
on the VXI-8340 series. The operating system or computer architecture
may limit which addresses can be assigned to the VXI-8340 series.

To change the address space, edit the

User window size

field in the

PCI

tab of the VXI-8340 series

Hardware Configuration

settings in MAX.

This setting limits the total amount of memory you can map with

MapVXIAddress()

or

viMapAddress()

. If the User Window is disabled,

the

MapVXIAddress()

function returns

NO_HARDWARE_SUPPORT (-1)

.

The NI-VXI online help implies that the error code

MAP_TIMEOUT (-8) 

is returned when the window is in use. Because the MITE-based products
have multiple hardware windows of variable size, the meaning of this
error has been modified.

MapVXIAddress()

now returns the error code

MAP_TIMEOUT (-8)

whenever there are not enough resources to map the

window.

For example, if you use

MapVXIAddressSize()

and

MapVXIAddress()

to request a 1 MB window to A32 space, and you request a User Window
in MAX of only 64 KB,

MapVXIAddress()

returns the error code

MAP_TIMEOUT

because there are not enough resources to complete the

request.

Number of MITE Windows

The MITE has eight CPU windows. NI-VXI uses four of these windows,
leaving four for user applications.

Memory for Allocating Data Structures

You need to have sufficient memory available for the operating system
to set up its necessary page tables. If you request a very large user
window—hundreds of megabytes, for example—you may run out of
memory.

MITE DMA

The MITE has two DMA channels to improve the throughput of block
transfers to and from the VXI system. The DMA channels can use various
high-speed bus protocols, such as the following:

Burst mode (on the PCI bus)

VME64 (on the VXI bus)

Summary of Contents for VXI-8340 Series

Page 1: ...VXI VXI 8340 Series User Manual VXI 8340 Series User Manual May 2001 Edition Part Number 370358B 01...

Page 2: ...76 26 00 Finland 09 725 725 11 France 01 48 14 24 24 Germany 089 741 31 30 Greece 30 1 42 96 427 Hong Kong 2645 3186 India 91805275406 Israel 03 6120092 Italy 02 413091 Japan 03 5472 2970 Korea 02 59...

Page 3: ...service failures caused by owner s failure to follow the National Instruments installation operation or maintenance instructions owner s modification of the product owner s abuse misuse or negligent a...

Page 4: ...ents could void the user s authority to operate the equipment under the FCC Rules Class A Federal Communications Commission This equipment has been tested and found to comply with the limits for a Cla...

Page 5: ...ought for OEMs if also available from an original manufacturer that also markets in the EU or where compliance is not required as for electrically benign apparatus or cables To obtain the DoC for this...

Page 6: ...s 1 4 National Instruments Application Software 1 5 Chapter 2 Installation and Configuration Installing the Software 2 1 Install the NI VISA and NI VXI Software 2 1 Complete the Software Installation...

Page 7: ...ncements to the NI VXI Software 3 9 Compatibility 3 9 System Configuration Functions 3 9 Low Level VXIbus Access Functions 3 9 High Level VXIbus Access Functions 3 9 Local Resource Access Functions 3...

Page 8: ...it VXI 8340 dual port module only kit VXI 8345 single port module only kit VXI 8345 dual port module only kit The VXI 8340 series is a VXIplug play compliant interface that gives external PCI based co...

Page 9: ...heir installed locations are as follows The NI VISA User Manual describes how to program using NI VISA Start Programs VXIpnp NI VISA User Manual The NI VISA Programmer Reference Manual describes in de...

Page 10: ...extensions and code excerpts monospace bold Bold text in this font denotes the messages and responses that the computer automatically prints to the screen This font also emphasizes lines of code that...

Page 11: ...lugs into your VXI mainframe It may also include a MXI 3 cable and a PCI 8330 series interface module which plugs into your PCI based computer This manual uses the term PCI 8330 series when informatio...

Page 12: ...he VXI backplane as an embedded CPU module The software included with the kits is for x86 based computers only Hardware Description The VXI 8340 series module is a C size VXIbus device with VXIbus Slo...

Page 13: ...s been established with the device attached to MXI IN Link 2 LED indicates that a communication path has been established with the device attached to MXI OUT SYSF LED indicates that the VMEbus SYSFAIL...

Page 14: ...You can also add VME devices to your system easily with MAX and view them on a screen display along with the rest of your system MAX also features various options for running Resman You can still exe...

Page 15: ...ime because you do not have to spend time programming the low level control of each instrument Measurement Studio bundles LabWindows CVI for C programmers ComponentWorks for Microsoft Visual Basic pro...

Page 16: ...of these application programs install them before the NI VISA NI VXI software installation Both LabVIEW and Measurement Studio integrate the VXI and VISA libraries that are required to support your P...

Page 17: ...e VISA I O driver library standardized by VXIplug play VISA ensures that your controller can run all VXIplug play compatible software now and in the future The NI VISA software in this kit is compatib...

Page 18: ...is C Program Files National Instruments 6 Select the type of installation from the Installation Options screen Typical setup prompts you to make high level choices of which driver s to install and the...

Page 19: ...be plugged in but powered off Figure 2 1 shows a system with a PCI bus equipped computer and a VXI chassis with a VXI 8340 series module Figure 2 1 Typical VXI System with a VXI 8340 Series Interface...

Page 20: ...face Module Install the VXI 8340 series in Slot 0 of your VXI chassis by doing the following 1 Turn off the power 2 Insert the VXI 8340 series into the chassis in Slot 0 See Figure 2 1 3 Verify that a...

Page 21: ...the PCI 8330 series and the MXI IN port of the VXI 8340 series as shown in Figure 2 1 Power on the System 1 Be sure the MXI 3 cable is connected securely 2 Turn on the VXI chassis Note Always power on...

Page 22: ...Tools NI VXI VXI Options 3 After you finish configuring the system through MAX verify the system configuration through one of the interactive control utilities Use VISAIC under NI VISA or VIC under NI...

Page 23: ...ble to applications The ONLINE front panel LED turns off when the VXI 8340 series is offline Note It is safe to remove power from a VXI chassis only after the VXI 8340 series is offline Failure to tak...

Page 24: ...nline When the system is ready for use the VXI 8340 series turns on its ONLINE LED 5 Run the Resource Manager in MAX When you use the Request Offline functionality be sure there are no outstanding pro...

Page 25: ...hrough the Windows Start menu Open the National Instruments or VXIpnp program group then open either the VXI or VXIpnp subgroup to access the utilities you want to use Configuration The configuration...

Page 26: ...n your system by using the MAX utility This utility includes a configuration view which contains a description for each device including each VXI device s logical address You can also interact with yo...

Page 27: ...ble devices similar to what MAX displays By double clicking on a given device you can open a VISA session and access the device through it For more information regarding VISAIC use the right click hel...

Page 28: ...custom installation instead of typical In the Select Features dialog box enable the NI VXI API Development option and continue as prompted After you reboot VIC will be ready for use Note The NI VISA U...

Page 29: ...ady defines the necessary symbols The following symbol is usually required You must define it when using the Microsoft C or Borland C compiler VXINT designates the application as a Windows 2000 NT Me...

Page 30: ...and relocated from CPU space to VXI space The low level functions have extensions that reflect this feature Refer to the NI VXI online help for information about these functions in NI VXI The NI VISA...

Page 31: ...e hardware windows of variable size the meaning of this error has been modified MapVXIAddress now returns the error code MAP_TIMEOUT 8 whenever there are not enough resources to map the window For exa...

Page 32: ...XI and NI VISA code uses the DMA capabilities of the MITE without modification To take full advantage of the throughput of the DMA channels you should perform 32 bit transfers where both the source an...

Page 33: ...XIAddress You should use GetWindowRange to determine the size of a window The 32 bit value returned from GetContext and passed to SetContext has a new format Applications that set the context bits dir...

Page 34: ...I address space and VXI address of this onboard RAM Debugging NI Spy and VISAIC are useful utilities that can aid in identifying the causes of problems in your application NI Spy tracks the calls your...

Page 35: ...XIbus configuration space 64 B A24 or A32 space Programmable Default None Environmental Temperature Operating 0 to 55 C Storage 20 to 70 C Relative humidity Operating 10 to 90 noncondensing Storage 5...

Page 36: ...us slot Compatibility Fully compatible with VXI specification VXI keying class Class 1 TTL MTBF Contact factory VMEbus Capability Codes A32 A24 A16 master VMEbus master A32 A24 and A16 addressing A32...

Page 37: ...s System Controller Automatic Detection PRI RRS Prioritized or Round Robin Select arbiter ROR FAIR Release on Request and FAIR bus requester IH 7 1 Interrupt handler for levels 7 1 I 7 1 Interrupt req...

Page 38: ...ftware reference Note There are no hardware settings on the PCI 8330 series boards Hardware Settings Software Settings Table B 1 VXI 8340 Series Hardware Default Settings Hardware Component Default Se...

Page 39: ...ed Upper half window byte swapping Disabled Map upper and lower halves at same PCI address Disabled Table B 4 MAX VXI Bus Tab Default Settings Editor Field Default Setting Bus timeout value 125 s VXI...

Page 40: ...Settings Editor Field Default Setting Enable low level register access API support Enabled User window size 64 KB Table B 6 MAX SMB Tab Default Settings Editor Field Default Setting Enable 50 termina...

Page 41: ...intended for more advanced users Note There are no hardware settings on the PCI 8330 series boards Hardware Default Settings The following hardware configuration settings are user configurable VXIbus...

Page 42: ...e VXI 8340 series for either Slot 0 or Non Slot 0 operation by defeating the automatic detection circuitry Use the three position jumper J1 to select automatic Slot 0 detection Slot 0 or Non Slot 0 op...

Page 43: ...ests and grants the bus to the highest priority requester As VXIbus System Controller the VXI 8340 series also uses an onboard 16 MHz oscillator to drive the 16 MHz VXIbus system clock As required by...

Page 44: ...tead of the user modified settings This is useful in the event that the user configured half of the EEPROM becomes corrupted in such a way that the VXI 8340 series powers up in an unusable state Figur...

Page 45: ...CLK connector is not being used as an input to drive the VXI CLK10 signal that is S2 is set to OUT it serves as an output onto which the VXI 8340 series drives the CLK10 signal Caution If S2 is set t...

Page 46: ...rebooted to discover the missing VXI system Note You must power on the VXI 8340 series at least 8 seconds before your PC When daisy chaining VXI 8340 series controllers power on VXI chassis in revers...

Page 47: ...accordance with the VXI 6 specification Place a VXI MXI 2 in the same frame as the Slot 0 VXI 8340 controller and another VXI MXI 2 in Slot 0 of the mainframe you want to add to the system You can th...

Page 48: ...et without the computer rebooting You will need to run the Resman utility or configure your system in MAX to initialize your VXI system Which NI VXI utility program must I use to configure the VXI 834...

Page 49: ...for the devices in your chassis you can use the interactive features of these programs to quickly test the functionality of the devices What should I do if I get a Configuration EEPROM is Invalid mess...

Page 50: ...10 CLK10 is a differential ECL signal on the VXIbus backplane However the oscillator for the VXI 8340 series and the EXT CLK input from the front panel use TTL Therefore supply a TTL level signal for...

Page 51: ...s the latest example programs system configurators tutorials technical news as well as a community of developers ready to share their own techniques Customer Education National Instruments provides a...

Page 52: ...b sites from the Worldwide Offices section of ni com Branch office Web sites provide up to date contact information support phone numbers e mail addresses and current events If you have searched the t...

Page 53: ...ME 64 KB short address space In VXI the upper 16 KB of A16 space is allocated for use by VXI devices configuration registers This 16 KB region is referred to as VXI configuration space A24 space VXIbu...

Page 54: ...ary digit either 0 or 1 B Byte eight related bits of data an 8 bit binary number Also used to denote the amount of memory required to store one byte of data backplane An assembly typically a printed c...

Page 55: ...a longword Motorola ordering stores the most significant byte MSB or word first followed by the least significant byte LSB or word Intel ordering stores the LSB or word first followed by the MSB or wo...

Page 56: ...or other configuration times dynamically configured device A device that has its logical address assigned by the Resource Manager AVXI device initially responds at Logical Address 255 when its MODID l...

Page 57: ...andom vibration test profile H hex Hexadecimal the numbering system with base 16 using the digits 0 to 9 and letters A to F Hz hertz cycles per second I I O Input output the techniques media and devic...

Page 58: ...210 used with B byte in quantifying data or computer memory L logical address An 8 bit number that uniquely identifies each VXIbus device in a system It defines the A16 register address of a device a...

Page 59: ...f the VISA standard an interface independent software that provides a unified programming interface for VXI GPIB and serial instruments NI VXI The National Instruments bus interface software for VME V...

Page 60: ...ce A device configured for installation in Slot 0 of a VXIbus mainframe This device is unique in the VXIbus system in that it performs the VXI VMEbus System Controller functions including clock sourci...

Page 61: ...Ibus mainframe or the first slot in 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...

Page 62: ...y 3 8 system configuration functions 3 9 window mapping 3 6 B BINARY_COMPATIBLE compiler symbol 3 5 C capability codes VMEbus A 2 CLK10 routing figure C 5 routing VXI bus C 4 signal type E 4 common qu...

Page 63: ...us access functions 3 9 how to use manual set ix I installation 2 1 installation and configuration configuration utilities 3 1 L LabVIEW 1 5 LabWindows CVI 1 5 LEDs ACC 1 3 E 4 definitions of E 3 FAIL...

Page 64: ...ftware 1 5 software configurations 1 4 power sequencing requirements D 1 programming See application development R related documentation xi request offline 2 7 Resman 2 6 reconfiguring after power cyc...

Page 65: ...XI 8340 series default configuration settings figure C 2 front panel features 1 3 hardware default settings table B 1 interface kit overview 1 2 interface module installing 2 4 module description 1 2...

Reviews: