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 #381 background imageLoading...
Page #381 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 381
Creating and Downloading User–Data Files
User Flatness Correction Downloads Using C++ and VISA
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[])
{
ViSession defaultRM, vi;
ViStatus status = 0;
status = viOpenDefaultRM(&defaultRM);//open the default
resource manager
//TO DO: Error handling here
status = viOpen(defaultRM, instOpenString, VI_NULL, VI_NULL,
&vi);
if (status)//if any errors then display the error and exit the
program
{
fprintf(stderr, "viOpen failed (%s)\n", instOpenString);
return -1;
}
printf("Example Program to Download User Flatness
Corrections\n\n");
printf("Enter number of frequency and amplitude pairs: ");
int num = 0;
scanf("%d", &num);
if (num > 0)
{
int lenArray=num*2;//length of the pairsList[] array. This
array

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