EasyManuals Logo

Keysight Technologies N5172B EXG Programming Guide

Keysight Technologies N5172B EXG
398 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 #99 background imageLoading...
Page #99 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 99
Programming Examples
GPIB Programming Interface Examples
// NOTE: Change the TCPIP0 address in the instOpenString declaration
to
// match the IP address of your signal generator.
//
//*****************************************************************
#include "stdafx.h"
#include "visa.h"
#include <iostream>
#include <windows.h>
void main ()
{
ViStatus stat;
ViSession defaultRM,inst;
int npoints = 101;
double dwell = 0.01;
int intCounter=5;
char* instOpenString = "TCPIP0::141.121.93.101::INSTR";
stat = viOpenDefaultRM(&defaultRM);
stat = viOpen(defaultRM,instOpenString,VI_NULL,VI_NULL,
&inst);
// preset to start clean
stat = viPrintf( inst, "*RST\n" );
// set power level for -10dBm
stat = viPrintf(inst, "POW -10DBM\n");
// set the start and stop frequency for the sweep
stat = viPrintf(inst, "FREQ:START 1GHZ\n");
stat = viPrintf(inst, "FREQ:STOP 2GHZ\n");
// setup dwell per point

Table of Contents

Other manuals for Keysight Technologies N5172B EXG

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies N5172B EXG and is the answer not in the manual?

Keysight Technologies N5172B EXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5172B EXG
CategoryPortable Generator
LanguageEnglish

Related product manuals