5.Reading Sequence and Format. When this program executes, the readings are transferred to the memory card and later displayed in the following sequence:

GENerator digitizer reading 1 GENerator digitizer reading n

.

.

APPender digitizer reading 1 APPender digitizer reading n

The memory card was set up to store the readings in the digitizer’s packed data format. The packed readings are signed, 16-bit numbers preceded by the ANSI/IEEE Standard 488.2-1987 Definite Length Arbitrary Block header. Packed readings are always numbers between -1.0230 (-2046) and +1.0235 (2047). To convert the readings to voltages, each reading is divided by 16 to remove the data label bits (0 - 3), and is multipled by 0.0025 (the reading resolution for the 5V range).

6.Additional Information. Additional information on Local bus operation and on the Local bus commands can be found in Chapter 3 - "Understanding the Digitizer", and in Chapter 4 - "Command Reference."

LBUSAUTO.C This program transfers readings over the Local bus from two digitizer A/Ds to the HP E1488 memory card. The program shows how the digitizers are used in the Local bus GENerate and INSert modes. The program is similar to the previous program; however, rather than INITiate each digitizer individually, the INSerter digitizer INITiates the GENerator digitizer once the INSerter digitizer readings are complete.

/* LBUSAUTO.C - This program demonstrates how to transfer readings over the */ /* Local bus from two digitizer A/Ds to the HP E1488 memory card. The leftmost */ /* digitizer is set to the GENerate mode and the inner digitizer is set to the */

/* INSert mode. The generator digitizer is armed from the TTLT0 trigger line */ /* when the inserter digitizer has completed its measurements. */

/* Include the following header files */

#include

<stdio.h>

 

#include

<stdlib.h>

 

#include

<string.h>

 

#include

<malloc.h>

 

#include

<cfunc.h>

/* This file is from the HP-IB Command Library Disk */

Continued on Next Page

Chapter 2

Using the Digitizer 93

Page 93
Image 93
HP E1429A manual On Next