EasyManua.ls Logo

Keysight Technologies N5166B CXG - Page 271

Keysight Technologies N5166B CXG
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
Loading...
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 271
Creating and Downloading Waveform Files
Programming Examples
// in the code below with the IP address of your signal generator.
(or you can use the
// instrument's hostname). Replace the localSrcFile and instDestFile
directory paths
// as needed.
//*****************************************************************
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "visa.h"
//
// IMPORTANT:
// Configure the following three lines correctly before compiling
and running
char* instOpenString ="TCPIP0::xxx.xxx.xxx.xxx::INSTR"; // your
instrument's IP address
const char* localSrcFile = "\\Files\\IQ_DataC";
const char* instDestFile = "/USER/WAVEFORM/IQ_DataC";
const int BUFFER_SIZE = 100*1024;// Size of the copy buffer
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

Table of Contents

Other manuals for Keysight Technologies N5166B CXG

Related product manuals