HP E8491A manual Locating Shared Memory Using HP Visa

Page 48

Locating Shared Memory Using HP VISA

For HP VISA programs, the E8491A shared memory starting address is obtained using the function:

viGetAttribute

and the VXI interface attribute:

VI_ATTR_MEM_BASE

The HP 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 E8491A 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 E8491A’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 <drive:>\siclnt\bin or sicl95\bin directory. This utility is an executable that is used with the SICL logical unit number (see “Editing the HP E8491A 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 Refer to 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

Image 48
Contents Contents Chapter Index Contents HEWLETT-PACKARD Warranty Statement Documentation History Manufacturer’s Name Page Business Reply Mail Page Interface Installation Configuration Component OverviewVXI Programming Using Ieee 1394 Serial Bus Additional InformationInterface Installation and Configuration Installing Ieee Host AdapterLayout of the Adaptec AHA-8940 1394-to-PCI Host Adapter Locating a PCI bus Expansion Slot Connecting the Power Cable Installing HP E8491A Interconnect Where to go NextPage Connecting the HP E8491A to the Host Adapter Installing VXI Instruments InstrumentsInstalling C-size Instruments Installing A- and B-size Instruments Shows the installation of A- and B-size instrumentsPage Interface Installation and Configuration Chapter Configuring the HP E8491A Interconnect 10. The HP IO Libraries Program Group11. The HP IO Libraries IO Config Utility Editing the HP E8491A Configuration 12. Editing the HP E8491A ConfigurationInstalling Editing the HP E8491A Configuration on Windows 95 PlatformsInstrument Drivers Verifying the Installation Viewing the Resource Manager Output 17 is a partial listing of a typical resource manager output Page Running the Resource Manager Page VXI Programming Using the Ieee 1394 Serial Bus Optimizing Programs Block Data TransfersBlock Transfers using HP VXIplug&play Drivers For i=0 i10 i+=2 Printf%lf\n\n,dataPtri*range/32768 Comments HP Visa Error checking routine Comments HP E8491A Triggering TTLTRG7 TTLTRG0Configuring the E8491A Trig In and Trig Out Ports ItrigallTurn off the autozero function iprintfe1412, Zeroauto OFF\n Program, ivxitrigroutee8491s, ITRIGEXT0 Using HP E8491A Shared Memory Locating E8491A Shared MemoryLocating Shared Memory Using HP Visa Starting address of E8491A shared Memory hexadecimal Storing Readings Shared Memory HP Visa Example #define E8491 VXI00INSTRUnsigned char ViClosefw E8491 Error handling function Storing Readings Shared Memory Sicl Example Ivxirminfoe8491, 0, &info startaddr = info.memstart Comments Ieee 1394 Fundamentals Interface Overview Ieee 1394 Topology and TerminologyFeatures of the Ieee 1394 Bus Terms shown in -1 are defined in the following tableOptimizing the Configuration Ieee Data Transfer ProtocolIeee 1394 Fundamentals and Interface Overview Chapter Adaptec AHA-8940 Host Adapter Interface Cable HP E8491A PC to VXI Interconnect PIN #Configuration Label Using the HP E8491A With the HP E1406 Command Module HP IO LibrariesInterface Characteristics VXI Characteristics GeneralCLK External Trigger InputExternal Trigger Output Trigger Delays Power Supply LoadingCooling Specifications Appendix a Editing the HP E8491A Resource Manager Configuration Configuration File OverviewPage Page Page Using ivxisc Utility Function OverviewPage Iclear Sicl interface name, logical address Page Index MXI Trig In specifications Index