HP (Hewlett-Packard) B Network Router User Manual


 
6. Additional Information. Additional information on using arming,
triggering, and reference signals to synchronize other digitizers can be
found in Chapter 3 - "Understanding the Digitizer". Additional information
on the CONFigure command can be found in
Chapter 1 - "Getting Started".
Using the Packed Data Format
This program demonstrates:
how to specify the digitizer’s packed data format
how to remove the ANSI/IEEE Standard 488.2-1987 Definite Length
Arbitrary Block header which preceeds the data
how to assign a label to identify a set of readings
how to convert the readings to voltages
The program takes 20 post-arm samples which are returned in the digitizer’s
packed data format. For completeness, the entire C language version of the
program is listed. (The program is also contained on the example programs
disk - HP E1429-10302).
PACKED.C
/* PACKED.C - This program takes 20 post-arm samples and returns the readings */
/* in the digitizer’s packed data format. A label identifying the readings */
/* is assigned to the four least significant bits. The arbitrary block header */
/* preceding the readings is removed and the packed data is coverted to the */
/* measured voltages. The program features the FORMat and READ? commands. */
/* 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 */
#define ADDR 70905L /* I/O path from PC to the digitizer, via the HP E1406 */
Continued on Next Page
Chapter 2 Usin
g
the Di
g
itizer 59