380 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Creating and Downloading User–Data Files
User Flatness Correction Downloads Using C++ and VISA
//*****************************************************************
// PROGRAM NAME:FlatCal.cpp
//
// PROGRAM DESCRIPTION:C++ Console application to input frequency
and amplitude
// pairs and then download them to the signal generator.
//
// NOTE: You must have the Keysight IO Libraries installed to run
this program.
//
// This example uses the LAN/TCPIP interface to download frequency
and amplitude
// correction pairs to the signal generator. The program asks the
operator to enter
// the number of pairs and allocates a pointer array listPairs[]
sized to the number
// of pairs.The array is filled with frequency nextFreq[] and
amplitude nextPower[]
// values entered from the keyboard.
//
//*****************************************************************
// IMPORTANT: Replace the 000.000.000.000 IP address in the
instOpenString declaration
// in the code below with the IP address of your signal generator.
//*****************************************************************
#include <stdlib.h>
#include <stdio.h>
#include "visa.h"
#include <string.h>
// IMPORTANT:
// Configure the following IP address correctly before compiling
and running
char* instOpenString ="TCPIP0::000.000.000.000::INSTR";//your PSG's
IP address
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...