Agilent Technologies N5181A/82A User Manual Page 229

  • Download
  • Add to my manuals
  • Print
  • Page
    / 366
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 228
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 219
Creating and Downloading Waveform Files
Downloading Waveform Data
For advanced programming languages, this section closely examines the code algorithm for
downloading I/Q waveform data by breaking the programming examples into functional parts and
explaining the code in generic terms. This is done to help you understand the code algorithm in
downloading the interleaved I/Q data, so you can leverage the concept into your programming
environment. While not discussed in this section, you may also save the data to a binary file and use
one of the download utilities to download the waveform data (see “Using the Download Utilities” on
page 227).
If you do not need the level of detail this section provides, you can find complete programming
examples in “Programming Examples” on page 231. Prior to downloading the I/Q data, ensure that it
conforms to the data requirements shown on page 185. To learn about I/Q data for the signal
generator, see “Understanding Waveform Data” on page 185. For creating waveform data, see
“Creating Waveform Data” on page 212.
NOTE To avoid overwriting the current waveform in volatile memory, before downloading files into
volatile memory (WFM1), change the file name or turn off the ARB. For more information, on
manually turning off the ARB, refer to the User’s Guide.
To turn off the ARB remotely, send: :SOURce:RADio:ARB:STATe OFF.
Using Simulation Software
This procedure uses a complex data array created in MATLAB and uses the Agilent Waveform
Download Assistant to download the data. To obtain the Agilent Waveform Download Assistant, see
“Using the Download Utilities” on page 227.
There are two steps in the process of downloading an I/Q waveform:
1. Open a connection session.
2. Download the I/Q data.
1. Open a connection session with the signal generator.
The following code establishes a LAN connection with the signal generator, sends the IEEE SCPI
command *idn?, and if the connection fails, displays an error message.
Line Code—Open a Connection Session
1
2
3
4
5
io = agt_newconnection('tcpip','IP address');
%io = agt_newconnection('gpib',<primary address>,<secondary address>);
[status,status_description,query_result] = agt_query(io,'*idn?');
if status == -1
display ‘fail to connect to the signal generator’;
end;
Page view 228
1 2 ... 224 225 226 227 228 229 230 231 232 233 234 ... 365 366

Comments to this Manuals

No comments