background image

Chapter 3

Developing Your Application

VXI-8340 Series User Manual

3-8

ni.com

The DMA channels can transfer data between a VXI device and local
memory, or between VXI devices. The DMA channel can handle
contiguous or noncontiguous local memory. If it is handling noncontiguous
memory, it can perform scatter-gather operations on the noncontiguous
memory.

The

VXImove()

and

viMove/XX()

functions automatically use

appropriate bus protocols and transfer types to efficiently perform the data
transfer specified in the function. You can also use configuration options
in MAX to instruct the NI-VXI/VISA software to use DMA channels for
particular types of operations and to designate what protocols the channel
should use. In addition, you can programmatically control which protocols
to use in NI-VXI. See the NI-VXI online help for complete descriptions of

VXImove()

and other high-level functions. Notice that previously written

NI-VXI 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 and the destination are
longword aligned. If you need to transfer character data between devices of
different byte orders—for example, between a big-endian device and an
Intel 80

x

86-based Windows NT PC—transfer the data as longwords but

adjust the byte-ordering parameters in

VXImove()

to get the correct data

in the most efficient manner.

NI-VXI examples:

/* Transferring 32-bit data to a big-endian A32 device */

VXImove(0x0, userBuffer, 0x3, deviceOffset, 

numDataPoints, 4);

/* Transferring 8-bit data to a big-endian A32 device */

VXImove(0x80, userBuffer, 0x3, deviceOffset, 

numDataPoints / 4, 4);

Shared Memory

In the

Hardware Configuration

settings of the VXI-8340 series in MAX,

you can share memory on your computer or from DRAM added to the
VXI-8340 series. Right-click on any of the settings or consult the online
help in MAX for more information. You can access shared memory on your
computer using

VXImemAlloc()

in NI-VXI and

viMemAlloc()

in VISA.

Содержание VXI-8340 Series

Страница 1: ...VXI VXI 8340 Series User Manual VXI 8340 Series User Manual May 2001 Edition Part Number 370358B 01...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: