background image

Chapter 3

Developing Your Application

VXI-1394 User Manual for Windows

3-4

ni.com

Device Interaction

You can interact with your VXI/VME devices using the VISA Interactive 
Control (VISAIC) utility. VISAIC allows you to control your VXI/VME 
devices without using LabVIEW, Measurement Studio, or another 
programming language. You can also control your devices in MAX by 
right-clicking a device name and selecting 

Open VISA Session

.

Note

You can also use VXI Interactive Control Program (VIC) to control your VXI/VME 

devices and develop and debug VXI application programs. VIC is not included in the 
default NI-VXI installation. To install VIC, choose either a Complete install or select 

NI-VXI API Development

 from the custom installation screen in the installer.

You can launch VISAIC (or VIC) from the 

Tools

 menu in MAX or from 

the 

VISA

 or 

VXI

 subgroups in 

Start»Programs»National Instruments

.

Try the following in VISAIC: In the tree view, navigate using your mouse 
to the VISA resource for your controller—probably 

VXI0::0::INSTR

representing the VXI system 0, logical address 0 instrument resource, 
as shown in Figure 3-2.

Figure 3-2.  

Select Your Controller in VISAIC

Summary of Contents for VXI-1394

Page 1: ...VXI VXI 1394 User Manual for Windows VXI 1394 User Manual for Windows March 2005 370533B 01...

Page 2: ...a 82 02 3451 3400 Lebanon 961 0 1 33 28 28 Malaysia 1800 887710 Mexico 01 800 010 0793 Netherlands 31 0 348 433 466 New Zealand 0800 553 322 Norway 47 0 66 90 76 60 Poland 48 22 3390150 Portugal 351 2...

Page 3: ...events outside reasonable control Copyright Under the copyright laws this publication may not be reproduced or transmitted in any form electronic or mechanical including photocopying recording storin...

Page 4: ...t of Communications DOC Changes or modifications not expressly approved by NI could void the user s authority to operate the equipment under the FCC Rules Class A Federal Communications Commission Thi...

Page 5: ...apter 2 Installation and Configuration Installing the Software 2 1 Installing the NI VXI and NI VISA Software 2 1 Completing the Software Installation 2 3 Configuring the Hardware optional 2 3 Install...

Page 6: ...Compiler Symbols 3 8 Compatibility Layer Options 3 9 Debugging 3 10 Appendix A Specifications Appendix B Default Settings Appendix C Advanced Hardware Configuration Settings Appendix D Common Questio...

Page 7: ...controllers How to Use the Manual Set This user manual contains an overview of the VXI 1394 hardware and the NI VXI NI VISA software guides you through setting up your kit and helps you get started w...

Page 8: ...e located at Start Programs VXIpnp NI VISA Programmer Reference Manual Use the Acrobat Reader program to open the PDF files Note You can download Acrobat Reader from the Adobe Web site at www adobe co...

Page 9: ...ts to the screen This font also emphasizes lines of code that are different from the other examples monospace italic Italic text in this font denotes text that is a placeholder for a word or value tha...

Page 10: ...ability under Windows which means you can add and configure 1394 devices without powering down your system Your kit contains a National Instruments VXI 1394 interface module which plugs into your VXI...

Page 11: ...SA software for Windows a C size VXI 1394 module a 1394 cable and an industry standard OHCI host adapter A 1394 equipped computer connected to a VXI 1394 interface can function as a VXI Commander and...

Page 12: ...power to the IEEE 1394 bus which is required by some devices VXI 1394 Front Panel Features The VXI 1394 has the following front panel features Three front panel LEDs SYSFAIL LED indicates that the VM...

Page 13: ...features various options for running Resman You can still execute Resman independently to configure your instruments after a power cycle But you can also perform resource manager operations directly...

Page 14: ...ur application using tools specific for each language With Measurement Studio you can write programs quickly and easily and modify them as your needs change LabWindows CVI is an interactive ANSI C pro...

Page 15: ...compliant with VXIplug play specifications a VXI controller must provide the VISA I O driver library standardized by VXIplug play VISA ensures that your controller can run all VXIplug play compatible...

Page 16: ...insert the CD 2 Click the Next button at the Welcome screen to start the installation and accept the license agreement Note If you have a previous 32 bit Windows NT 98 version of the NI VXI software i...

Page 17: ...tware default settings Refer to Appendix C Advanced Hardware Configuration Settings if you want information about other possible settings Use MAX to change any of the configuration settings for the VX...

Page 18: ...ove the computer chassis cover to expose the expansion slots and external access covers 3 Select an available PCI slot in your computer The slot you select should support bus mastering Refer to your c...

Page 19: ...or on the bottom of the host adapter with the PCI bus slot Figure 2 2 Installing the PCI 1394 Host Adapter 6 Carefully press the host adapter into the slot 7 Secure the host adapter bracket to the com...

Page 20: ...he A16 address space This region is reserved for VXI device configuration registers which are used for initializing configuring and interacting with VXI devices The VXI 1394 also uses this region for...

Page 21: ...I bus parameters in your CMOS setup Refer to your computer documentation for further instructions 5 You can now power on any external devices Software Configuration and Verification Running MAX and Re...

Page 22: ...National Instruments implementation of the VISA I O standard which is a common interface to many types of instruments such as VXI GPIB PXI Serial TCP IP and so on NI VXI is optimized for use through N...

Page 23: ...evices that request it Resman does not require you to specify any settings it automatically performs the VXI resource management whenever you run it Note Power cycling resets all devices so you must r...

Page 24: ...spot any errors that Resman found while configuring the system Figure 3 1 Right Click a VXI System in MAX to Run Resman on that System After Resman detects and configures all your VXI VME devices you...

Page 25: ...am VIC to control your VXI VME devices and develop and debug VXI application programs VIC is not included in the default NI VXI installation To install VIC choose either a Complete install or select N...

Page 26: ...Different for LabVIEW Users If the data value ends in ff6 you have successfully read the National Instruments manufacturer ID from your VXI VME controller s ID register You may now want to read the c...

Page 27: ...provides a common interface to many types of instruments such as VXI GPIB PXI Serial TCP IP and so on and therefore is especially useful in situations where you are using multiple types of instrument...

Page 28: ...2 bit data whenever possible Use VXI block access privileges to significantly improve performance to devices that are capable of accepting block transfers To optimize move performance on virtual memor...

Page 29: ...still develop with the older NI VXI API for compatibility with legacy code Compiler Symbols You may need to define certain compiler symbols so that the NI VXI library can work properly with your progr...

Page 30: ...API with regard to these settings In particular if you are receiving triggers on an external controller you may need to modify the trigger configuration on your extender module using MAX In general in...

Page 31: ...I and NI 488 NI Spy highlights functions that return errors so during development you can quickly spot which functions failed during a program s execution NI Spy can log the calls your program makes t...

Page 32: ...National Instruments Corporation 3 11 VXI 1394 User Manual for Windows VISAIC discussed in the Device Interaction section is an excellent platform for quickly testing instruments and learning how to c...

Page 33: ...iguration space 64 B A24 or A32 space Programmable Default None Power Requirement 5 V Typical 2 23 A Maximum fused 7 A 5 2 V Typical 176 mA Maximum fused 1 A 2 V Typical 89 5 mA Maximum fused 1 A 12 V...

Page 34: ...factory Operating Environment Ambient temperature range 0 to 55 C Relative humidity range 10 to 90 noncondensing Tested in accordance with IEC 60068 2 56 Altitude 2000 m at 25 C ambient temperature P...

Page 35: ...8800F Class B Safety This product is designed to meet the requirements of the following standards of safety for electrical equipment for measurement control and laboratory use IEC 61010 1 EN 61010 1 U...

Page 36: ...ch by model number or product line and click the appropriate link in the Certification column IEEE 1394 Capability Descriptions Speed support 100 200 and 400 Mbits s Protocol support Asynchronous Quad...

Page 37: ...rst slot detector SCON VMEbus 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 le...

Page 38: ...Appendix A Specifications VXI 1394 User Manual for Windows A 6 ni com LOCK Can lock the VMEbus for indivisible transfers...

Page 39: ...hardware reference and to the MAX online help for your software reference Note There are no hardware settings on the PCI 1394 board Hardware Settings Table B 1 VXI 1394 Hardware Default Settings Hard...

Page 40: ...Servant area 0 System interrupt level Disabled Number of handlers 1 Number of interrupters 0 Table B 3 MAX Shared Memory Tab Default Settings Editor Field Default Setting Memory sharing Do not share m...

Page 41: ...Bus Tab Default Settings Editor Field Default Setting Bus timeout value 125 s VXI retry generation Enabled Automatic retries Disabled A24 A32 write posting Disabled Transfer limit 256 Requester mode...

Page 42: ...for more advanced users Hardware Default Settings The following hardware configuration settings are user configurable VXIbus Slot 0 Non Slot 0 Configuration EEPROM VXIbus CLK10 routing Trigger input...

Page 43: ...ings VXI 1394 User Manual for Windows C 2 ni com Figure C 1 VXI 1394 Default Configuration Settings EXT CLK10 TERMINATE Y N SMB TRIG TERM OUT IN NON INV S1 S2 S3 S4 S5 Y N S6 LOAD FACTORY FACTORY USER...

Page 44: ...by defeating the automatic detection circuitry Use the three position jumper W1 to select automatic Slot 0 detection Slot 0 or Non Slot 0 operation Figure C 2 shows these three settings Caution Do not...

Page 45: ...epts bus requests on all four VXIbus request levels prioritizes the requests and grants the bus to the highest priority requester As VXIbus System Controller the VXI 1394 also uses an onboard 16 MHz o...

Page 46: ...into two halves a factory configuration half and a user configuration half Both halves were factory configured with the same configuration values so you can modify the user configurable half while th...

Page 47: ...ls with the external trigger input SMB and is discussed later in this appendix The VXI 1394 can use two different sources to generate the VXIbus CLK10 signal an onboard oscillator or the external CLK...

