C / Hp-Ib Program Example 3 - Agilent Technologies 34420A User Manual

Nano volt/micro ohm meter
Table of Contents

Advertisement

Chapter 6 Application Programs
C Language Programs

C / HP-IB Program Example 3

This program example demonstrates the use of an SRQ to indicate when
measurements are complete. The meter is set to use external triggering.
Math scaling is also demonstrated.
/***************************************************************************
This program configures the meter to make multiple dc voltage
measurements using an external trigger. The "Operation Complete" bit
in the Standard Event Register is used to determine when the trigger
is received and generates an SRQ. This program also shows the use of
math scaling.
***************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cfunc.h>
#define ISC 7L
#define ADDR 722L
/* Function Prototypes */
void rst_clear(void);
void setup_status(void);
void meter_meas(void);
void command_exe(char *commands[], int length);
void check_error(char *func_name);
/**************************************************************************/
void main(void)
{
rst_clear();
setup_status();
meter_meas();
}
GPIB
/* Used for printf() */
/* Used for atoi() */
/* Used for strlen() */
/* Header file from GPIB Command Library */
/* Assign GPIB select code */
/* Set GPIB address for meter */
/* Start of main() */
/* Reset the instrument and clear error queue */
/* Set up 34420A status registers */
/* Set up meter for measurement */
6
239

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents