HP E1326B User Manual page 240

5 1/2 digit multimeter
Table of Contents

Advertisement

C Version
Appendix C
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
/* E1411_M.CPP - This program takes measurements on the front */
/* terminals of the E1411B multimeter. */
#include <sicl.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
/* define macros to monitor status register conditions */
#define READY (iwpeek((unsigned short *)(base_addr_dmm + 0x04)) & 0x01)
#define DONE ((iwpeek((unsigned short *)(base_addr_dmm + 0x04)) & 0x81) ==
0x81)
#define DATARDY ((iwpeek((unsigned short *)(base_addr_dmm + 0x04)) & 0x91)
== 0x91)
#define QRYRDY ((iwpeek((unsigned short *)(base_addr_dmm + 0x04)) & 0x83)
== 0x83)
#define NOERR ((iwpeek((unsigned short *)(base_addr_dmm + 0x04)) & 0xC1)
== 0xC1)
#define PASS_FAIL (iwpeek((unsigned short *)(base_addr_dmm + 0X04)) & 0x04
/* Function prototypes */
void configure_dmm(char *base_addr_dmm, int command, int parameter);
void set_sample_period(char *base_addr_dmm, int command, unsigned short
parameter);
void set_dmm_counts(char *base_addr_dmm, int command, long parameter);
void no_dmm_parameters(char *base_addr_dmm, int command);
void trigger_dmm(char *base_addr_dmm);
void check_for_error(char *base_addr_dmm);
void reset_mm(char *base_addr_dmm);
int aper, rng, func; /* global variables to contain the multimeter */
void main(void)
{
char *base_addr_dmm;
clrscr();
/* create and open the device session */
INST e1411b;
e1411b = iopen("vxi,24");
HP E1326B/E1411B Multimeter Register-Based Programming
/* aperture time, range, and function; which are */
/* used to calculate the reading */
/* pointer to multimeter base address */
/* clear the user screen */
Continued on Next Page
239

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1411b

Table of Contents