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 #85 background imageLoading...
Page #85 background image
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 75
Programming Examples
GPIB Programming Interface Examples
rdVal[ibcntl] = '\0'; // Null character indicating end of array
// Prints signal generator power level
cout<<"Source power (dBm) is : "<<rdVal;
cout<<"Press any key to continue"<<endl;
cin.ignore(10000,'\n');
ibwrt(sig, ":FREQ:MODE?",11); // Querys source frequency mode
ibrd(sig, rdVal,100); // Enters in the source frequency mode
rdVal[ibcntl] = '\0'; // Null character indicating end of array
cout<<"Source frequency mode is "<<rdVal; // Print source frequency mode
cout<<"Press any key to continue"<<endl;
cin.ignore(10000,'\n');
ibwrt(sig, "OUTP OFF",12); // Turns off RF source
ibwrt(sig, "OUTP?",5); // Querys the on/off state of the instrument
ibrd(sig,rdVal,2); // Enter in the source state
rdVal[ibcntl] = '\0';
num = (int (rdVal[0]) -('0'));
if (num > 0){
cout<<"Source RF state is : On"<<endl;
}else{
cout<<"Source RF state is : Off"<<endl;}
cout<<endl;
ibwrt(sig, "*IDN?",5); // Querys the instrument ID
ibrd(sig, rdVal,100); // Reads the source ID
rdVal[ibcntl] = '\0'; // Null character indicating end of array
cout<<"Source ID is : "<<rdVal; // Prints the source ID
cout<<"Press any key to continue"<<endl;
cin.ignore(10000,'\n');
ibwrt(sig, "SYST:COMM:GPIB:ADDR?",20); //Querys source address
ibrd(sig, rdVal,100); // Reads the source address
rdVal[ibcntl] = '\0'; // Null character indicates end of array
// Prints the signal generator address
cout<<"Source GPIB address is : "<<rdVal;
cout<<endl;
cout<<"Press the 'Local' key to return the signal generator to LOCAL control”<<endl; cout<<endl;
return 0;
}
Queries for GPIB Using VISA and C
This example uses VISA library functions to query different instrument states and conditions. Launch
Microsoft Visual C++ 6.0, add the required files, and enter the following code into your .cpp source
file. visaex3.cpp performs the following functions:
verifies the GPIB connections and interface are functional

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