Home
E8491B IEEE 1394 PC Link to VXI
Contents
1. A second connection creates a closed loop and is not allowed Figure 2 7 IEEE 1394 Interface Configurations T O performance is impacted slightly by the hardware configuration The VXI mainframe with the fewest number of hops cable links to the PC has the highest priority However each mainframe has equal access to the bus during each data transfer interval Note Referto Chapter 4 IEEE 1394 Fundamentals and Interface Overview for information on the topology and terms associated with the IEEE 1394 bus Alternate Configurations Certain applications may include the E1406A Command Module as an GPIB interface to selected instruments In this configuration the E8491B must be the resource manager since its logical address is always 0 It is generally installed in mainframe slot 0 so that it also provides the system s slot 0 functionality If you want the E1406 to provide slot 0 functionality in addition to providing an GPIB interface set its configuration as follows 1 Set the E1406 logical address to a value other than 0 2 Set the Slot 0 and System Controller switches to Enable default 3 Set the CLK 10 source to Internal default Chapter 2 Interface Installation and Configuration 19 4 Set the VME BTO Disable switch to 0 Enable default Set VME Bus Timeout BTO on the E8491B to Off see Editing the E8491B Con
2. exit 1 return J RR KK KK KK RK A K KKK KK KKK KKK A A k KK k k I k k A Kk ke Kk Error handling function void err handler ViSession vi ViStatus err char buf 1024 0 viStatusDesc vi err buf printf ERROR s n buf return Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus 53 Comments 1 Because of the E1410 multimeter data storage format eight bytes reading the readings are transferred from shared memory to the PC in bytes Therefore it is necessary to swap each byte in order to re construct the reading Depending on the storage formats of your particular instruments swapping may not be necessary 2 This manual is included on the Agilent I O Libraries CD By viewing the manual from the CD you can cut and paste this program into your development environment Storing Readings in This example uses the E1410 VXIplug amp play driver to configure the Shared Memory SICL multimeter take the readings and store them in E8491B shared memory Example SICL functions are used to transfer the readings from shared memory to the PC SHAR SICL CPP This program demonstrates how to access the E8491B s shared memory The program stores readings taken by the E1410 multimeter in E8491B shared memory and then transfers those readings from shared memory to the computer include sicl
3. Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus 41 query instrument error hpel1563 dcl vi send a device clear hpel563 error query vi amp inst err rr message display the error printf Instrument Error 1d s n inst err rr message else get driver error message hpel563 error message vi errStatus err message display the error printf E1563 Driver Error 1d s n errStatus err message hpel563 reset vi reset the digitizer hpel1563 close vi close the digitizer handle exit 1 return J RR KK KKK KK KK KK kk kk IC KC I KK Kk CK KK Kk CK KI IC KK CK Ck kc k KC I kck ck ck kckckckck ck ck ck ck oko Error handling function void err handler ViSession vi ViStatus err char buf 1024 0 viStatusDesc vi err buf printf ERROR s n buf return Comments 1 A single instrument session opened with the hpe1563 init function can be used by both Agilent VXIplug amp play driver function calls and by Agilent VISA function i e viMoveIn32 calls 2 This manual is included on the Agilent I O Libraries CD By viewing the manual from the CD you can cut and paste this program into your development environment 3 The section Using E8491B Shared Memory contains an example of block data transfers using Agilent SI
4. eere eee eee esee eese eese tn sitat en atn sensato setas stesse es tas tassa sena ae 7 8 10 Chapter 1 jnnnn 11 Using the IEEE 1394 Serial Bus in VXI Systems eere esee ee eee eren estne esae n etna ano 11 Component OVELVICW M 11 The Agilent E8491B PC Link to VXI Interconnect e eere eere nnn 11 The OHCI Compatible PCI to IEEE 1394 Host Adapter 11 The Agilent I O Libraries cene eene eene en nennen etnies tantas tns ens snas sno 11 Using this Mantal eso Em 11 Chapter 2 Interface Installation and Configuration scscssscessssssscssenesees 11 Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus 12 Chapter 4 IEEE 1394 Fundamentals and Interface Overview 12 Appendix A Specifications eres eee eese eee seen tn natns esses sense ta s tasso seen aao 12 Appendix B Editing the E8491B Resource Manager Configuration 12 Additional Information eerie sees seen e eee ee seen sten tn sto sensa stas ea setas spss s ssss i 12 Chapter 2 Interface Installation and Configuration 4 eee ecce ee eee e eene seen eee en ee en nn 13 Using this Scire 13 Step 1 Installing the IEEE 1394Host Adapter 4 eee e
5. convert address from pages to an address start addr start addr 2560 E map E8491B memory space for transfer of readings from E8491B shared memory to the computer map imapx e8491 I MAP SHARED 0 1 set a 5s timeout period to allow functions to complete itimeout e8491 5000 itimeout e1410 5000 configure the multimeter for DCV measurements iprintf e1410 CONF VOLT DC 30 0 n set a 10 us aperture time iprintf e1410 VOLT APER 10 0e 6 n set iprint 8000 readings f e1410 SAMP COUN 8000 n store the readings in E8491B shared memory specify the E8491B shared memory base address iprintf e1410 MEM VME ADDR d n start addr ex specify the amount of memory required 8000 readings 8 bytes reading iprintf el410 MEM VME SIZE 64000 n enabl reading to be stored iprintf el410 MEM VME STAT 1 n initiate the multimeter to take the readings iprintf e1410 INIT n pause 30s to allow readings to complete and to transfer to shared memory Sleep 30000 Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus 55 transfer the 8000 readings from the multimeter using the SICL function iblockmovex the parameters are id source handle
6. Chapter 2 Interface Installation and Configuration 17 VXI MXI systems 1 If power is applied to the VXI mainframe remove power to the VXI mainframe and disconnect all power sources that may be applied to any instruments 2 Insert the E8491B into mainframe slot 0 by aligning the module with the guides inside the mainframe Figure 2 6 Slowly push the module into the slot until it seats in the backplane connectors It may be necessary to pull out not remove the retaining screws in order to seat the device securely in the connectors Retaining Screws Seat the module by pushing in the extraction levers Extraction Levers Slide the module into the mainframe until it plugs into the backplane connectors Figure 2 6 Installing the E8491B in the VXI Mainframe 3 Tighten the retaining screws on the top and bottom of the module Connecting the E8491B to the Host Adapter 4 Connect the interface cable from the host adapter to E8491B port A B or C The ports are identical and unused ports are available to 18 Interface Installation and Configuration Chapter 2 connect additional E8491Bs and other IEEE 1394 devices in a daisy chain or tree configuration Figure 2 7 Notice that there can be no closed loops DAISY CHAIN CONFIGURATION TREE CONFIGURATION PC
7. VI SUCCESS err handler fw 64 000 bytes 64000 err ViPUI swap the bytes onc for i1 0 1 lt 7999 1i SWAP FLOAT64 amp rdgs i they ar the multimeter using t8 rdgs transferred from shared memory print some readings to verify the transfer was successful for i lt i 0 0 i printf lfMn rdgs i 52 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 close the device sessions hpe1410 close vi close E1410 session viClose fw close E8491 session J KKK KK KK KK KK KC Ck Kk Ck IK Kk CK KC KK KKK KKK CK Ck Kk Kk Kk Sk kk kk KC k ck kckck ck kk K error checking routine void check ViSession vi ViStatus errStatus Vilnt32 inst err ViChar err message 256 if VI SUCCESS errStatus if INSTR ERROR errStatus query instrument error hpel410 dcl vi send a device clear hpel410 error query vi amp inst_err err message display the error printf Instrument Error ld s n inst err rr message else get driver error message hpel410 error message vi errStatus err message display the error printf E1410 Driver Error ld s n errStatus err message hpel1410 reset vi reset the multimeter hpel1410 close vi close the multimeter handle
8. Figure 2 15 Soft Front Panel Indicating PC Mainframe Communication Viewing the Resource Another way to determine if your system is properly configured is to view Manager Output the output of the resource manager The easiest way to view the output is using the I O Libraries I O Config utility 1 Press the Agilent I O Libraries Control icon in the lower right hand side of your monitor and select Edit VXI Resource Manager In the Resource Manager pop up window select RM Output The resource manager output will show the VXI Current Configuration with all devices it can communicate with listed in the VXI Device Table 2 Click on Start gt gt Programs gt gt I O Config to bring up the I O Config window Figure 2 11 2a Select the Configured Interfaces name corresponding to the E8491B to bing up the E8491 VXI Board Configuration window Figure 2 12 30 Interface Installation and Configuration Chapter 2 2b Perform steps 1 2 and 3 in Figure 2 16 m Advanced Settings YME Bus Request Level f E AE 8 Be ode m External Trig n State TTL IHL C CMOS C ECL C Other Level C Dut YME Bus Timeout BTO Auto C On C Off 1 Select Enable Advanced to activate the Advanced Settings controls 2 Click Resource Manager to bring up the window below amp Resource Manager Iof x This utility allows you to edit the Resource Manager configuration files
9. do not extend the VXI backplane between frames in multi frame VXI systems MXI cards are required This means that the multimeter and multiplexers in a VXI scanning multimeter for example must be installed in the same mainframe in adjacent slots Devices sharing the VXI Local bus must also be installed in the same mainframe 20 Interface Installation and Configuration Chapter 2 Installing C size Figure 2 8 shows the installation of C size instruments Instruments seat the module by pushing in the extraction levers retaining Screws extraction levers slide the module into the mainframe until it plugs into the backplane connectors Figure 2 8 Installing C size Instruments Caution To prevent damage to the VXI instruments being installed remove power from the mainframe or set the power switch to Off or Standby before installing the instruments 1 Insert the instrument into the mainframe by aligning the instrument with the card guides inside the mainframe Slowly push the instru ment into the slot until it seats in the backplane connectors The front panel of the instrument should be even with the front edges of the mainframe 2 Tighten the retaining screws on the top and bottom of the module WARNING All instruments within the VXI mainframe are grounded through the mainframe chassis During installation tighten the instruments retaining screws to secure the i
10. Readings are taken and transferred from the instrument to E8491B shared memory over the VXI backplane Readings are transferred in blocks from shared memory to the PC over the IEEE 1394 serial bus Figure 3 4 Storing Readings in Shared Memory Storing Readings in This example uses the E1410 VXIplug amp play driver to configure the Shared Memory multimeter take the readings and store them in E8491B shared memory Agilent VISA Example Agilent VISA functions are used to transfer the readings from shared memory to the PC SHAR VISA CPP This program demonstrates how to access the E8491B s shared memory The program stores readings taken by the E1410 multimeter in E8491B shared memory and then transfers those readings from shared memory to the computer include hpel410 h include the driver header file include visa h include lt stdio h gt include lt stdlib h gt include lt windows h gt project files SHAR VISA cpp hpel410 1ib VISA32 1ib specify the addressing path to the multimeter define E1410 VXIO 24 INSTR E1410 pat define E8491 VXIO 0 INSTR E8491 pat check for instrument errors define INSTR ERROR OxBFFCODO7 50 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 set up byte swa
11. lt stdlib h gt include lt windows h gt project files 1563visa cpp hpel1563 1ib VISA lib specify the addressing path define E1563 VXI0 64 INSTR VXI addressing prototypes void check ViSession vi ViStatus error void err_handler ViSession vi ViStatus err void main void ViSession vi ViStatus errStatus err Vilnt32 rdgs 60000 ViReal64 range range variable for reading conversions Vilnt16 dataPtr pointer to cast readings to 16 bit integers ater db ViChar err message 256 open a VXIplug amp play device session and reset the digitizer errStatus hpel1563 init E1563 0 1 amp vi if VI SUCCESS errStatus hpel563 error message vi errStatus err message printf Unable to open s n E1563 printf hpe1563 init returned error message sMn err message return enable digitizer error detection hpel563 errorQueryDetect vi 1 set a 5s timeout period to allow functions to complete errStatus hpel563_timeOut vi 5000 check vi errStatus configure the digitizer to take 60 000 post trigger readings not to exceed 4V on channel 1 errStatus hpel563_configure vi 1 4 0 60000 1 check vi errStatus 40 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 set an immediate trigger errStatus hpel563_trigEvent vi 1 hpel563 TRI check vi
12. viSetAttribute VI_ATTR_TRIG_ID VI TRIG TTLO to VI TRIG TTL7 VI TRIG ECLO to VI TRIG ECLI viAssertTrigger VI TRIG PROT DEFAULT VXI Programming Using the IEEE 1394 Serial Bus The E8491B is capable of asserting receiving and routing trigger signals along the VXI mainframe backplane trigger lines In addition to the VXI backplane s eight TTL level trigger lines and two ECL level trigger lines the E8491B can receive and assert triggers on the faceplate Trig In and 43 Asserting Triggers Agilent SICL ivxitrigoff ivxitrigon ixtrig I TRIG ALL I TRIG TTLO toI TRIG TTL7 I TRIG ECLO to I_TRIG_ECL1 I TRIG EXTO specifies faceplate Trig Out port Routing Triggers Agilent SICL ivxigettrigroute ivxitrigroute I_TRIG_ALL I_TRIG_TTLO toI TRIG TTL7 I TRIG ECLO to I TRIG ECL I TRIG EXTO specifies faceplate Trig Out and Trig In ports Configuring the E8491B Configuration of the E8491B external Trig In and Trig Out ports is done Trig In and Trig Out Ports through the Agilent I O Libraries I O Config utility This portion of the utility is shown in the following figure r Advanced Settings VME Bus Request Level NE HE LU Resource Manager Delay 5 In Seconds E External Trig Resource Manager f In C Dut VME Bus Timeout BTO Auto ear S E C cmos C On EDD Level C off Enable Extemal Clock C I Other fic Use all of 424
13. 5A to all three 1394 ports for IEEE 1394 devices that require power The layout of a typtical adapter is shown below 12 VDC Power Connector A External a IEEE 1394 Connectors Figure 4 3 Layout of a Typical OHCI PCI to IEEE 1394 Host Adapter The interface cable supplied with the host adapter has two power wires and two signal twisted pairs A cross section of the cable and the cable connector is shown in Figure 4 4 1 In the future IEEE 1394 will be a standard port on selected PCs Chapter 4 IEEE 1394 Fundamentals and Interface Overview 61 shields connector 1 3 5 2 4 6 COMMENT cable power cable ground strobe on receive data on transmit data on receive strobe on transmit power wires Figure 4 4 Cross section of the IEEE 1394 Cable The power wires route power from the host adapter to devices nodes on the bus whether the devices are turned on or off Since each device in the system acts as a repeater the power supplied to a device that is turned off enables signals to be transferred across that device This maintains signal continuity throughout the system The Agilent E8491B The E8491B is a VXI C size device Figure 4 5 normally installed in PC to VXI mainframe slot 0 With a logical address of 0 the E8491B functions as the mainframe s resource m
14. be distrib uted from an external source Configuration Label Used to identify the interconnect address in multi frame VXI systems Failed IEEE 1894 vx SYSFAIL IEEE 1394 Ports 6 Y Trig Out e Reset E8491B IEEE 1394 Ports Three ports allow tree topologies which minimize the number of hops Each port is identical and any port or combination of ports can be used System Clock Ports The E8491B is capable of sourcing and receiving the VXI system s 10 MHz clock The system clock CLK10 is one of the VXI resources provided by the mainframe s slot 0 device This TTL level clock is internally generated or can be received from an external source The signal is distributed to every slot in the mainframe and can also be routed to external devices Reset Button Resets the HP E8491B and all instruments in the mainframe Re runs the resource manager Figure 4 5 The Agilent E8491B IEEE 1394 to VXI Interconnect Chapter 4 IEEE 1394 Fundamentals and Interface Overview 63 Using the Agilent Though not a common configuration the E1406 command module can be E8491B with the Agilent used in the same mainframe as the E8491 to provide GPIB access to E1406 Command Module instruments In this configuration however the E8491B must be the mainframe s resource manager See the section titled Alternate
15. drive Do not apply power to the VXI mainframe 2 Review the information and license agreements presented at the beginning of the installation process 3 Continue through the installation process as directed by the installer Be sure to indicate that you want Agilent I O Libraries support for the E8491B interface installed by clicking on the box next to Install E8491 VXI Components 4 Read the Readme txt file if you choose then select Do not configure the interfaces at this time in the next window 5 After the installation is complete re start the computer Configuring the 1 Connect the IEEE 1394 interface cable between the host adapter PC E8491B Interconnect and one of the IEEE 1394 ports on the E8491B front panel 2 Turn on the VXI mainframe 3 From the Agilent I O Libraries program group created when the libraries were installed Start gt gt Programs gt gt Agilent I O Libraries click on I_O Config Figure 2 10 24 Interface Installation and Configuration Chapter 2 Chapter 2 LENSES 0000s i _O Readme 7 SCPI Readme LAN Server 2 SICL Help VISA Assistant F VISA Assistant Help Figure 2 10 The Agilent I O Libraries Program Group An alternative is to click on the Agilent icon in the lower right hand corner of your monitor which is placed there following the installation of the I O Libraries and configuring the E8491B Clicking on the Agilent icon brings up a pop up men
16. entente atta ano 72 The irq cf Configuration File 4 eese eene eee eene seen etna tn seen sena sna ta ano 73 The ttltrig cf Configuration File eee ee esee entente eren etna en atentos sens etna ano 73 The vximanuf cf Configuration File eee crees eene eese e eee en neta n sensato 73 The vximodel cf Configuration File e eee eee eee eese esee en seen tnt n etna ano 73 Utility Function Overview sees seien e eee eee seen stent tn natns enses sisse es stesso seen setas sno 73 USING s p 73 insu es sis rois 75 Eo C E A 77 Contents 3 4 Contents Certification Agilent Technologies Inc certifies that this product met its published specifications at the time of shipment from the factory Agilent Technologies further certifies that its calibration measurements are traceable to the United States National Institute of Standards and Technology formerly National Bureau of Standards to the extent allowed by that organization s calibration facility and to the calibration facilities of other International Standards Organization members AGILENT TECHNOLOGIES WARRANTY STATEMENT AGILENT PRODUCT B size and C size VXI modules DURATION OF WARRANTY 1 year 1 Agilent warrants Agilent hardware accessories and supplies against defects in materials and workmanship for the period specified above I
17. err rr message display the error printf Instrument Error ld s n inst err rr message else get driver error message hpel563 error message vi errStatus err message display the error printf E1563 Driver Error ld s n errStatus err message hpel563 reset vi reset the digitizer hpel1563 close vi close the digitizer handle exit 1 return Comments 1 The maximum block transfer size allowed by the E1563A hpe1563 fetchAIl Q function is 2 000 bytes 2 This manual is included on the Agilent I O Libraries CD By viewing the manual from the CD you can cut and paste this program into your development environment 3 The section Using E8491B Shared Memory contains an example of block data transfers using Agilent SICL Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus 39 Block Transfers using This program performs a block transfer of 60 000 readings using the Agilent VISA E1563A digitizer and the Agilent VISA function viMoveIn32 1563visa CPP This program configures the E1563A digitizer using its VXIplug amp play driver and then transfers a block of 60 000 readings from the digitizer s FIFO memory to the computer using the VISA viMoveIn32 function include hpel563 h include the driver header file include visa h include lt stdio h gt include
18. errStatus set the minimum sample period errStatus hpel563 sampTim vi hpel563_SAMP_TIM_ check vi errStatus disable digitizer error detection hpel563 errorQueryDetect vi 0 initiate the digitizer errStatus hpel1563 initImm vi pause 78 ms 1 3e 6 60000 to allow readings to complet Sleep 78 transfer the 60 000 readings from the digitizer using the VISA function viMoveIn32 use the same session name vi opened for VXIplug amp play err viMoveIn32 vi VI A16 SPACE 0x08 60000 ViPUInt32 rdgs if err VI SUCCESS err handler vi err confirm readings transferred are valid dataPtr Vilntl6 rdgs query digitizer reading range errStatus hpel1563 range Q vi 1 amp range printf Reading samples are n n for i20 i 10 i 2 printf Slf n n dataPtr i range 32768 veset digitizer following the transf errStatus hpel563_reset vi close the device session hpel563 close vi Agilen Iplug amp play session J BRR RK KK KKK KC kk kk Ck KK Kk CK CK KK kk KC I OK Ck kk KC Ck kk Ck kc k KC k kck ck ck kck ck kck ck kk error checking routine void check ViSession vi ViStatus errStatus Vilnt32 inst err ViChar err message 256 if VI SUCCESS errStatus if hpel563 INSTR ERROR DETE ED errStatus
19. file to print out the name of the manufacturer If you add a new VXI device from a vendor that is not currently in the file you may want to add an entry to the file This file can not be edited using I O Config The vximodel cf file contains a database that lists a cross reference of manufacturer id model id and VXI device names The ivxirm utility reads the model id number from the VXI device and the ivxisc utility uses that information and this file to print out the VXI device model If you add a new VXI device to your system that is not currently in this database you may want to add an entry to this file This file can not be edited using I O Config Within the lt drive gt siclnt bin or sicl95 bin directory are utility functions that view the resource manager output ivxisc and which clear the E849 1B interface iclear and run the resource manager if the iproc utility is running The ivxisc function is used to view the resource manager output ivxisc is executed from the Windows command DOS prompt siclnt bin or sicl95 bin directory as ivxisc vxi lt logical unit Editing the Agilent E8491B Resource Manager Configuration 73 where logical unit is the value from the Logical Unit window in the Agilent I O Libraries I O Config utility An example of the output produced by ivxisc is shown in Figures B 3 and B 4 M ent Configuration URI Bus Device Logical Addresses Slot
20. h include lt stdio h gt include lt stdlib h gt include lt windows h gt project files SHAR SICL cpp SICL32 1ib set up byte swap function for readings transferred from E8491B shared memory to the PC define SWAP FLOAT64 rdgs unsigned char src 8 double src doubl unsigned ar rdgs unsigned ar unsigned ar unsigned ar unsigned ar unsigned ar signed ar signed ar ey UHNUOBWNE O OO ok x 006 X FX OrFRPNWHA OOD Qo Qo ue OO O QOO000000 ain void INST e8491 handle for SICL session to E8491 INST e1410 handle for SICL session to E1410 struct vxiinfo info structure for data returned by ivxirminfo unsigned long start addr starting address of shared memory double rdgs 8000 array for readings from shared memory short i unsigned long map memory map space 54 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 install SICL error handler ionerror I ERROR EXIT open a SICL interface session 1 open a SICL device session to e8491 iopen vxi e1410 iopen vxi 24 read the VXI resource manager information in order to determine the E8491B shared memory starting address ivxirminfo e8491 0 amp info E start addr info memstart
21. or to view the output of the system s resource manager Using Instrument Soft Soft front panels are part of the instruments VXIplug amp play drivers A soft Front Panels front panel is activated from the Vxipnp program group as shown in Figure 2 14 8 E15632 Chan Digitizer 32 bit SFP e HP E1563 Help 32 bit 4 HP E2260 Help 32 bit EX HP E2260 Serial Parallel 32 bit SFP Click to activate a soft ah Y HP E2261 Help 32 bit front panel bw DA HP E2261 Serial M Mod 32 bit SFP EY HP E2270 Form A Switch 32 bit SFP G HP E2270 Help 32bit EX HP E2271 4x4 Matrix 32 bit SFP Q HP E2271 Help 32 bit Q HP E2272 Help 32 bit EX HP E2272 Multiplexer 32 bit SFP EX HP E2290 Digital ID 32 bit SFP fs Vxipnp 4 HP E2290 Help 32 bit DX HP E8460 256 Chan Mux 32 bit SFP G HP E8450 Help 32 bit Figure 2 14 Selecting a VXIplug amp play Soft Front Panel When the system hardware and software are properly installed and the PC is communicating with the mainframe the soft front panel will be opened and a connection made to the instrument as shown in Figure 2 15 Chapter 2 Interface Installation and Configuration 29 FE E1563 2 Channel Digitizer System Help Vxi 64 o Slot A Active Sample Count Sample Period us m Display Channels Range fy Ch 1 256v lI c2 256v Correct interface name and kde Active ee logical address shown 2 ows communication to instrument
22. person capable of rendering first aid and resuscitation is present DO NOT substitute parts or modify equipment Because of the danger of introducing additional hazards do not install substitute parts or perform any unauthorized modification to the product Return the product to an Agilent Technologies Sales and Service Office for service and repair to ensure that safety features are maintained Declaration of Conformity Declarations of Conformity for this product and for other Agilent products may be downloaded from the Internet There are two methods to obtain the Declaration of Conformity Go to http regulations corporate agilent com DoC search htm You can then search by product number to find the latest Declaration of Conformity Alternately you can go to the product web page www agilent com find E8491B click on the Document Library tab then scroll down until you find the Declaration of Conformity link Notes Notes Notes Chapter 1 Introduction Using the IEEE 1394 Serial Bus in VXI Systems Component Overview The Agilent E8491B PC Link to VXI Interconnect The OHCI Compatible PCI to IEEE 1394 Host Adapter The Agilent I O Libraries Using this Manual Chapter 2 Interface Chapter 1 Installation and Configuration The IEEE 1394 Serial Bus FireWire is a high speed bus that has been implemented as an I O interface between external PCs and Agilent VXI systems The bus links
23. source offset source width source increment destination handle destination offset destination width destination increment count and swap iblockmovex e8491 map 0 8 1 0 unsigned long rdgs 8 1 64000 0 swap the bytes once they are transferred from shared memory for i1 0 1 lt 7999 i SWAP FLOAT64 amp rdgs i print some readings to verify the transfer was successful for i20 i lt 10 i printf slf n rdgs i unmap memory iunmapx e8491 map I_MAP_SHARE close the device sessions iclose e8491 close SICL interface session iclose el410 close SICL device session Comments 1 Because of the E1410 multimeter data storage format eight bytes reading the readings are transferred from shared memory to the PC in bytes Therefore it is necessary to swap each byte in order to re construct the reading Depending on the storage formats of your particular instruments swapping may not be necessary 2 This manual is included on the Agilent I O Libraries CD By viewing the manual from the CD you can cut and paste this program into your development environment 56 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 Chapter 4 IEEE 1394 Fundamentals and Interface Overview Using this Chapter This chapter contains reference information on the IEEE 1394 Serial Bus the data transfer protocol and on the re
24. the PC is always the root node having cycle master and bus master capabilities Branch Node A branch node has IEEE 1394 cables connected to two or more ports In Figure 1 VXI mainframe 1 is a branch node because of the 1394 cables connecting it to the PC root node and to VXI mainframe 3 on its right Leaf Node A leaf node has a single IEEE 1394 cable connected to it VXI mainframes 2 and 3 are leaf nodes Parent A node E8491B is a parent if it is physically connected closer to the root than an adjacent node In Figure 1 VXI mainframe 1 is a parent node because it is closer to the root than VXI mainframe 3 Child A node E8491B is a child if it is farther from the root than an adjacent node In Figure 1 VXI mainframe 3 is a child node because it is farther from the root than VXI mainframe 1 A node with a single IEEE 1394 cable connected to it leaf node is always a child VXI mainframe 2 Hop A hop is a IEEE 1394 cable link between nodes There can be no more than 16 hops between any two nodes In the diagram above there is a maximum of three hops between nodes The distance between any two nodes cannot exceed 72m Features of the IEEE 1394 Bus The following features of the IEEE 1394 bus apply to all bus applications including VXI systems Daisy chain or branching configurations are allowed There can be no closed loops i e more than one connection between any two devices Up to 63
25. the PC backplane to the VXI mainframe backplane This manual describes the implementation configuration and use of this interface Implementation of the IEEE 1394 serial bus as an I O interface for Agilent VXI systems is provided through three components and two operating systems Agilent E8491B PC Link to VXI Interconnect OHCI compatible PCI to IEEE 1394 Host Adapter Agilent I O Libraries WIN 95 and WIN NT operating systems The E8491B is the VXI hardware that links the VXI mainframe backplane to the IEEE 1394 serial bus The E8491B is a 1 slot C size message based device that is installed in mainframe slot 0 The OHCI PCI to 1394 Host Adapter card is installed in the PC and links the computer s PCI backplane to the IEEE 1394 bus The OHCI adapter has three external IEEE 1394 ports and can support up to 16 E8491Bs The Agilent I O Libraries provide the Agilent VISA and Agilent SICL drivers required to use the E8491B Included with the libraries are the drivers for the OHCI compatible host adapter This manual is organized to help you install configure and begin using the IEEE 1394 serial bus as quickly and efficiently as possible The following information outlines the contents of the other chapters and identifies the areas of programming a VXI system that are NOT covered in this manual This chapter contains information on installing the E8491B hardware and its drivers the Agilent I O Libraries Also included is
26. the number of devices that use A24 memory The address can be determined programatically using Agilent VISA or SICL or by viewing the resource manager output Each method is described in the following sections VXI Programming Using the IEEE 1394 Serial Bus 47 Locating Shared Memory Using Agilent VISA For Agilent VISA programs the E8491B shared memory starting address is obtained using the function viGetAttribute and the VXI interface attribute VI ATTR MEM BASE The Agilent VISA version of the example Storing Readings in Shared Memory demonstrates the use of this function and attribute Locating Shared Memory Using SICL For SICL programs the E8491B shared memory starting address is found using the function ivxirminfo This function fills the structure struct vxiinfo The item within the structure containing the starting address is memstart The SICL version of the example program showing the use of shared memory demonstrates the use of this function and structure Locating Shared Memory by Viewing the Resource Manager Output The third method of determining the E8491B s shared memory starting address is to view the resource manager output Viewing the Resource Manager Output in Chapter 2 describes how this is done using the I O Config utility Figure 3 3 shows the section of the output that indicates A24 address mapping Another way to view the output is using the SICL ivxisc utility contained in the
27. 0 e eee 43 Using Agilent E8491B Shared Memory 47 Prog ramming There are no SCPI instrument drivers for register based instruments T installed in or downloaded to the E8491B Therefore register based Reg ister Based and instruments are programmed over the IEEE 1394 bus using either their Message Based VXI vxipiug amp play drivers or through register level peeks and pokes using Instruments Agilent VISA or SICL Message based instruments are programmed using Agilent VXIplug amp play drivers or using SCPI commands embedded in Agilent VISA or SICL function calls VXIplug amp play drivers for Agilent register based and message based instruments are contained on the Agilent Universal Instrument Drivers CD which ships with each Agilent VXI instrument Opening Instrument Programs which run over the IEEE 1394 interface begin by opening a Sessions session between the VXI instrument and the driver or I O library VISA or SICL An address that includes the interface name and number described in Chapter 2 and the instrument s logical address is used in opening these sessions Following are three segments that open sessions to an E1563A Digitizer in Agilent VXI plug amp play Agilent VISA and SICL programs Agilent VXIplug amp play ViSession vi open device VXIplug amp play session to the E1563 errStatus hpel563 init VXI0 24 INSTR VI FALSE VI FALSE amp vi Chapter 3 VXI Programming U
28. 1 as shown on the following pages When editing a file note the following 1 Add your entry ies below the commented lines 2 The first column must contain an entry Any number of spaces can separate remaining entries on the line Appendix B Editing the Agilent E8491B Resource Manager Configuration 69 Bl HP 1 0 Libs Control amp _O Readme 1 From the O Libraries program i SCPI Readme Ei LAN Server 2 SICL Help VISA Assistant 4 VISA Assistant Help 1 0 Config Interface Configuration Application File Options Help This utility configures 1 0 interfaces It must be run whenever a new 1 0 interface is installed in the computer or when changes need to be made to an existing 1 0 interface To configure a new interface select it in the Available Interface Types list and click on Configure To edit a previously configured interface select it in the Configured Interfaces list and click on E dit Available Interface Types Configured Interfaces SICL Name VISA Name GPIBO VXIO VXI Command Module 2 Select the E8491B interface and then click Edit This brings up the window partial view in Figure B 2 group click O Config Auto Add Figure B 1 Editing Configuration Files from the I O Config Utility 70 Editing the Agilent E8491B Resource Manager Configuration Appendix B Appendix B Advanced Settings YME Bus Request Level Resource Manager Del EE E
29. 432 Figure 3 1 Configuring the Agilent E8491B External Trigger Ports When External Trig In is selected the faceplate Trig In port is configured for the trigger level and state normally high or normally low selected When External Trig Out is selected the faceplate Trig Out port is configured for the state normally high or normally low selected 1 Trigger routing is only available using the Agilent SICL ivxitrigroute function 44 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 Note The I O Config help file associated with the E8491B interface contains additional information on configuring the faceplate trigger ports Triggering Example The following program demonstrates how an external trigger received on the faceplate Trig In port is routed to TTL trigger lines on the VXI backplane TRIGSICL CPP This program demonstrates how trigger signals are generated and routed using the E8491B The program uses SICL functions to generate and route a trigger signal from the face plate Trig Out port to VXI backplane trigger line TTLTRG4 The signal triggers the E1412 multimeter which then takes a burst of 10 readings include sicl h include lt stdio h gt include lt stdlib h gt project files trigsicl cpp sicl32 lib void main void INST e8491 E8491 SI INST e1412 E1412 SI shor
30. 5 Interface Characteristics e eese eee eese e eee eene eene sesono ttn sensa tns s east ea stessa oossoo 65 VXI Characteristics 65 GeNeral 65 CLK 1O e 66 External Trigger Input eese esee eese eee enne n etnia stas ta setas sns s einst es stes s ense tna 66 External Trigger Output eres sees ee eene eene en etiatn setas tn stas s tense es sense tas 66 Trigger Delays 67 jede Mre 67 Power Supply Loading eee eee eee eese eese en etna tn staat ns tasses sense tns 67 Appendix B Editing the Agilent E8491B Resource Manager Configuration 69 iniu 69 Configuration File Overview esee ee eee eee seen etes een seen sensa toss snas tease es etos e tas s tns sno 69 The names cf Configuration File 4 e eeeee eese eene eene ee sense tn natn nena enata ano 72 The oride cf Configuration File 4 eese eee eene eee eese ee etas tn natns sna enata ano 72 The vmedev cf Configuration File 4 eee eee eee ee eee esent n sensa tn ano 72 The cmdrsrvt cf Configuration File 4 eerie eese eene ee nennen natns n enata ano 72 The dynamic cf Configuration File eere eee esee eese eene
31. 8491B Resource Manager Configuration Appendix B Index Agilent E8491B IEEE 1394 PC Link to VXI Configuration and User s Guide A alternate configurations 19 applying power 33 asynchronous data transfers 60 B BIOS 33 Block 36 37 40 block data transfers 36 using Agilent VISA 40 using Agilent VXIplug amp play drivers 37 bus mastering PCI slot 33 C CLK 10 specifications 66 cmadrsrvt cf 72 configuration file overview 69 configuration files cmdrsrvt cf 72 dynamic cf 72 irq cf 73 names cf 72 oride cf 72 ttltrg cf 73 vmedev cf 72 vximanuf cf 73 vximodel cf 73 configuring the E8491B interconnect 24 configuring the Trig In and Trig Out ports 44 connecting the E8491B to the host adapter 18 cooling 67 D data transfer protocol 59 asynchronous transfers 60 fair arbitration 60 data transfers over VXI 60 dynamic cf 72 E E1406 using the E8491B with 19 E8491B configuring 24 editing the configuration 26 Windows 95 platforms 27 examples Agilent VISA block data transfers 40 Agilent VXIplug amp play block data transfers 37 storing readings in shared memory Agilent VISA 50 storing readings in shared memory SICL 54 triggering 45 external trigger input specifications 66 external trigger output specifications 66 F fair arbitration 60 first time configuration 24 H host adapter and interface cable overview 61 Agilent E1406 using the command module
32. Agilent 75000 Series C Agilent E8491B IEEE 1394 PC Link to VXI OO a Configuration and User s Guide Where to Find it Online and Printed Information This manual is available as follows Shipped with the Agilent E8491B Agilent I O Libraries CD ROM World Wide Web at http www agilent com find iolib For related information VXI System installation hardware software VXIbus Configuration Guide Agilent VIC VXI installation software VISA programming information Agilent VISA User s Guide SICL programming information Agilent SICL User s Guide and Agilent SICL Reference Manual Agilent VEE programming information Agilent VEE User s Manual Included on the Agilent Universal Instrument Drivers CD Included on the Agilent I O Libraries CD Tt Agilent Technologies 999 e e ee ae Manual Part Number E8491 90001 Printed in Malaysia E0912 NOTICE In August 2014 Agilent Technologies former Test and Measurement business became Keysight Technologies This document is provided as a courtesy but is no longer kept current and thus will contain historical references to Agilent For more information goto www keysight com KEYSIGHT TECHNOLOGIES Contents Agilent E8491B IEEE 1394 PC Link to VXI Configuration and User s Guide Edition 2 Rev 2 SUI Adi I M 6 WARNINGS n 6 Declaration of Conformity
33. Agilent E8491B Operating System Windows 95 Windows NT Controllers PC based I O Library SICL VISA Backplane PCI Interface IEEE 1394 Maximum I O Speed 200 MHz Pentium PC 400 MHz Selectron Host 16 bit 1 76 MBytes s to PC 2 50 MBytes s to E8491B 32 bit 1 0 MByte s to PC 1 0 MByte s to E8491B Languages C C Visual Basic Agilent VEE LabView General VXI Device Type Message based commander Data transfer bus n a Slot 0 functionality Yes Resource Manager Functionality Yes MXIbus Resource Manager Yes Size C Slots 1 Connectors P1 P2 Shared Memory 128 kBytes VXI busses TTL trigger bus ECL trigger bus C size compatibility n a Specifications 65 CLK 10 External Trigger Input External Trigger Output 66 Specifications Clk In Input TTL Frequency Stability 100 ppm Duty Cycle 50 596 Clk Out Output TTL Frequency Stability 100 ppm Duty Cycle 50 5 Connector SMB on faceplate Levels TTL CMOS ECL 0 to 33V Programmable Threshold 0 to 30V Range Programmable Threshold t0 4V Accuracy Threshold Sensitivity hysteresis 0 5 Vpp maximum 0 1 Vpp minimum Input Load 50 pf 55 kohms Maximum Rate 2MHz Minimum Pulse Width 200 ns Connector SMB on faceplate Levels nominal pul
34. BSUC I P REE AS June 1998 Edition 2 Reo dba eoi me ee IO Vie dU Rt OR June 1999 Edition 2 Rev 2 at irar ead Paces e ue eS er mRNA February 2006 Edition 2 Rev 3 REG Hec eR EENd September 2012 Safety Symbols Instruction manual symbol affixed to product Indicates that the user must refer to Ny Alternating current AC the manual for specific WARNING or CAUTION information to avoid personal Di DC injury or damage to the product NETS irect current DC Indicates hazardous voltages Indicates the field wiring terminal that must tens be connected to earth ground before operating the equipment protects against electrical shock in case of fault Calls attention to a procedure practice or condition that could cause bodily injury or death WARNING Calls attention to a procedure practice or or Frame dona ground a Peu CAUTION condition that could possibly cause damage to SODDeeis TO E eduprientemetar Trete equipment or permanent loss of data WARNINGS The following general safety precautions must be observed during all phases of operation service and repair of this product Failure to comply with these precautions or with specific warnings elsewhere in this manual violates safety standards of design manufacture and intended use of the product Hewlett Packard Company assumes no liability for the customer s failure to comply with these requirements Ground the equipment For Safety Class 1 equipm
35. CL 42 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 Agilent E8491B Triggering Trig Out connectors Table 3 1 summarizes the triggering parameters and capabilities of the E8491B Table 3 1 Agilent E8491B Triggering Parameters Trigger Lines TTLTRG7 TTLTRGO VXI backplane Trigger Levels Trigger levels or pulses can be output on any number of TTLTRG trigger lines Trigger Routing One TTLTRG trigger line can be routed to one ECLTRG trigger line ECLTRG1 ECLTRGO VXI backplane Trigger levels or pulses can be output on any number of ECLTRG trigger lines One ECLTRG trigger line can be routed to one TTLTRG trigger line Trig In Port E8491B faceplate Trig Out Port E8491B faceplate Input trigger levels are TTL ECL CMOS or programmable up to 30V Default assumes TTL low true signal Output trigger level is 5V low true default and can be pulled to 30V Input triggers can be routed to any number of TTLTRG trigger lines and to any number of ECLTRG trigger lines One TTLTRG or ECLTRG trigger line can be routed to the Trig Out port utility The E8491B Trig In and Trig Out ports are configured using the Agilent I O Libraries I O Config Using Triggers The triggering functionality of the E8491B is accessed through the following Agilent VISA and SICL functions Chapier 3 Asserting Triggers Agilent VISA
36. Configurations in Chapter 2 page 19 The Agilent l O rhe software required to use the IEEE 1394 interface in a VXI system is Libraries contained in the Agilent I O Libraries and Agilent VXIplug amp play Drivers The software supports the Windows 95 and Windows NT platforms The software stack shown below shows the relationship of the VXIplug amp play drivers to Agilent VISA SICL to the host adapter drivers and to the VXI instruments Notice that Agilent s implementation of the IEEE 1394 interface requires Agilent VISA and will not work with the VISA supplied by other vendors Development Environment C C Visual BASIC HP VEE HP Universal Instrument HP VXI plug amp play Instrument Drivers Drivers HP VISA HP SICL HP _O Libraries Host Adapter Drivers VXI Instruments Figure 4 6 System Software and Drivers Most application programs are written using the instruments VXIplug amp play drivers The plug amp play driver functions make subsequent calls to the VISA functions and so on Message based instruments can be programmed at the Agilent VISA SICL level by embedding SCPI commands in the Agilent VISA SICL functions 64 IEEE 1394 Fundamentals and Interface Overview Chapter 4 Appendix A Specifications Interface Characteristics VXI Characteristics Appendix A The following specifications define the operating and performance characteristics of the
37. E8491B operation About Agilent I O Libraries Control Provides the Agilent I O Libraries Control version number Step 5 Installing There are no SCPI instrument drivers installed in or downloaded to the i E8491B While this does not impact message based instruments Agilent VXIp lug amp p la register based instruments in IEEE 1394 based systems are usually y Instrument programmed using their VXIplug amp play drivers Drivers The Agilent VXIplug amp play drivers are located on the Agilent Universal Instrument Drivers CD which ships with the E8491B and with each VXI instrument The installer program on the driver CD is similar to that on the I O libraries CD Once the drivers have been installed reboot the PC Note If you are updating an existing VXI system to use the E8491B and IEEE 1394 serial bus we highly recommend that you obtain the latest version of the Agilent VXIplug amp play drivers Information on the latest drivers available can be found on the World Wide Web at http www agilent com go inst drivers 28 Interface Installation and Configuration Chapter 2 Step 6 Verifyi ng the Once you have installed the hardware the I O Libraries the VXIplug amp play Installation drivers and have re booted the PC you should now verify the installation This ensures that you can communicate with instruments in the system over the IEEE 1394 interface Two ways to check your system are to run an instrument s soft front panel
38. N In Seconds External Trig In C Dut State TTL IHL Use all of 424 432 C CMOS lt ECL Level Dther fic Enable External Clock VME Bus Timeout BTO Auto C On C Off 3 Check Enable Advanced and then click Resource Manager amp Resource Manager This utility allows you to edit the Resource Manager configuration files and or to run the Resource Manager m Choose a configuration function VICES Add delete values to be written to logical address space Add delete VME devices that use resources Edit commander servant hierarchy E dit list of dynamically configured devices Edit mapping of VI devices to interrupt lines Edit mapping of VXI devices to ttl trigger lines 4 Select the portion of the configuration to edit and then click Edit Figure B 2 Editing Configuration Files from the I O Config Utility contd RM Output Done Editing the Agilent E8491B Resource Manager Configuration 71 The names cf The names cf file is a database that contains a list of symbolic names to Configuration File assign V XI devices that have been configured The ivxirm utility reads the model id number from the VXI device and the ivxisc utility uses that information and this file to print out the V XI device symbolic name If you add a new VXI device to your system that is not currently in the database you may want to add an entry to this file This fil
39. VISA interface names and numbers do not have to be the same 26 Interface Installation and Configuration Chapter 2 Editing the E8491B Configuration on Windows 95 Platforms Chapter 2 Make a note of the interface name and number as they are used in addressing instruments in the mainframe see Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus for more information The Help button provides information on each item in the window After installing the Agilent I O Libraries and configuring the E8491B on the Windows 95 platform an Agilent icon is placed in the bottom right corner of your PC monitor Figure 2 13 i Hide Resource Manager Messages Edit VXI Resource Manager Refresh VXl Resource Manager Run VISA Assistant Run 1 0 Config View Documentation Run Event Viewer VISA Logging Hide HP 1 0 Control Exit About HP 1 0 Libraries Control Me 3 59PM J Figure 2 13 Editing Your Configuration on Windows 95 Platforms Clicking on the icon brings up the following menu items Hide Resource Manager Messages Enable disable displaying resource manager messages during mainframe power on or during a E8491B reset Edit VXI Resource Manager Allows you to edit the Resource Manager configuration files and or to run the Resource Manager Refresh VXI Resource Manager Resets and runs the Resource Manger on all VXI mainframes in your system You must refresh re run the resource
40. YOU U S Government Restricted Rights The Software and Documentation have been developed entirely at private expense They are delivered and licensed as commercial computer software as defined in DFARS 252 227 7013 Oct 1988 DFARS 252 211 7015 May 1991 or DFARS 252 227 7014 Jun 1995 as a commercial item as defined in FAR 2 101 a or as Restricted computer software as defined in FAR 52 227 19 Jun 1987 or any equivalent agency regulation or contract clause whichever is applicable You have only those rights provided for such Software and Documentation by the applicable FAR or DFARS clause or the standard software agreement for the product involved Agilent E8491B IEEE 1394 PC Link to VXI Configuration and User s Guide Edition 2 Rev 3 RES Agilent Technologies Copyright 1999 2006 Agilent Technologies Inc All Rights Reserved Documentation History All Editions and Updates of this manual and their creation date are listed below The first Edition of the manual is Edition 1 The Edition number increments by 1 whenever the manual is revised Updates which are issued between Editions contain replacement pages to correct or add additional information to the current Edition of the manual Whenever a new Edition is created it will contain all of the Update information for the previous Edition Each new Edition or Update also includes a revised copy of this documentation history page Edition M ere RAE dRSE
41. addressing path define E1563 VXI0 64 INSTR VXI addressing prototypes void check ViSession vi ViStatus error void main void ViSession vi ViStatus errStatus Vilnt16 rdgs 2000 Vilnt16 dataPtr pointer to cast readings to 16 bit integers ViReal64 range range variable for reading conversions int i long dataArrayLen 2000 return 2 000 readings using hpel1563 fetchAll Q Vilnt32 numRdgs ViChar err message 256 dataPtr rdgs set pointer to rdgs array Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus 37 open a VXIplug amp play device session and reset the digitizer errStatus hpel1563 init E1563 0 1 amp vi if VI SUCCESS errStatus hpel563 error message vi errStatus err message printf Unable to open s n E1563 printf hpel1563 init returned error message s n err message return enable digitizer error detection hpel563 errorQueryDetect vi 1 set a 5s timeout period to allow functions to complete errStatus hpel1563 timeOut vi 5000 check vi errStatus configure the digitizer to take 2 000 post trigger readings not to exceed 4V on channel 1 errStatus hpel563 configure vi 1 4 0 2000 1 check vi errStatus set an immediate trigger errStatus hpel563_trigEvent vi 1 hpel563 TRI check vi errStatus
42. ainframe are grounded through the mainframe chassis During installation tighten the instruments retaining screws to secure the instrument to the mainframe and to make the ground connection Interface Installation and Configuration Chapter 2 Figure 2 9 Installing A and B size VXI Instruments Chapter 2 Interface Installation and Configuration 23 Step 4 Installi Ng The Agilent I O Libraries CD contains the software required to use the IEEE the Agil ent I O 1394 interface in a VXI system It also includes the OHCI compatible host adapter drivers Libraries Note Refer to Chapter 4 IEEE 1394 Fundamentals and Interface Overview for more information on the Agilent I O Libraries and related software Note If your PC indicates that new hardware has been found after applying power do the following a Select Driver from disk provided by hardware manufacturer Press OK b Insert the I O Libraries CD in your CD ROM drive c Point or browse to the drive letter for the CD ROM Press OK d You will be instructed to install the driver that matches the hardware Begin by performing the following steps 1 Apply power to your PC Close all open applications and insert the I O Libraries CD into your PC CD ROM drive Inserting the CD automatically activates the installer If the installer does not activate select Start Run and type drive SETUFP EXE where drive designates the CD
43. anager via software included with the I_O libraries Interconnect The E8491B has 128 kBytes of shared RAM and contains many of the clock and triggering features found on the Agilent E1406A Command Module a VXI resource manager slot 0 device common in many GPIB based systems A VXI mainframe with the E8491B in slot 0 can also be powered on off at any time without affecting other mainframes in the system The E8491B IEEE 1394 interconnect links the VXI backplane to the IEEE 1394 bus However the E8491B and the IEEE 1394 bus do not extend the VXI backplane between frames in multi frame VXI systems This means that the multimeter and multiplexers in a VXI scanning multimeter for example must be installed in the same mainframe Devices sharing the VXI Local bus must also be installed in the same mainframe VXI Local bus 62 IEEE 1394 Fundamentals and Interface Overview Chapter 4 Annunciators Failed a hardware failure was detected in the HP E8491B or the E8491B is performing a self test IEEE 1394 indicates data traffic over the IEEE 1394 bus SYSFAIL asserted during a VXI instrument self test VXI indicates data traffic across the mainframe s VXI backplane Trigger Ports The E8491B is capable of sourcing TTL level triggers and receiving TTL CMOS ECL or user specified levels up to 30V Trigger signals can be generated internally and distributed over the VXI backplane and to external de vices or the triggers can
44. anager will set up the commander servant hierarchy according to the commander s logical addresses and the servant area switch However you can use this file to override the default based on the commander s servant area This file should only contain changes from the default This file is edited by selecting Edit commander servant hierarchy in the Resource Manager window Figure B 2 The dynamic cf The dynamic cf file contains a list of VXI devices to be dynamically Configuration File configured You only need to add entries to this file if you want to override the default dynamic configuration assignment by the resource manager Normally if you have a dynamically configurable device and the logical address is set at 255 the resource manager will assign the first available address However if a dynamically configurable device has an entry in this file the resource manager will assign the address listed in the file This file is edited by selecting Edit list of dynamically configured devices in the Resource Manager window Figure B 2 72 Editing the Agilent E8491B Resource Manager Configuration Appendix B The irq cf Configuration File The ttltrig cf Configuration File The vximanuf cf Configuration File The vximodel cf Configuration File Utility Function Appendix B Overview Using ivxisc The irg cf file is a database that maps specific interrupt lines to VXI interrupt handlers If you have non programmable i
45. and or to run the Resource Manager m Choose a configuration function Add delete veu to gm en to logical Mee space Add delete VME devices that use resources Edit commander servant hierarchy E dit list of dynamically configured devices Edit mapping of VX devices to interrupt lines Edit mapping of V Xl devices to ttl trigger lines Edit Click RM Output to view the resource manager output Figure 2 16 Viewing the Resource Manager Output using I O Config Chapter 2 Interface Installation and Configuration 31 Figure 2 17 is a partial listing of a typical resource manager output Bl ivxisc txt Notepad CE X File Edi Search Help VXI Current Configuration UNI Bus 8 Device Logical Addresses 6 25 64 Slots 612 3 5 6 7 8 9 16 11 12 Empty 0 0 Q0 0 00000 0 0 Single Device X Multiple Devices UXI Device Table Name LADD Slot Bus Manufacturer E8491ctlir 8 Hewlett Packard E8491 1394 UXI Contr 8 Hewlett Packard E1345 16 ch 3W rela 4 8 Hewlett Packard E1563A 2 Channel 366K slot number unknown UME Device Table Name Bus Slot Space Size No UME cards configured Failed Devices Name Bus Slot Manufacturer No FAILED devices detected Figure 2 17 Typical Resource Manager Output partial listing 32 Interface Installation and Configuration Chapter 2 Troubleshooting Installation Problems Running the Resource Manager Chapter 2 Note The following
46. ased instruments programming 35 resource manager 33 viewing the output 30 resource manager configuration editing 26 running the resource manager 33 S shared memory 47 locating using Agilent VISA 48 locating using SICL 48 shared memory examples 49 SICL programs porting for use with the E8491B 36 soft front panels for installation verification 29 specifications CLK 10 66 cooling 67 external trigger input 66 external trigger output 66 general 65 interface characteristics 65 power supply loading 67 trigger delays 67 storing readings in shared memory Agilent VISA example 50 SICL example 54 T Trig In specifications 66 Trig In port configuring 44 Trig Out port configuring 44 specifications 66 trigger delay specifications 67 triggering 43 example 45 pull up 47 troubleshooting installation problems 33 ttltrg cf 73 turning on the mainframe 33 U Using 47 using Agilent E8491B shared memory 47 using instrument soft front panels 29 using the Agilent E8491B with the Agilent E1406 Command Module 64 utility functions 73 iclear 75 ivxisc 73 V verifying the installation 29 viewing the resource manager output 30 vmedev cf 72 VXI characteristics specifications 65 VXI data transfers 60 VXI instruments installation 20 installing A B size 22 installing C size 21 vximanu cf 73 vximodel cf 73 VXI MXI systems using the E849 B with 19 VXIplug amp play drivers in
47. devices including 16 E8491Bs are allowed per bus segment One host adapter represents one bus segment There is a maximum of 16 hops between any two devices The bus cable length cannot exceed 72 meters between any two devices Live hot connections A VXI mainframe anywhere in the configuration can be turned on off without affecting the other mainframes The IEEE 1394 bus automatically reconfigures itself any time a VXI mainframe or other device 1s added or removed It is best to do this however 1f there are no data transactions taking place elsewhere in the system 58 IEEE 1394 Fundamentals and Interface Overview Chapter 4 Optimizing the Configuration IEEE 1394 Data Transfer Protocol I O performance is impacted slightly by the hardware configuration The VXI mainframe closest to the PC root node has the highest priority For example if instruments in VXI mainframes 1 and 3 Figure 4 1 contend for the bus at the same time the root node will grant mainframe 1 access to the bus first However the bus s fair arbitration protocol covered in the next section ensures that each device has equal access to the bus and that devices closer to the root are not continually granted the bus Data transfer over the IEEE 1394 bus can be either asynchronous or isochronous Agilent s IEEE 1394 based VXI systems use asynchronous data transfers and a fair arbitration protocol to ensure each VXI mainframe has equal access to the b
48. dification or misuse d operation outside of the published environmental specifications for the product or e improper site preparation or maintenance 7 TO THE EXTENT ALLOWED BY LOCAL LAW THE ABOVE WARRANTIES ARE EXCLUSIVE AND NO OTHER WARRANTY OR CONDITION WHETHER WRITTEN OR ORAL IS EXPRESSED OR IMPLIED AND AGILENT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OR CONDITIONS OF MERCHANTABILITY SATISFACTORY QUALITY AND FITNESS FOR A PARTICULAR PURPOSE 8 Agilent will be liable for damage to tangible property per incident up to the greater of 300 000 or the actual amount paid for the product that is the subject of the claim and for damages for bodily injury or death to the extent that all such damages are determined by a court of competent jurisdiction to have been directly caused by a defective Agilent product 9 TO THE EXTENT ALLOWED BY LOCAL LAW THE REMEDIES IN THIS WARRANTY STATEMENT ARE CUSTOMER S SOLE AND EXLUSIVE REMEDIES EXCEPT AS INDICATED ABOVE IN NO EVENT WILL AGILENT OR ITS SUPPLIERS BE LIABLE FOR LOSS OF DATA OR FOR DIRECT SPECIAL INCIDENTAL CONSEQUENTIAL INCLUDING LOST PROFIT OR DATA OR OTHER DAMAGE WHETHER BASED IN CONTRACT TORT OR OTHERWISE FOR CONSUMER TRANSACTIONS IN AUSTRALIA AND NEW ZEALAND THEWARRANTY TERMS CONTAINED IN THIS STATEMENT EXCEPT TO THE EXTENT LAWFULLY PERMITTED DO NOT EXCLUDE RESTRICT OR MODIFY AND ARE IN ADDITION TO THE MANDATORY STATUTORY RIGHTS APPLICABLE TO THE SALE OF THIS PRODUCT TO
49. e is edited by selecting Add delete symbolic names of VXI devices in the Resource Manager window Figure B 2 The oride cf The oride cf file contains values to be written to logical address space for Configuration File register based instruments This data is written to A16 address space after the resource manager runs but before the system s resources are released This can be used for custom configuration of register based instruments every time the resource manager runs This file is edited by selecting Add delete values to be written to logical address space in the Resource Manager window Figure B 2 The vmedev cf The vmedev cf file contains a list of VME devices that use resources in the Configuration File VXI cardcage Since the resource manager is unable to detect VME devices the resource manager uses this information to determine such things as the slot number where the VME device is located what type A16 A24 or A32 and how much memory it uses and what interrupt lines it uses Additionally the resource manager verifies that multiple resources aren t allocated This file is also used by the ivxisc utility to print out information about the devices This file is edited by selecting Add delete VME devices that use resources in the Resource Manager window Figure B 2 The cmdrsrvt cf The cmdrsrvt cf file contains a commander servant hierarchy other than the Configuration File default for the VXI system The resource m
50. ee teen eene nete tn nnn 13 MS CGEOPOBNO 17 Step 2 Installing the Agilent E8491B Interconnect eee ee eese eene enne 17 Alternate Configurations eerie eee eee ee enses tenentes stata s tosta sensa enata sno 19 MIS CGEOPOBNOU 20 Step 3 Installing V XI Instruments 4 esee eee eee een seen nennen asa setas tene to aeta setas sno 20 Installing C size Instruments 4 eese eese eene eene ee nennen staat tn setae toss snas tns sno 21 Installing A and B size Instruments 4 eres eee e eene tenete seen aetas tasso netus sno 22 Step 4 Installing the Agilent I O Libraries 4 ee eee ee eee eene eene enero enne nuuno 24 Configuring the Agilent E8491B Interconnect creer esee esee ee eene tnn 24 Editing the Agilent E8491B Configuration e eee eee eee eee eene enses nenne 26 Editing the Agilent E8491B Configuration on Windows 95 Platforms 27 Step 5 Installing Agilent VXIplug amp play Instrument Drivers ees 28 Step 6 Verifying the Installation eec ee esee eee eerie eene eren eerta neenon ase tn seta 29 Using Instrument Soft Front Panels eee eere e eese eee e ee eese seen annu 29 Viewing the Resource Manager Output leere eee eee eene een eene en atta atn netnn 30 Troubleshooting Installation Problems e
51. ends after each device has had an opportunity to access to the bus and the arbitration reset gap which is longer than the subaction gap occurs The arbitration reset gap re enables each device for arbitration during the next fairness interval VXI Data Transfers To take advantage of the IEEE 1394 data transfer protocol large amounts of data should be transferred between V XI instruments and the PC using block transfers During a block transfer data is divided into the packets described previously the number of packets depends on the amount of data and whether a 200 Mbit or 400 Mbit host adapter is used Compared to protocols that transfer data one byte or one word at a time transfer speed between the instrument and the PC is increased because the IEEE 1394 protocol overhead is associated with the fairness interval and with each packet rather than with each byte or word transferred Thus transfer speeds bits second over the IEEE 1394 bus increase as the amount of data transferred block size increases 60 IEEE 1394 Fundamentals and Interface Overview Chapter 4 OHCI Com patible The OHCI compatible PCI to IEEE 1394 host adapter is a PC plug in card capable of transferring data at up to 400 MBits second The adapter has three Host Adapter and external IEEE 1394 ports Each OHCI adapter represents one bus segment Interface Cable capable of supporting up to 63 nodes If required the OHCI adapter can supply 12V with a maximum total current of 0
52. ent equipment having a protective earth terminal an uninterruptible safety earth ground must be provided from the mains power source to the product input wiring terminals or supplied power cable DO NOT operate the product in an explosive atmosphere or in the presence of flammable gases or fumes For continued protection against fire replace the line fuse s only with fuse s of the same voltage and current rating and type DO NOT use repaired fuses or short circuited fuse holders Keep away from live circuits Operating personnel must not remove equipment covers or shields Procedures involving the removal of covers or shields are for use by service trained personnel only Under certain conditions dangerous voltages may exist even with the equipment switched off To avoid dangerous electrical shock DO NOT perform procedures involving cover or shield removal unless you are qualified to do so DO NOT operate damaged equipment Whenever it is possible that the safety protection features built into this product have been impaired either through physical damage excessive moisture or any other reason REMOVE POWER and do not use the product until safe operation can be verified by service trained personnel If necessary return the product to an Agilent Technologies Sales and Service Office for service and repair to ensure that safety features are maintained DO NOT service or adjust alone Do not attempt internal service or adjustment unless another
53. erform block transfers over the IEEE 1394 serial bus viMovelIn8 viMoveOut8 viMove viMoveln16 viMoveOut16 viMoveAsync viMoveln32 viMoveOut32 36 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 The following extended SICL function is unique to the E8491B must be used on the E8491B and is used for block transfers over the bus iblockmovex Additionally the extended SICL functions shown below must be used when porting SICL programs to the IEEE 1394 bus from other I O interfaces imapx iunmapx ipeekx8 ipeekx16 ipeekx32 ipokex8 ipokex16 ipokex32 These functions are covered in detail in the SICL documentation The following examples demonstrate how to set up and perform block transfers using Agilent VXIplug amp play and Agilent VISA functions Block Transfers using This program performs a block transfer of 2 000 readings using the Agilent VXIplug amp play E1563A digitizer and its VXIplug amp play driver Drivers 1563VPNP CPP This program transfers a block of 2 000 readings from the Agilent E1563 digitizer to the computer using the VXIplug play driver s hpel563 fetchAll Q function 2 000 readings is the maximum number of readings that can be transferred using the function include hpel563 h include the driver header file include lt stdio h gt include lt stdlib h gt include lt windows h gt c project files 1563vpnp cpp hpel563 1lib Wen Specify the
54. eryDetect vi 1 set a 5s timeout period to allow functions to complete errStatus hpel410_timeOut vi 5000 check vi errStatus configure the multimeter for DCV measurements Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus 51 errStatus hpel410 confVoltDc vi check vi errStatus turn off autorange errStatus hpel410 voltDcRang vi check vi errStatus set a 30V DCV range 0 30 set a 10 us aperture time errStatus hpel410 voltDcAper vi check vi errStatus 10 0e 6 set 8000 readings errStatus hpel410 sampCoun vi check vi errStatus 8000 store the readings in E8491B shared memory specify the errStatus hpel410 memVmeAddr vi check vi errStatus E8491B shared memory base address start addr specify the amount of memory required 8000 readings 8 bytes reading errStatus hpel410 memVmeSize vi check vi errStatus 64000 enable the readings to be stored errStatus hpel410 memVmeStat vi 1 disable multimeter error detection hpel410 errorQueryDetect vi 0 initiate the multimeter to take the readings errStatus hpel410 initImm vi to al 30000 pause 30s low readings to complete Sleep transfer the 8 000 readings fron the VISA function viMoveIn8 err viMoveIn8 fw VI A24 SPACE 0 if err
55. ese e eene eee eene tena en sinn tna 33 Running the Resource Manager 4 e eese eee eese eene eene en seta senatus east ta setae ta seen san 33 Contents 1 2 Contents Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus cereeeeeee eee eene 35 irndjuoiuu 35 Programming Register Based and Message Based V XI Instruments 35 Opening Instrument Sessions eee sees eene eese en sensn sta atta setas toss tasses stesso setas 35 Optimizing Programs 36 Block Data Transfers scssssscssscssscssscssssscssnssescscssscscssscssessssssessssoesscssesens 36 Block Transfers using Agilent VXIplug amp play Drivers eere 37 Block Transfers using Agilent VISA eere esee eene eese ee nete enne nn enata ano 40 Agilent E8491B Triggering eese eee ee ee ee eene entente setas tona tn setae ta stessa sons sess 5030 43 Using Triggers RR 43 Configuring the E8491B Trig In and Trig Out Ports eere 44 Triggering Example tees eese e esee eese ee seen eene ss osve sensns ps neta senses sensns tn 45 Trigger Pull B T 47 Using Agilent E8491B Shared Memory eere eee eene eene en sten setae tn setas etna ano 47 Locating E8491B Shared Memory eee eee eren eese teen ntes en enne tn atn ano 47 Example Programs siccscc
56. f Agilent receives notice of such defects during the warranty period Agilent will at its option either repair or replace products which prove to be defective Replacement products may be either new or like new 2 Agilent warrants that Agilent software will not fail to execute its programming instructions for the period specified above due to defects in material and workmanship when properly installed and used If Agilent receives notice of such defects during the warranty period Agilent will replace software media which does not execute its programming instructions due to such defects 3 Agilent does not warrant that the operation of Agilent products will be interrupted or error free If Agilent is unable within a reasonable time to repair or replace any product to a condition as warranted customer will be entitled to a refund of the purchase price upon prompt return of the product 4 Agilent products may contain remanufactured parts equivalent to new in performance or may have been subject to incidental use 5 The warranty period begins on the date of delivery or on the date of installation if installed by Agilent If customer schedules or delays Agilent installation more than 30 days after delivery warranty begins on the 31st day from delivery 6 Warranty does not apply to defects resulting from a improper or inadequate maintenance or calibration b software interfacing parts or supplies not supplied by Agilent c unauthorized mo
57. figuration later in this chapter 5 Set the E1406 servant area to include the logical addresses of those instruments it is to control Note E1406 servant area E1406 logical address 1 through E1406 logical address servant area switch setting 6 Install the E1406 in slot O If the E1406 is not the slot 0 device its slot 0 functionality must be disabled From step 2 above set the E1406A Slot 0 and System Controller switches to Disable From step 4 set its VME BTO Disable switch 1 and ensure that VME Bus Timeout BTO on the E8491B is set to On If you are using the E8491B in a configuration with multiple mainframes linked with VXI MXI extender cards the E8491B must be the resource manager however VME Bus Timeout BTO must be disabled off Step 4 above Again the E8491B is generally installed in mainframe slot 0 so that it also provides the system s slot 0 functionality Refer to the MXI documentation for configuration guidelines based on where the E8491B is installed Where to go Next If you are installing the IEEE 1394 interface for the first time Continue with Step 3 Installing VXI Instruments If your VXI instruments are already installed Proceed to Step 4 Installing the Agilent I O Libraries Step 3 Installi hg Generally any VXI instrument can be installed in any slot other than slot 0 VXI Instruments When installing instruments notice that the E8491B and the IEEE 1394 bus
58. hapter 3 Trigger Pull Up E8491B Trigger signals output from the E8491B Trig Out port can be pulled up to 30V as shown in Figure 3 2 V Pull Up Voltage 30V Max TRIG OUT SMB Connector Output Trigger State LH Normally Low High True Output Trigger State HL Normally High Low True Default Figure 3 2 Using a Pull Up on the Agilent E8491B Trig Out Port Using Agilent E8491B Shared Memory Locating E8491B Shared Memory Chapter 3 The E8491B has 128 kBytes of shared VME memory This memory is in the E8491B s A24 address space and is available to those V XI instruments capable of mapping and accessing A24 memory Shared memory is often used as a temporary storage space for data transfers between the PC and VXI instruments Agilent instruments with the ability to store and receive data from shared memory generally implement the SCPI Standard Commands for Programmable Instruments MEMory VME subsystem shown below MEMory VME SIZE MEMory VME ADDRess MEMory VME STATe Corresponding Agilent VXIplug amp play functions are hpexxxx mem VmeAddr hpexxxx memV meSize hpexxxx memV mesStat where xxxx is the instrument model number In order to use the E8491B shared memory you must first locate the starting address of the memory as mapped by the resource manager see Running the Resource Manager in Chapter 2 The address varies from system to system depending on
59. have one pair of ISA and PCI slots close to each other This saves space and allows you to install either an ISA card or a PCI card in the slot pair 3 Remove the corresponding expansion slot cover from the computer chassis Figure 2 3 expansion slot cover Figure 2 3 Removing the PC Expansion Slot Cover Chapter 2 Interface Installation and Configuration 15 4 Align the bus contacts on the bottom of the host adapter with the PCI bus slot Carefully but firmly press the adapter into the slot Host Adapter Figure 2 4 Installing the Host Adapter 5 Secure the host adapter bracket to the computer chassis with the screw from the expansion slot cover removed in step C Connecting the Power Cable 6 Connect the power cable between the adapter and the PC as shown in Figure 2 5 This provides power from the adapter to devices along the interface via the interface cable This allows you to cycle power on any VXI mainframe in multi frame systems without affecting other frames The power is also available to other IEEE 1394 devices that may be part of the interface network The host adapter is capable of supplying 12V with a maximum current draw of 0 5 amps total to all three IEEE 1394 connectors 16 Interface Installation and Configuration Chapter 2 Host Adapter Power In From System 12V DC Power Supply Power Connector Al Power Out To Disk Dr
60. information on installing VXI instruments installing Agilent VXIplug amp play drivers and on verifying the system Introduction 11 Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus Chapter 4 IEEE 1394 Fundamentals and Interface Overview Appendix A Specifications Appendix B Editing the E8491B Resource Manager Configuration Additional Information Note 12 Introduction This chapter contains the information necessary to begin communicating with VXI instruments through the E8491B and IEEE 1394 serial bus The chapter contains information on optimizing system performance using block data transfers and also covers triggering and using E8491B shared memory This chapter describes the IEEE 1394 serial bus and how it is implemented in Agilent VXI systems It defines the bus terminology and data transfer protocol Appendix A contains the operating and performance specifications of the E8491B Appendix B contains information on editing your VXI system configuration as set by the resource manager It describes selected configuration files and utility functions used to view and modify your configuration Programming the E8491B is through Agilent VISA and Agilent SICL functions Although this manual identifies the specific functions used you will need to refer to the Agilent VISA and Agilent SICL manuals for detailed information Also included with the Agilent I O Libraries is the utility I O Config This u
61. isccssnssecsesvanteosseaseasssateadssectesnsscsoasdaniansseascasdastasassaccesnssaesans 49 Storing Readings in Shared Memory Agilent VISA Example 50 Storing Readings in Shared Memory SICL Example 54 Chapter 4 IEEE 1394 Fundamentals and Interface Overview eere 57 Using this Chapter 57 IEEE 1394 Topology and Terminology ccccccsscscscscerscscssscsssesssescssscsssseesees 57 Features of the IEEE 1394 Bus eere esee ee eene nennen enn sa sten s tene to setas stas sno 58 Optimizing the Configuration eee eee esee essen eene sten sten to setas senses season 59 IEEE 1394 Data Transfer Protocol crees eese eene nein eite tn sten atentos tas e tns eno 59 Asynchronous Data Transfers e eee eee eee ee seen esee einen atta atentos tns stna ano 60 Fair Arbitration Protocol eese eee eee entes eene tenens ense tn assess esatta sense tns 60 VXI Data Transfers E 60 OHCI Compatible Host Adapter and Interface Cable eere 61 The Agilent E8491B PC to VXI Interconnect cccccssscsscssscsscscssccssssesssenssoees 62 Using the Agilent E8491B with the E1406 Command Module 64 The Agilent I O Libraries scscsccsssccssssssssssssscssssscsscsessensescesesssssssessssecsscssesseees 64 Appendix A Mjsulse DID 6
62. itration sequence the period when a device requests control of the bus in order to transmit a data packet data packet the data packet consists of a data prefix that contains information about the transaction the data itself e g V XI instrument commands and a data end signal The maximum packet size is 2 kByte for 400 Mbit adapters such as the adapter supplied with the E8491B acknowledgement a code returned by the addressed data destination indicating the action taken by the receiver The periods between subactions are called subaction gaps The subaction gap allows devices that have not had control of the bus during the current fairness interval to arbitrate for control Fair Arbitration Protocol The fair arbitration protocol is based on the fairness interval shown in Figure 2 A fairness interval consists of one or more subactions in which data packets are transferred over the bus A fairness interval is as follows 1 The interval begins when devices E8491B s arbitrate for control of the bus 2 When a device is granted control it transfers its data packet and is then disabled from arbitrating until the next fairness interval 3 A subaction gap occurs after the previous data packet is transferred During this period remaining devices arbitrate for the bus The next device granted the bus transfers its data packet and is then disabled from arbitrating until the next fairness interval 4 The fairness interval
63. ives Figure 2 5 Connecting the Power Cable Between the PC and the Host Adapter 7 Replace the computer cover Connect one end of the interface cable to either adapter external connector Where to go Next f you are installing the IEEE 1394 interface for the first time Continue with Step 2 Installing the E8491B Interconnect If the E8491B and your VXI instruments are already installed Proceed to Step 4 Installing the Agilent I O Libraries Note that the Agilent I O Libraries contain the OHCI compatible host adapter drivers Note Referto Chapter 4 IEEE 1394 Fundamentals and Interface Overview for more information on the OHCI compatible PCI to IEEE 1394 host adapter Step 2 Installing The E8491B interconnect links the IEEE 1394 bus to the backplane of the VXI mainframe The E8491B is a C size device with VXI Resource the E8491B Manager and Slot 0 capability Interconnect There are no configuration switches on the E8491B The device s logical address is 0 and it provides the system s resource manager functionality via software that is part of the Agilent I O Libraries Its V XI servant area is 255 therefore it is the interface to all VXI devices with logical addresses between 1 and 255 The E8491B is normally but not required to be installed in mainframe slot 0 Note Referto Alternate Configurations on page 19 for information on using the E8491B with the Agilent E1406 Command Module and using it in
64. l up to 5V Maximum External Pull Up 4 30V Sink Current 10 mA V lt 0 4V or 150 mA Vg lt 1 0V Appendix A Trigger Delays Cooling Power Supply Loading Appendix A Maximum delay from TTLTRG to 60 ns ECLTRG Maximum delay from ECLTRG to 60 ns TTLTRG Maximum delay from Trig In port 300ns to ECLTRG or TTLTRG Maximum delay from TTLTRG or 100 ns ECLTRG to Trig Out port Watts slot 20W A P mm H50 0 10 Air flow liters s 2 0 Ipm amps lpm amps 5V 2 5 0 001 12V 0 35 0 050 12V 0 015 0 001 24V 0 0 0 0 24V 0 0 0 0 5 2V 0 180 0 001 2V 0 360 0 001 Specifications 67 68 Specifications Appendix A Appendix B Editing the Agilent E8491B Resource Manager Configuration Introduction The resource manager functionality provided through the Agilent E8491B configures your VXI system based on rules specified by the VXI standard The configuration can be viewed or modified through the configuration files and utility functions outlined in this appendix Configuration File Configuration files cf extension are placed in the lt drive gt siclnt defaults Overview sic195 defaults directory when the Agilent I O Libraries are installed Except where noted the following files can be edited from the Agilent I O Libraries I O Config utility Figure B
65. lated hardware The contents of the chapter include IEEE 1394 Topology and Terminology 37 IEEE 1394 Data Transfer Protocol 59 The OHCI Compatible Host Adapter and Interface Cable 61 The Agilent E8491B PC to VXI Interconnect 62 The Agilent I O Libraries lesse 64 IEEE 1394 Topology Optimizing the IEEE 1394 bus must include an understanding of the and Terminolo gy topology and terms associated with its use Figure 4 1 shows a VXI system consisting of a PC and three VXI mainframes interconnected with the IEEE 1394 bus PC w IEEE 1394 to PCI host adapter VXI mainframe 1 VXI mainframe 3 parent VXI mainframe 2 EB491A IEEE 1394 to VXI interconnect Figure 4 1 IEEE 1394 Topology and Terms Chapter 4 IEEE 1394 Fundamentals and Interface Overview 57 The terms shown in Figure 4 1 are defined in the following table Table 4 1 Definition of Terms Host Adapter Links the computer s PCI bus to the IEEE 1394 interface To use a host adapter computers must be PCI Rev 2 0 compliant Interconnect E8491B Links the IEEE 1394 interface to the VXI backplane Provides the 1394 to VXI backplane s clock and trigger resources Root Node Each device E8491B on the bus is a node In VXI systems
66. list of troubleshooting items may help you get your E8491B interface working properly if you have encountered problems verifying installation 1 It is very important that you upgrade the PC BIOS to the latest version your PC manufacturer provides whether your PC is new or old Many early versions of the PCI BIOS contained bugs Upgrading to the latest version of BIOS will eliminate those bugs upgraded by the new BIOS A BIOS upgrade and a video driver upgrade may be required to fix PCI related problems even on a new PC 2 Make sure the PCI BIOS is correctly configured New PC s have a BIOS flag that usually reads Plug amp Play OS or Running Windows 95 This must be set appropriately for the OS you are using Win 95 is a plug amp play OS whereas Win NT is not 3 The E8491B requires installation of the PCI to IEEE 1394 host adapter card in a bus mastering PCI slot Consult your PC s user manual to determine which slots are bus mastering it is possible that all slots are bus mastering 4 In addition to the above you may need to move the E8491B to a separate IRQ line in the PC PCI allows up to four devices sharing an IRQ line However due to bugs in some cards this doesn t always work and you may need to have one IRQ per card Moving the IRQ is not easy and whether it can be done will depend on which operating system you are using and on the details of the BIOS implementation of your PC The I O Libraries Control utility must be r
67. lt drive gt siclnt bin or sicl95 bin directory This utility is an executable that is used with the SICL logical unit number see Editing the E8491B Configuration in Chapter 2 to return the configuration output of the resource manager Again Figure 3 3 shows a partial listing of the output Note Referto Appendix B for additional information on using ivxisc and for an example of the complete configuration output 48 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 Commander Servant Hierarchy E849ictlr Device Name 6x266606 Bx21ffff E849ictlr A32 Device Name No devices mapped into A32 space Interrupt Request Lines Handler Interrupter 4 C SICLNT bin gt Starting address of E8491B shared memory hexadecimal Figure 3 3 Partial Listing of Resource Manager Output Showing Shared Memory Mapping Exam ple Prog ams The following examples show an application using the E8491B s shared memory In the program 8 000 readings are taken with the Agilent E1410 multimeter Because the E1410 has only enough memory to store 4 096 readings internally all 8 000 readings are stored in shared memory and then transferred to the PC Given the shared memory size of 128 kBytes and the E1410 storage format of eight bytes reading up to 16 000 readings can be stored Figure 3 4 illustrates the reading transfers performed with the following programs Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus 49
68. manager each time changes are made to its configuration NOTE The resource manager will run automatically whenever the mainframe is powered on Run VISA Assistant Activates the Agilent VISA Assistant utility This utility displays all devices connected to the interface and their VISA interface address It provides other information on drivers formatted I O memory and other attributes Formatted I O allows you to send a SCPI command to a device to confirm communication with the device or simply to set a command parameter or to query a device state Run I O Config Runs the I O Config utility and brings up the I O Config Interface Configuration Application window shown in figure 2 11 View Documentation Selects the Readme txt the VISA Help file or the SICL Help file for viewing Interface Installation and Configuration 27 Run Event Viewer Brings up the event viewer for viewing the Applications Log for your PC VISA Logging Enables disables the VISA logging runs the event viewer or the debug window Hide Agilent I O Control Removes the Agilent icon in the lower right hand corner of your Windows 95 NT window task bar To re install the icon go to the START button gt gt Programs gt gt Agilent I O Libraries and click on Agilent I O Libs Control Exit Terminates the Agilent I O Libraries Control Note For E8491 Controllers to work the Agilent I O Libraries Control must be running Executing Exit will disable
69. nstrument to the mainframe and to make the ground connection Chapter 2 Interface Installation and Configuration 21 22 Installing A and B size Instruments Caution WARNING A and B size instruments can also be installed in the mainframe These instruments are installed using a module carrier Agilent E1403C A B size Module Carrier extends the P1 connector on the VXIbus backplane and mounts the A B size modules flush with C size modules This carrier is recommended for Hewlett Packard B size slave only devices which have the P1 connector Agilent E1407A A B Module Carrier extends the Pland P2 connectors on the VXIbus backplane This carrier is recommended for B size slave only devices which have the P1 P2 connectors To prevent damage to the VXI instruments install the instruments when the mainframe is turned off Figure 2 9 shows the installation of a B size instrument using a module carrier The procedure is described in the following three steps 1 Install the E1403 or E1407 A B size Module Carrier into the mainframe This is done by aligning the top and bottom of the carrier with the card guides and slowly pushing the carrier into the mainframe The front of the carrier should be even with the front edges of the mainframe 2 Slide the A or B size instrument into the carrier until it connects 3 Tighten the retaining screws on the top and bottom of the instrument All instruments within the VXI m
70. nterrupters and you want the interrupters to be recognized by a VXI interrupt handler you must make an entry in this file Additionally if you have progammable interrupters and you want them to be recognized by a device other than what s assigned by the resource manager the commander of that device you can make an entry in this file to override the default Keep in mind that not all VXI devices need to use interrupt lines and not all interrupt lines need to be assigned Note that any interrupt lines assigned in this file cannot also be assigned in the vmedev cf configurtion file This file is edited by selecting Edit mapping of VXI devices to interrupt lines in the Resource Manager window Figure B 2 The ttltrig cf file contains the mapping of VXI devices to TTL trigger lines in extended VXI systems If you have a MXI extended multiple mainframe system and you are sending receiving triggers between mainframes you must map the TTL trigger line to the logical address of the device asserting the trigger This file is only used for extended VXI systems This file is edited by selecting Edit mapping of VXI devices to ttl trigger lines in the Resource Manager window Figure B 2 The vximanuf cf file contains a database that cross references the VXI manufacturer id numbers and the name of the manufacturer The ivxirm utility reads the manufacturer id number from the VXI device The ivxisc utility then uses that number and this
71. on of PCI adapters Note Ifyour personal computer PC currently has a Solectron OHCI403 PCI to IEEE 1394 host adapter a later version OHCI compatible PCI to IEEE 1394 host adapter or a built in IEEE 1394 port proceed to Step 2 Installing the Agilent E8491 Interconnect Chapter 2 Interface Installation and Configuration 13 The layout of a typical host adapter is shown in Figure 2 1 12 VDC Power Connector External C IEEE 1394 Connectors A Figure 2 1 Layout of a Typical OHCI Compatible PCI to IEEE 1394 Host Adapter WARNING Turn off and disconnect the power to your computer and to any peripheral devices before installing the host adapter Refer to your computer s documentation for specific instructions about the installation of PCI adapters 1 Remove the computer chassis cover to expose the expansion slots and external access covers 2 Locate an unused unobstructed PCI bus expansion slot Figure 2 2 that supports bus mastering PCI bus slots are usually white or ivory See your computer documentation to determine if the PCI slot supports bus mastering 14 Interface Installation and Configuration Chapter 2 D PCI expansion slots i LL usually white or ivory RS NN shared slot Figure 2 2 Locating a PCI bus Expansion Slot Note Many computer PCI systems
72. p function for readings transferred from E8491B shared memory to the PC define SWAP FLOAT64 rdgs unsigned char src 8 double src doubl unsigned ar rdgs unsigned ar unsigned ar unsigned ar unsigned ar unsigned ar unsigned ar unsigned ar x 006 F X x 1oUcio CchP K5ncGo0n 10 Qi oO cO ue oco QO0000000 OrFRPNWHA OOD gt prototypes void check ViSession vi ViStatus error void err_handler ViSession vi ViStatus err void main void ViSession vi defaultRM fw ViStatus errStatus err unsigned long start addr starting address of shared memory ViReal64 rdgs 8000 array for readings from shared memory int s ViChar err message 256 open a VXIplug amp play device session and reset the multimeter errStatus hpel410 init E1410 0 1 amp vi if VI SUCCESS errStatus hpel410 error message vi errStatus err message printf Unable to open s n E1410 printf hpe1410 init returned error message s n err message return open a VISA session to the viOpenDefaultRM amp defaultRM viOpen defaultRM E8491 VI NULL VI NULL amp fw get E8491B shared memory base address viGetAttribute fw VI ATTR MEM BASE amp start addr enable multimeter error detection hpel410 errorQu
73. r line 4 which triggers the multimeter ixtrig e8491 I TRIG EXTO fetch the readings once the trigger is received ipromptf el412 FETC n 101f dcv rdgs display the readings for i20 i 10 i printf Slf n dcv rdgs i close the device sessions iclose e8491 close SICL interface session iclose el412 close SICL device session Comments 1 For demonstation purposes the trigger signal output from the Trig Out port ixtrig function is routed to the Trig In port using a jumper wire The signal is then routed to TTLTRG4 ivxitrigroute function 2 The external trigger routed to TTLTRG4 can also be routed to any or all of the VXI backplane trigger lines 3 When using the faceplate Trig In and Trig Out ports notice that both ports are specified using I TRIG_EXTO In the program ivxitrigroute e8491s I TRIG EXIO I_TRIG_TTL4 routes the trigger received on the faceplate Trig In port to backplane TTL trigger line 4 ixtrig e8491s I TRIG EXTO outputs a trigger pulse on the Trig Out port which is connected by a jumper wire to the Trig In port 4 This manual is included on the Agilent I O Libraries CD By viewing the manual from the CD you can cut and paste this program into your development environment 46 VXI Programming Using the IEEE 1394 Serial Bus C
74. s B 1 2 9 180 11 12 0 00 0 LADD Slot Bus Manufacturer O Hewlett Packard 1394 UXI Controll 0 Hewlett Packard E1412 6 5 Digit Multime UME Device Table Bus Slot Space Size No UME cards configured Failed Devices Name Bus Slot Manufacturer No FAILED devices detected Protocol Support Msg Based Devices CMDR SIG MSTR INT FHS SMP RG EG ERR PI PH TRG I4 I LW ELV 1 3 X a hi x Figure B 3 Output of ivxisc 74 Editing the Agilent E8491B Resource Manager Configuration Appendix B Commander Servant Hierarchy E8491ctlr Device Name 6x266666 x21ffffF E8491ctlr A32 Device Name No devices mapped into A32 space Interrupt Request Lines Handler Interrupter 1 234567 123456 7 Figure B 4 Output ot ivxisc cont d Using iclear The iclear function is used to clear the interface E8491B or individual message based instruments in the VXI mainframe iclear is executed from the DOS command prompt sicInt bin or sicl95 bin directory as iclear SICL interface name logical address SICL interface name is the name vxi listed in the I O Config SICL Interface Name window logical address is the address of the message based V XI instrument to be cleared If a logical address is not specified the E8491B interface is cleared and the resource manager is started Appendix B Editing the Agilent E8491B Resource Manager Configuration 75 76 Editing the Agilent E
75. set the minimum sample period errStatus hpel563 sampTim vi hpel563 SAMP TIM check vi errStatus disable digitizer error detection hpel563 errorQueryDetect vi 0 initiate the digitizer errStatus hpel1563 initImm vi pause 3 ms 1 3e 6 2000 to allow readings to complete Sleep 3 fetch readings from the digitizer s A24 space errStatus hpel1563 fetchAll OQ vi dataArrayLen ViInt32 rdgs amp numRdgs confirm readings transferred are valid by printing first 5 readings dataPtr ViIntl16 rdgs query digitizer reading range errStatus hpel1563 range Q vi 1 amp range printf Reading samples are n n for i20 i 10 i 2 printf Slf n n dataPtr i range 32768 38 VXI Programming Using the IEEE 1394 Serial Bus Chapter 3 reset digitizer following the transfer errStatus hpel563_reset vi close the device session hpel563 close vi Agilent VXIplug amp play session J RR KKK KK KK KK KK kk KK I I I KK I KC I I I I I I II IK I ck ck KK KKK error checking routine void check ViSession vi ViStatus errStatus Vilnt32 inst err ViChar err message 256 if VI SUCCESS errStatus if hpel563 INSTR ERROR DETECTED errStatus query instrument error hpel1563 dcl vi send a device clear hpel563 error query vi amp inst
76. sing the IEEE 1394 Serial Bus 35 Agilent VISA ViSession defaultRM id open device VISA session to the Agilent E1563 viOpenDefaultRM amp defaultRM viOpen defaultRM VXI0 24 INSTR VI NULL VI NULL amp id SICL INST ig open device SICL session to the Agilent E1563 id iopen vxi 24 Or to open an interface session to the E8491B INST id open SICL session to the VXI interface id iopen vxi The E8491B IEEE 1394 interconnect uses the VISA interface name VXI n or SICL interface name vxi The interface number is assigned using the I O Config utility see Chapter 2 In the examples above the logical address of the E1563 digitizer is 24 and INSTR indicates a VISA instrument control resource Opti MIZINGQ Programs that run over the IEEE 1394 serial bus are optimized by Prog rams transferring data between the PC and the instrument in blocks The following section identifies Agilent VISA and SICL functions that perform block transfers Note Referto Chapter 4 IEEE 1394 Fundamentals and Interface Overview for detailed information on data transfers using the IEEE 1394 data transfer protocol Block Data Transfers VXIplug amp play drivers for selected instruments contain functions that perform block transfers You will need to consult the driver help file to determine if the driver for a particular instrument supports block transfers The following Agilent VISA functions p
77. stallation 28 Index 79 80 Index
78. t i double dcv rdgs 10 install SICL error handler ionerror I ERROR EXIT open a SICL interface session 1 open a SICL device session to t e849 iopen vxi e1412 iopen vxi 24 set up trigger routing rout a trigger from the faceplate Trig I port to VXI backplane TTL trigger line 4 ivxitrigroute e8491 I TRIG EXTO I TRIG TTL4 E1412 Multimeter configuration set a 50s timeout period for external trigger to occur itimeout e1412 50000 configure the multimeter for DCV measurements iprintf el412 CONF VOLT DC 8 0 n set the fastest aperture time iprintf el412 VOLT DC APER MIN n turn off the autozero function iprintf e1412 ZERO AUTO OFF n Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus 45 set the trigger source iprintf e1412 TRIG SOUR TTLT4 n trigger line 4 set the sample count iprintf el412 SAMP COUN 10 n 10 readings initiate the multimeter iprintf el412 INIT n printf Press Enter to trigger the voltmeter n getchar output a trigger pulse on the E8491B Trig Out connector the trigger is then input to the Trig In connector via a jumper wire and routed to TTL trigge
79. tility is used to configure the E8491B and has a help file associated with it Pop up or pull down menus displayed by the Agilent I O Libraries software will show I O Libraries as I_O Libraries and I O Config as I_O Config because the cannot be displayed The character is therefore replaced by the underscore character Chapter 1 Chapter 2 Interface Installation and Configuration Using this Chapter This chapter contains information necessary to install and configure the IEEE 1394 host adapter if required and the Agilent E8491B interconnect The installation sequence and other topics covered in this chapter are as follows Step 1 Installing the IEEE 1394 Host Adapter 13 Step 2 Installing the Agilent E8491B Interconnect 17 Step 3 Installing VXI Instruments 20 Step 4 Installing the Agilent I O Libraries 24 Step 5 Installing Agilent VXIplug amp play Instrument Drivers28 Step6 Verifying the Installation llle esses 29 Running the Resource Manager 04 33 Step 1 Installing The IEEE 1394 adapter shipped as Option 001 to the Agilent E8491B is an OHCI compatible PCI to IEEE 1394 Host Adapter Included with the the IEEE 1394 adapter is a cable for powering IEEE 1394 devices and a 4 5m interface Host Ad apter cable WARNING Refer to your computer s documentation for specific instructions about the installati
80. tion and Configuration 25 The Locate button on the E8491 VXI Board Configuration screen can be used to help you identify and keep track of all the mainframes in a multi mainframe system E8491 VXI Board Configuration x Questions Press the Help Button below Recommended default values are shown OK E TENE Cage Number 0x00505000 Firmware Versions 2 D00000 eg External A 001 018 Internal 4 001 018 Help LogcalUnt fe Available 001018 Bootlnfo ox f7 Defaults SICL Interface Name v i VIS Interface Name vxo Locate Edit VISA Config m Advanced Settings Enable Advanced pz nanle Eternal Eoc Figure 2 12 Editing the E8491B Contiguration 5 Figure 2 11 returns with the SICL Name and VISA Name inserted Click OK to close the utility and complete the configuration Editing the E8491B When it is necessary to edit your configuration click I_O Config in the Configuration Agilent I O Libraries program group Figure 2 10 To edit the E8491B click highlight the configured interface vxi VXIO in the utility Figure 2 11 This activates the Edit and Remove buttons at the bottom of the window If you want to change the SICL interface name and number to something more descriptive use the SICL Interface Name field You can change the VISA interface number using the up down arrows next to the VISA Interface Name field The SICL and
81. u like that shown in Figure 2 13 Click on Run I O Config Either method described in this step brings up a configuration window similar to Figure 2 11 4 Select E8491 in the Available Interface Types box and click the Configure button 1 0 Config Interface Configuration Application File Options Help This utility configures 1 0 interfaces It must be run whenever a new 1 0 interface is installed in the computer or when changes need to be made to an existing I O interface To configure a new interface select it in the Available Interface Types list and click on Configure To edit a previously configured interface select it in the Configured Interfaces list and click on Edit r Available Interface Types Configured Interfaces SICL Name VISA Name H 40 82341 HP I VXI Command Module 1 interface name interface number Auto Add Remove Figure 2 11 The Agilent I O Libraries I O Config Utility The E8491B uses the SICL interface name vxi and the VISA interface name VXT Figure 2 12 The VISA interface number is assigned by the I O Config utility and is unique to each E8491B The interface name and number identify each mainframe in multi frame VXI systems and are also used in addressing each instrument in the mainframe The unique interface number allows instruments with the same logical addresses to be installed in different mainframes but in the same system Interface Installa
82. unning to enable the resource manager to run The resource manager initializes and prepares the VXI system for use The I O Libraries Control utility is installed when the E8491B interface is configured using I O Config It can be accessed by clicking on the Agilent logo in the lower right hand corner of your Windows panel The resource manager will run when mainframe power is applied or cycled the E8491B faceplate Reset button is pressed activated from the I O Config utility activated from the I O Control icon see Figure 2 13 In VXI systems with multiple E8491Bs mainframes individual mainframes can be turned off without affecting other mainframes in the system When a mainframe is turned on the resource manager reconfigures the mainframe The resource manager will only run if the I O Libraries Control utility is started Interface Installation and Configuration 33 34 Interface Installation and Configuration Chapter 2 Chapter 3 VXI Programming Using the IEEE 1394 Serial Bus Using this Chapter This chapter contains examples and general information for programming VXI systems over the IEEE 1394 serial bus The contents of the chapter include Programming Register Based and Message Based Instruments sseeeeeeeeee Ie 35 Opening Instrument Sessions llle 35 Optimizing Programs 0 0 0 eee eee eee ee 36 Agilent E8491B Triggering 0 0 0
83. us Figure 4 2 illustrates the concepts of asynchronous data transfers and fair arbitration VXI mainframe 1 VXI mainframe 3 VXI mainframe 2 data packet block transfer Jl data packet data packet mainframe 1 or 2 Fairness Interval p block transfer Jl data packet data packet data packet mainframe 1 or 2 mainframe 3 arb seq data packet ack arb data seq packet ak arb seq data packet ack arbi i subaction 1 ration rest gap subaction 2 subaction gaps subaction 3 Figure 4 2 IEEE 1394 Data Transfer Protocol 1 Isochronous data transfers broadcast variable amounts of data at regular intervals with no acknowledgement Isochronous and Asynchronous data transfers can occur on the same bus Chapter 4 IEEE 1394 Fundamentals and Interface Overview i arbitration gap 59 Asynchronous Data During an asynchronous data transfer a variable amount of data is Transfers transferred to an explicit address in real time and an acknowledgement is returned Data is transferred across the IEEE 1394 bus in packets called subactions An asynchronous subaction is made up of three parts arb
84. with the Agilent E8491 B 64 Agilent E8491B connecting the host adapter 18 installation 17 overview 62 triggering 43 Agilent I O Libraries installation 24 overview 64 Agilent VXIplug amp play drivers installation 28 Index 77 I O Libraries installation 24 iclear 75 IEEE 1394 bus features 58 data transfer protocol 59 topology and terminology 57 IEEE 1394 host adapter installation 13 installation A B size instruments 22 C size instruments 21 host adapter 13 Agilent E8491B 17 Agilent I O Libraries 24 Agilent VXIplug amp play drivers 28 verifying 29 VXI instruments 20 installation problems troubleshooting 33 Installing 21 22 instrument sessions opening 35 interface cable and host adapter overview 61 interface characteristics specifications 65 iproc 33 IRQ line 33 irg cf 73 ivxisc 73 L loading power supply 67 locating E8491B shared memory 47 locating shared memory using Agilent SICL 48 using Agilent VISA 48 message based instruments programming 35 MXI using the E8491B with MXI systems 19 N names cf 72 78 Index O opening instrument sessions 35 Agilent VISA 36 Agilent VXIplug amp play 35 SICL 36 optimizing programs 36 oride cf 72 P PCI BIOS 33 plug amp play drivers installation 28 porting SICL programs 36 power supply loading 67 programming register based and message based VXI instruments 35 pull up Trig Out port 47 R register b
Download Pdf Manuals
Related Search
Related Contents
P30S LIS1241 Sony Clie PEG-NR70V/U Battery Installation Husqvarna C42C User's Manual Copyright © All rights reserved.
Failed to retrieve file