Page 48: ...3 is irrelevant when the VXI 1394 receives the external CLK10 signal However it is configured to be inverted when the CLK10 SMB is used as output Table C 1 Common CLK10 Routing Configurations Descript...

Page 49: ...uses the alternate configuration to generate the VXIbus CLK10 signal Instead of the onboard oscillator the VXI 1394 generates from the external CLK SMB connector and drives to the backplane You can c...

Page 50: ...5 Receive External CLK SMB and Drive to the Backplane Unterminated Figure C 6 Receive External CLK SMB with 50 Termination and Drive to the Backplane EXT CLK10 TERMINATE Y N SMB TRIG TERM OUT IN NON I...

Page 51: ...ernate setting Switch S5 must be in its default position for these configurations Signal termination is not an issue when driving the signal so the position of S1 does not matter The difference betwee...

Page 52: ...onfiguration Settings National Instruments Corporation C 11 VXI 1394 User Manual for Windows Figure C 8 Drive Noninverted External CLK SMB EXT CLK10 TERMINATE Y N SMB TRIG TERM OUT IN NON INV S1 S2 S3...

Page 53: ...nput SMB Figure C 9A shows the default setting for a nonterminated trigger input SMB Use the setting of Figure C 9B to terminate the trigger input SMB Figure C 9 SMB Trigger Input Termination EXT CLK1...

Page 54: ...ing any new 1394 devices to your system Does it matter whether I plug in a 1394 device to the PCI 1394 in my computer or to the VXI 1394 in my mainframe The only difference is the topology of the syst...

Page 55: ...XI Resource Manager as discussed in the VXIbus specification When you set a National Instruments controller to Logical Address 0 you will at some point need to run Resman to configure your VXI instrum...

Page 56: ...an also configure Resman to run automatically at startup What can I do to make sure that my system is up and running The fastest method for testing the system is to run Resman This program attempts to...

Page 57: ...or if it has detected a failure after originally passing its self test The 1394 LED indicates that the VXI 1394 is being accessed by another device on the IEEE 1394 bus such as when the computer commu...

Page 58: ...Windows What is shared memory and dual ported memory These terms refer to a block of memory that is accessible to both a client and a server The memory block operates as a message buffer for communic...

Page 59: ...al Instruments Application Engineers make sure every question receives an answer For information about other technical support options in your area visit ni com services or contact your local office a...

Page 60: ...ni com calibration If you searched ni com and could not find the answers you need contact your local office or NI corporate headquarters Phone numbers for our worldwide offices are listed at the front...

Page 61: ...VME 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 VXI...

Page 62: ...gains control over a particular bus asynchronous Not synchronized not controlled by time signals In IEEE 1394 specifically this is the standard protocol for sending packets that require an acknowledgm...

Page 63: ...es to memory and usually involve hardware with bus mapping capabilities For example nonexistent memory a nonexistent register or an incorrect device access can cause a bus error bus master A device th...

Page 64: ...f transferring data to from computer memory DRAM Dynamic RAM Random Access Memory storage that the computer must refresh at frequent intervals dynamic configuration A method of automatically assigning...

Page 65: ...394 G g 1 Grams 2 A measure of acceleration equal to 9 8 m s2 gRMS A measure of random vibration The root mean square of acceleration levels in a random vibration test profile H hex Hexadecimal the nu...

Page 66: ...er A set of routines designed to control a specific instrument or family of instruments and any necessary related files for LabWindows CVI or LabVIEW interrupt A means for a device to request service...

Page 67: ...ed with B byte to quantify data or computer memory master A functional part of a VME VXIbus device that initiates data transfers on the backplane A transfer can be either a read or a write message bas...

Page 68: ...a high performance 32 bit or 64 bit bus with multiplexed address and data lines R register based device A Servant only device that supports VXIbus configuration registers Register based devices are ty...

Page 69: ...the device the VXIbus backplane or both SMB Sub Miniature Type B connector that features a snap coupling for fast connection statically configured device A device whose logical address cannot be set t...

Page 70: ...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 data transfers...

Page 71: ...computer D 1 plugging in multiple peripherals D 1 Resman D 2 using D 3 serial number and hardware revision of VXI 1394 D 2 shared memory and dual ported memory D 5 VME devices D 3 VXI 1394 system exp...

Page 72: ...g 2 3 PCI 1394 1 3 help technical support E 1 hot plug in and IEEE 1394 D 1 definition of 1 1 how to use manual set vii I IEEE 1394 capability descriptions A 4 installation 2 1 instrument drivers NI r...

Page 73: ...rs 3 7 shared memory 3 8 R related documentation ix Resman 2 7 D 2 running from MAX figure 3 3 using D 3 restart system power 2 7 S safety specifications table A 3 setup 2 1 shared memory 3 8 shared m...

Page 74: ...3 VXI programming 3 6 VXI 1394 default configuration settings figure C 2 front panel features 1 3 hardware default settings table B 1 interface board installing 2 6 interface kit overview 1 2 module...

Reviews: