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
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...