EasyManua.ls Logo

Agilent Technologies E8257D User Manual

Agilent Technologies E8257D
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 #309 background imageLoading...
Page #309 background image
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 299
Creating and Downloading User-Data Files
User File Data (Bit/Binary) Downloads (E4438C and E8267D)
Command for Bit File Downloads
Because the signal generator adds a 10- byte file header during a bit file download, you must use the
SCPI command shown in Table 8- 3. If you FTP or copy the file for the initial download, the signal
generator does not add the 10- byte file header, and it does recognize the data in the file (no data in
the transmitted signal).
Bit files enable you to control how many bits in the file the signal generator modulates onto the
signal. Even with this file type, the signal generator requires that all data be contained within bytes.
For more information on bit files, see “Bit File Type Data” on page 288.
8 Send the user file data stored in the array (databuffer) to the signal generator.
iwrite() sends the data specified in databuffer to the signal generator (session identifier
specified in id).
The third argument of iwrite(), bytesToSend, contains the length of the databuffer in bytes.
In this example, it is 2000.
The fourth argument of iwrite(), 0, means there is no END of file indicator in the data.
In many programming languages, there are two methods to send SCPI commands and data:
Method 1 where the program stops the data download when it encounters the first zero
(END indicator) in the data.
Method 2 where the program sends a fixed number of bytes and ignores any zeros in
the data. This is the method used in our program.
For your programming language, you must find and use the equivalent of method two.
Otherwise you may only achieve a partial download of the user file data.
9 Send the terminating carriage (\n) as the last byte of the waveform data.
iwrite() writes the data “\n” to the signal generator (session identifier specified in id).
The third argument of iwrite(), 1, sends one byte to the signal generator.
The fourth argument of iwrite(), 1, is the END of file indicator, which the program uses to
terminate the data download.
To verify the user file data download, see “Command for Bit File Downloads” on page 299 and
“Commands for Binary File Downloads” on page 300.
Table 8-3 Bit File Type SCPI Commands
Type Command Syntax
Command :MEM:DATA:BIT <"file_name">,<bit_count>,<block_data>
This downloads the file to the signal generator.
Line Code Description—Download User File Data

Table of Contents

Other manuals for Agilent Technologies E8257D

Questions and Answers:

Agilent Technologies E8257D Specifications

General IconGeneral
BrandAgilent Technologies
ModelE8257D
CategoryInverter
LanguageEnglish

Summary

Getting Started with Remote Operation

Interfaces

Details various interface types (GPIB, LAN, RS-232, USB) for instrument communication.

IO Libraries and Programming Languages

Covers IO libraries and common programming languages for instrument control.

Using IO Interfaces

Using GPIB

Details GPIB interface for instrument connection and control, including setup and verification.

Using LAN

Explains LAN interface protocols (VXI-11, Sockets, Telnet, FTP) for remote instrument programming.

Programming Examples

Using the Programming Interface Examples

Introduces programming examples for remote control using various interfaces and languages.

GPIB Programming Interface Examples

Provides examples for GPIB programming and instrument control, including interface checks and queries.

LAN Programming Interface Examples

Covers LAN programming examples using VXI-11 and Sockets LAN protocols for instrument control.

Programming the Status Register System

Overview

Provides an overview of the status register system for monitoring signal generator conditions and errors.

Status Register Bit Values

Explains how each bit in a register is represented and how to enable/query bits using SCPI commands.

Accessing Status Register Information

Details methods for monitoring conditions, including polling and service request interrupts.

Status Byte Group

Describes the Status Byte Group, including the Status Byte Register and Service Request Enable Register.

Creating and Downloading Waveform Files

Creating and Downloading User-Data Files

Related product manuals