EasyManua.ls Logo

Agilent Technologies E8267D User Manual

Agilent Technologies E8267D
366 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 #341 background imageLoading...
Page #341 background image
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 331
Creating and Downloading User-Data Files
Save and Recall Instrument State Files
string catalog = ReadDevice(device);
/* Match the catalog listing for state files which are named
(sequence#)_(register#) e.g. 0_01, 1_01, 2_05*/
Match m = Regex.Match(catalog, "\"(\\d_\\d\\d),");
while (m.Success)
{
// Grab the matched filename from the regular expresssion
string nextFile = m.Groups[1].ToString();
// Retrieve the file and store with a .STA extension
// in the current directory
Console.WriteLine("Retrieving state file: " + nextFile);
WriteDevice(device, "MEM:DATA? \"/USER/STATE/" + nextFile + "\"\n", true);
ReadFileBlock(device, nextFile + ".STA");
// Clear newline
ReadDevice(device);
// Advance to next match in catalog string
m = m.NextMatch();
}
}
/* This method writes an ASCII text string (SCPI command) to the signal generator.
If the bool "sendEnd" is true, the END line character will be sent at the
conclusion of the write. If "sendEnd is false the END line will not be sent.*/
static public void WriteDevice(uint device, string scpiCmd, bool sendEnd)
{
byte[] buf = Encoding.ASCII.GetBytes(scpiCmd);
if (!sendEnd) // Do not send the END line character
{
VisaInterop.SetAttribute(device, VisaAttribute.SendEndEnable, 0);
}
uint retCount;
VisaInterop.Write(device, buf, (uint)buf.Length, out retCount);
if (!sendEnd) // Set the bool sendEnd true.
{
VisaInterop.SetAttribute(device, VisaAttribute.SendEndEnable, 1);
}
}
// This method reads an ASCII string from the specified device
static public string ReadDevice(uint device)
{

Table of Contents

Questions and Answers:

Agilent Technologies E8267D Specifications

General IconGeneral
BrandAgilent Technologies
ModelE8267D
CategoryInverter
LanguageEnglish

Summary

1 Getting Started with Remote Operation

Programming and Software/Hardware Layers

Describes the layers supporting remote operation for signal generators.

Interfaces

Details the communication interfaces (GPIB, LAN, RS-232, USB) supported by signal generators.

IO Libraries and Programming Languages

Explains the role of IO libraries and common programming languages for instrument control.

2 Using IO Interfaces

Using GPIB

Details the GPIB interface, its setup, and verification for instrument communication.

Using LAN

Explains LAN communication protocols (VXI-11, Sockets, Telnet, FTP) for signal generator control.

3 Programming Examples

GPIB Programming Interface Examples

Provides examples for instrument control and verification using GPIB.

LAN Programming Interface Examples

Offers examples for controlling the signal generator via LAN interfaces.

4 Programming the Status Register System

Status Register Bit Values

Explains how bits represent decimal values within registers and how to enable/query them.

Accessing Status Register Information

Details methods for monitoring signal generator status, conditions, and events.

5 Creating and Downloading Waveform Files

Overview of Downloading and Extracting Waveform Files

Explains the process of creating, downloading, and extracting waveform files.

Understanding Waveform Data

Details the structure and format of waveform data, including bits, bytes, and endian order.

Creating Waveform Data

Commands for Downloading and Extracting Waveform Data

Loading, Playing, and Verifying a Downloaded Waveform

C++ Programming Examples

MATLAB Programming Examples

Visual Basic Programming Examples

Troubleshooting Waveform Files

6 Creating and Downloading User-Data Files

User File Data (Bit/Binary) Downloads (E4438C and E8267D)

Details user file data types, download requirements, and troubleshooting for E4438C/E8267D.

Pattern RAM (PRAM) Data Downloads (E4438C and E8267D)

Explains PRAM data download processes, control bits, and modulation formats for E4438C/E8267D.

FIR Filter Coefficient Downloads (N5182A, E4438C and E8267D)

Covers FIR filter coefficient download requirements, limitations, and selection for modulation.

Save and Recall Instrument State Files

Guides on saving and recalling instrument states and associated settings using SCPI commands.

User Flatness Correction Downloads Using C++ and VISA

Demonstrates downloading user flatness correction data using C++ and VISA.

Data Transfer Troubleshooting (N5182A, E4438C and E8267D Only)

Provides troubleshooting steps for data transfer issues on specific models.

Signal Generator Memory

User File Data (Bit/Binary) Downloads (E4438C and E8267D)

User File Download Problems

Provides troubleshooting for user file download issues, covering data requirements and symptoms.

PRAM Download Problems

Addresses troubleshooting for PRAM download issues, including pattern reset and memory capacity.

User FIR Filter Coefficient File Download Problems

Offers troubleshooting for FIR filter coefficient file download problems, covering memory and symbol limits.

Selecting a Downloaded User File as the Data Source

Modulating and Activating the Carrier

Pattern RAM (PRAM) Data Downloads (E4438C and E8267D)

FIR Filter Coefficient Downloads (N5182A, E4438C and E8267D)

Downloading FIR Filter Coefficient Data

Selecting a Downloaded User FIR Filter as the Active Filter

Save and Recall Instrument State Files

Save and Recall SCPI Commands

Details SCPI commands (*SAV, *RCL) for saving and recalling instrument states.

Save and Recall Programming Example Using VISA and C#

Provides a C# programming example for saving and restoring instrument states.

User Flatness Correction Downloads Using C++ and VISA

Related product manuals