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> /* Used for printf() */
#include <stdlib.h> /* Used for atoi() */
#include <string.h> /* Used for strlen() */
#include <cfunc.h> /* Header file from GPIB Command Library */
#define ISC 7L /* Assign GPIB select code */
#define ADDR 722L /* Set GPIB address for meter */
/* 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) /* Start of main() */
{
rst_clear(); /* Reset the instrument and clear error queue */
setup_status(); /* Set up 34420A status registers */
meter_meas(); /* Set up meter for measurement */
}
6
Chapter 6 Application Programs
C Language Programs
239
GPIB
Summary of Contents for 34420A
Page 1: ......
Page 2: ......
Page 13: ...1 Quick Start ...
Page 31: ...2 Front Panel Operation ...
Page 55: ...3 Features and Functions ...
Page 117: ...4 Remote Interface Reference ...
Page 200: ...5 Error Messages ...
Page 213: ...6 Application Programs ...
Page 245: ...6 Chapter 6 Application Programs Microsoft Excel Macro Example 245 ...
Page 246: ...Chapter 6 Application Programs Microsoft Excel Macro Example 246 ...
Page 247: ...7 Measurement Tutorial ...
Page 274: ...8 Specifications ...
Page 279: ...Dimensions Chapter 8 Specifications 34420A Nano Volt Micro Ohm Meter 280 ...
Page 294: ......