EasyManuals Logo
Home>Agilent Technologies>Inverter>33120A

Agilent Technologies 33120A User Manual

Agilent Technologies 33120A
312 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 #251 background imageLoading...
Page #251 background image
C / GPIB (Program 1)
/***************************************************************************
This program sets up a burst waveform with a 270 degree starting phase.
By adding an offset voltage to the burst, a "haversine" is created.
This program also shows the use of a trigger received over the GPIB
interface to initiate a single burst.
***************************************************************************/
#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 ADDR 710L /* Set GPIB address for function generator */
/* Function Prototypes */
void rst_clear(void);
void out_waveform(void);
void command_exe(char *commands[], int length);
void burst_trig(void);
void check_error(char *func_name);
/**************************************************************************/
void main(void) /* Start of main() */
{
rst_clear(); /* Reset the instrument and clear error queue */
out_waveform(); /* Set up burst modulation parameters */
burst_trig(); /* Trigger the function generator */
}
/**************************************************************************/
void rst_clear(void)
{
/* Reset the function generator, 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
Using the APPLy Command
249

Table of Contents

Other manuals for Agilent Technologies 33120A

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies 33120A Specifications

General IconGeneral
BrandAgilent Technologies
Model33120A
CategoryInverter
LanguageEnglish

Related product manuals