EasyManua.ls Logo

Agilent Technologies 34420A User Manual

Agilent Technologies 34420A
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #235 background imageLoading...
Page #235 background image
C / HP-IB Example 2
This program example demonstrates two input channels can be
independently configured and used.
/***************************************************************************
This program configures the meter for voltage measurements on two
input channels. The channels are set to different ranges and resolutions
to show the independence of the settings for each channel.
***************************************************************************/
#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 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 */
meter_meas(); /* Set up meter for measurement */
}
/**************************************************************************/
void rst_clear(void)
{
/* Reset the meter, clear the error queue, and wait for commands to
complete. A "1" is sent to the output buffer from the *OPC? command
when *RST and *CLS are completed. */
float value;
IOOUTPUTS(ADDR, "*RST;*CLS;*OPC?", 15);
IOENTER(ADDR, &value);
}
6
Chapter 6 Application Programs
C Language Programs
235
GPIB

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 34420A and is the answer not in the manual?

Agilent Technologies 34420A Specifications

General IconGeneral
BrandAgilent Technologies
Model34420A
CategoryMultimeter
LanguageEnglish

Summary

Quick Start Guide for Agilent 34420A

Prepare Agilent 34420A Meter for Use

Steps to verify and prepare the meter for initial operation, including checking supplied items and connecting power.

Front-Panel Operation of Agilent 34420A

Agilent 34420A Features and Functions

Agilent 34420A General Measurement Configuration

Details on configuring general measurement settings like input filters and integration time.

Agilent 34420A Remote Interface Reference

Agilent 34420A SCPI Command Summary

A summary of all SCPI commands available for programming the meter remotely.

Agilent 34420A Remote Programming Sequence

Outlines the seven-step sequence for programming the meter using remote commands.

Agilent 34420A MEASure and CONFigure Commands

Explains how to use MEASure? and CONFigure commands for setting up and performing measurements.

Agilent 34420A Error Messages

Agilent 34420A Execution Error Codes

Lists and explains common execution errors encountered during command string processing.

Agilent 34420A Measurement Tutorial

Agilent 34420A Measurement Error Analysis

Discusses common sources of measurement errors and techniques to minimize them.

Agilent 34420A Specifications

Agilent 34420A Accuracy Specifications

Detailed accuracy specifications for various functions, ranges, and conditions.

Related product manuals