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)
Summary of Contents for MG369 C Series
Page 2: ......
Page 6: ...Contents 4 PN 10370 10374 Rev F MG369xC GPIB PM ...
Page 262: ...A 34 PN 10370 10374 Rev F MG369xC GPIB PM ...
Page 264: ...Index 2 PN 10370 10374 Rev F MG369xC GPIB PM ...
Page 265: ......