Technical data
148 Agilent N8211A/N8212A Performance Upconverter Synthetic Instrument Module, 250 kHz to 20 / 40 GHz
5 Creating and Downloading User-Data Files
// pairs and then download them to the signal generator.
//
// NOTE: You must have the Agilent 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 "TCPIP0::IP ADDRESS::INST0::INSTR"; 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::IP ADDRESS::INST0::INSTR";//your upconverter's IP
address
const int MAX_STRING_LENGTH=20;//length of frequency and power strings
const int BUFFER_SIZE=256;//length of SCPI command string
int main(int argc, char* argv[])