EasyManuals Logo

Anritsu MG369 C Series User Manual

Anritsu MG369 C Series
266 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 #80 background imageLoading...
Page #80 background image
2-18 Power-Offset-Table Commands Programming with GPIB Commands
2-48 PN: 10370-10374 Rev. F MG369xC GPIB PM
The following is an example of power-offset mode programming. This program is written for use with an
IBM-PC type computer/controller containing an IOtech GPIB interface.
#include <stdio. h>
#include <stdlib. h>
#include <string. h>
/* IOtech Driver488/LIB Subroutine Interface definitions. . . */
#include “\ieee488\iotlib. h”
#include “\ieee488\iot_main. h”
/* Define the device handles */
DevHandleT Synth,ieee;
void main()
{
char CmdString[10], DataString[40], String[40];
unsigned char XString[160];
int next_step,i,j;
/*************************************************************************/
/* Initialize the IOtech interface board and */
/* obtain the interface's handle. */
#define ADDRESS 5
if((ieee=InitIeee488(btMP488CT, 21, -1, 0x02el, 7, 5, 1, 10000,0))==-1)
{
printf(“Cannot initialize IEEE 488 system. \n”)
exit(1);
}
if(( Synth=CreateDevice( ADDRESS, -1 ) )==-1)
{
printf(“Cannot create Synth device. \n”);
exit(1);
/* Set the device timeout so you don't wait forever if there's a problem */
TimeOut(Synth, 2000);
/* Handle the errors in the program */
Error(Synth,OFF);
/*************************************************************************/
/* Address the Synthesizer to listen */
NOTE: This program is continued on the next page.
Figure 2-13. Power-Offset Mode Programming Example (1 of 2)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Anritsu MG369 C Series and is the answer not in the manual?

Anritsu MG369 C Series Specifications

General IconGeneral
BrandAnritsu
ModelMG369 C Series
CategoryPortable Generator
LanguageEnglish

Related product manuals