EasyManua.ls Logo

Agilent Technologies N5183A User Manual

Agilent Technologies N5183A
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 #113 background imageLoading...
Page #113 background image
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 103
Programming Examples
LAN Programming Interface Examples
// Open SICL instrument handle using VXI-11 protocol
sprintf(instNameBuf, "lan[%s]:inst0", instrumentName);
id = iopen(instNameBuf);// Open instrument session
itimeout(id, 1000);// Set 1 second timeout for operations
printf("Setting frequency to 1 Ghz...\n");
iprintf(id, "freq 1 GHz\n");// Set frequency to 1 GHz
printf("Waiting for source to settle...\n");
iprintf(id, "*opc?\n");// Query for operation complete
iscanf(id, "%d", &opcResponse); // Operation complete flag
if (opcResponse != 1)// If operation fails, prompt user
{
printf("Bad response to 'OPC?'\n");
iclose(id);
exit(1);
}
iprintf(id, "FREQ?\n");// Query the frequency
iscanf(id, "%t", &buf);// Read the signal generator frequency
printf("\n");// Print the frequency to the display
printf("Frequency of signal generator is %s\n", buf);
ipromptf(id, "*IDN?\n", "%t", buf);// Query for id string
printf("Instrument ID: %s\n", buf);// Print id string to display
iclose(id);// Close the session
return 0;
}
VXI-11 Programming Using VISA and C++
The following program uses the VXI- 11 protocol and the VISA library to control the signal generator.
The signal generator is set to a –5 dBm power level and queried for its ID string. Before running this
code, you must set up the interface using the Agilent IO Libraries IO Config utility. vxivisa.cpp
performs the following functions:
sets signal generator to a –5 dBm power level
queries signal generator for an ID string
•error checking
The following program example is available on the signal generator Documentation CD- ROM as
vxivisa.cpp.
//****************************************************************************************
// PROGRAM FILE NAME:vxivisa.cpp
// Sample test program using the VISA libraries and the VXI-11 protocol
//

Table of Contents

Questions and Answers:

Agilent Technologies N5183A Specifications

General IconGeneral
Amplitude Accuracy±0.5 dB
I/Q ModulationYes
Modulation TypesAM, FM, PM, Pulse, FSK, PSK
Output Impedance50 ohm
Harmonics-30 dBc
Switching Speed (frequency)≤ 900 μs
Power Requirements100 to 240 VAC, 50/60 Hz
Subharmonics-60 dBc

Summary

Using IO Interfaces

Using LAN

Explains LAN interface setup, protocols, and configuration for remote control.

Programming Examples

Using GPIB

Covers GPIB interface setup, examples, and function statements.

LAN Programming Interface Examples

Provides examples for VXI-11, Sockets LAN, and related protocols.

Programming the Status Register System

Accessing Status Register Information

Details methods for monitoring conditions and accessing status information.

Creating and Downloading Waveform Files

Downloading Waveform Data

Details methods for downloading I/Q waveform data from simulation and programming environments.

Loading, Playing, and Verifying a Downloaded Waveform

Provides procedures for loading, playing, and verifying downloaded waveforms.

Creating and Downloading User-Data Files

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

Explains how to download PRAM data for real-time Custom and TDMA modulation.

FIR Filter Coefficient Downloads (N5182A, E4438C and E8267D)

Covers downloading FIR filter coefficients for specific models and options.

Save and Recall Instrument State Files

Describes saving and recalling instrument state settings using SCPI commands.

User Flatness Correction Downloads Using C++ and VISA

Details downloading user flatness correction values using C++ and VISA.

Data Transfer Troubleshooting (N5182A, E4438C and E8267D Only)

Provides troubleshooting steps for data transfer issues on specific models.

Related product manuals