EasyManuals Logo

Keysight Technologies N5166B CXG Programming Guide

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
Page #273 background imageLoading...
Page #273 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 273
Creating and Downloading Waveform Files
Programming Examples
unsigned char* buf = new unsigned char[BUFFER_SIZE]; // Allocate
char buffer memory
if (buf && lenToSend)
{
// Do not send the EOI (end of instruction) terminator on any
write except the
// last one
viSetAttribute( vi, VI_ATTR_SEND_END_EN, 0 );
// Prepare and send the SCPI command header
char s[20];
sprintf(s, "%d", lenToSend);
int lenLen = strlen(s);
unsigned char s2[256];
// Write the command mmem:data and the header.The number lenLen
represents the
// number of bytes and the actual number of bytes is the variable
lenToSend
sprintf((char*)s2, "mmem:data \"%s\", #%d%d", instDestFile,
lenLen, lenToSend);
// Send the command and header to the signal generator
viWrite(vi, s2, strlen((char*)s2), 0);
long numRead;
// Send file in BUFFER_SIZE chunks to the signal generator

Table of Contents

Other manuals for Keysight Technologies N5166B CXG

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies N5166B CXG and is the answer not in the manual?

Keysight Technologies N5166B CXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5166B CXG
CategoryPortable Generator
LanguageEnglish

Related product manuals