50
VXI Programming Using the IEEE 1394 Serial Bus
Chapter 3
Storing Readings in
Shared Memory -
HP VISA Example
This example uses the HP E1410 VXIplug&play driver to configure the
multimeter, take the readings, and store them in E8491A shared memory.
HP VISA functions are used to transfer the readings from shared memory to
the PC.
// SHAR_VISA.CPP - This program demonstrates how to access the
// HP E8491A’s shared memory. The program stores readings taken
// by the HP E1410 multimeter in HP E8491A shared memory, and then
// transfers those readings from shared memory to the computer.
#include "hpe1410.h"// include the driver header file
#include "visa.h"
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
// project files: SHAR_VISA.cpp, hpe1410.lib, VISA32.lib
// specify the addressing path to the multimeter
#define E1410 "VXI0::24::INSTR" // E1410 path
#define E8491 "VXI0::0::INSTR" // E8491 path
// check for instrument errors
#define INSTR_ERROR 0xBFFC0D07
Figure 3-4. Storing Readings in Shared Memory.
DUT
Readings are taken and transferred from the
instrument to E8491A shared
memory over
the VXI backplane.
Readings are transferred in blocks
from shared memory to the PC
over the IEEE 1394 serial bus.
Содержание AHA-8940
Страница 4: ...4 Contents ...
Страница 8: ...8 Notes ...
Страница 10: ......
Страница 23: ...Interface Installation and Configuration 23 Chapter 2 Figure 2 9 Installing A and B size VXI Instruments ...
Страница 32: ...32 Interface Installation and Configuration Chapter 2 Figure 2 17 Typical Resource Manager Output ...
Страница 68: ...68 Specifications Appendix A ...
Страница 76: ...76 Editing the HP E8491A Resource Manager Configuration Appendix B ...
Страница 80: ...80 Index ...