HP (Hewlett-Packard) B Network Router User Manual


 
Local Bus Data Transfers
The following programs demonstrate:
how readings are transferred over the Local bus from a single
digitizer to the HP E1488 memory card (LOCAL_AD.C)
how readings in digitizer memory are transferred over the Local bus
from two digitizers to the HP E1488 memory card (LBUS2PST.C)
how readings from two digitizer A/Ds are transferred over the Local
bus to the HP E1488 memory card (LBUSAUTO.C)
For completeness, the entire C language versions of these programs are
listed. The programs are also contained on the example programs disk
(HP p/n E1429-10302).
LOCAL_AD.C This program transfers readings from both digitizer channels to the
HP E1488 memory card. The readings are tranferred directly from the
digitizer A/Ds.
/* LOCAL_AD.C - This program demonstrates a Local bus data transfer */
/* directly (real time) from the HP E1429B digitizer A/Ds to the E1488A memory */
/* card. */
/* 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 the PC to the digitizer */
#define ADDR_MEM 70903L /* I/O path from the PC to the memory card */
/* Function Prototypes */
void rst_clr(long address);
void configure(void);
void initiate(void);
void check_error(char *array, long address);
Continued on Next Page
Chapter 2 Usin
g
the Di
g
itizer 83