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 #241 background imageLoading...
Page #241 background image
... continued
/**************************************************************************/
void meter_meas(void)
{
/* Configure the meter for dc voltage measurements on channel 1
(default channel). The measurement is set up on the 10 volt range
with an integration time of 10 PLCs. */
float readings[5];
int stat_cond, i, numvalues = 5;
static char *cmd_string[]=
{
"SENS:FUNC ’VOLT:DC’", /* Select dc volts on channel 1 */
"SENS:VOLT:DC:RANG 10", /* Select 10 volt range */
"SENS:VOLT:DC:NPLC 10", /* Select 10 power line cycles */
"CALC:FUNC SCAL", /* Select math scaling function */
"CALC:STAT ON", /* Turn math scaling on */
"CALC:SCAL:GAIN 0.001", /* Set the gain value (1 mV) */
"CALC:SCAL:OFFS 0.5", /* Set the offset value (50 mV) */
"SAMP:COUN 5", /* Take 5 readings per trigger */
"TRIG:SOUR EXT" /* Select external trigger source */
};
/* Call the function to execute the command strings shown above */
command_exe(cmd_string, sizeof(cmd_string)/sizeof(char*));
/* Initiate the measurement, wait for the trigger, and then set bit 0
"Operation Complete" in the Standard Event Register when complete. */
IOOUTPUTS(ADDR, "INIT;*OPC", 9);
/* Loop until the SRQ line is asserted when operation complete */
do
IOSTATUS(ISC, 1, &stat_cond);
while (!stat_cond);
/* Transfer readings from internal memory to the output buffer */
IOOUTPUTS(ADDR, "FETC?", 5);
/* Enter readings and print */
IOENTERA(ADDR, readings, &numvalues);
for (i = 0; i numvalues; i++)
printf("%f \n", readings[i]);
6
Chapter 6 Application Programs
C Language Programs
241

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