beautypg.com

HP IEEE 1394 User Manual

Page 51

background image

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
#include
#include

// 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.

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

This manual is related to the following products: