Storing Readings In Shared Memory - Hp Visa Example - HP AHA-8940 Configuration And User's Manual

Ieee 1394 pc link to vxi
Table of Contents

Advertisement

Storing Readings in
Shared Memory -
HP VISA Example
// 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"
#define E8491 "VXI0::0::INSTR"
// check for instrument errors
#define INSTR_ERROR 0xBFFC0D07
50 VXI Programming Using the IEEE 1394 Serial Bus
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.
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.
Readings are taken and transferred from the
instrument to E8491A shared memory over
the VXI backplane.
DUT
// E1410 path
// E8491 path
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

E8491aIeee 1394

Table of Contents