188
Chapter 3
Programming Fundamentals
Improving Measurement Speed
Pr
o
g
ramm
ing Fund
ame
n
tal
s
Disable the IF/Video/Sweep output ports
If the analyzer has Options A4J (IF, Video and Sweep Ports) or AYX (Fast Time
Domain Sweeps), various output signals with rear-panel ports are controlled by
instrument processing. If these ports are not used in a particular application,
:SYSTem:PORTs:IFVSweep:ENABle OFF
can be used to disable the ports and
conserve instrument resources.
Select phase noise performance
[:SENSe]:FREQuency:SYNThesis
can be used to optimize either phase noise
performance or tuning speed. In some settings optimizing for tuning speed reduces
sweep time and the “re-tune” time between sweeps. In other settings only the
re-tune time is improved.
Use binary data format instead of ASCII
The ASCII data format is the instrument default since it is easier for people to
understand and is required by SCPI for *RST. However, data input/output is faster
using the binary formats.
:FORMat:DATA REAL,64
selects the 64-bit binary data format for all your
numerical data queries. You may need to swap the byte order if you are using a PC
rather than UNIX.
NORMal
is the default byte order. Use
:FORMat:BORDer
SWAP
to change the byte order so that the least significant byte is sent first.
When using the binary format, data is sent in a block of bytes with an
ASCII
header.
A data query would return the block of data in the following format:
#DNNN<nnn
binary data bytes>
To parse the data:
•
Read two characters (#D), where D tells you how many N characters follow the
D character.
•
Read D characters, the resulting integer specifies the number of data bytes sent.
•
Read the bytes into a real array.
For example, suppose the header is #512320.
•
The first character/digit in the header (5) tells you how many additional digits
there are in the header.
•
The 12320 means 12 thousand, 3 hundred, 20 data bytes follow the header.
•
Divide this number of bytes by your current data format (bytes/data point),
8 for real,64. For this example, there are 1540 data points in the block of data.
Minimize the number of GPIB transactions.
When you are using the GPIB for control of your instrument, each transaction
requires driver overhead and bus handshaking, so minimizing these transactions
reduces the time used.
You can reduce bus transactions by sending multiple commands per transaction.
Содержание ESA-E E4401B
Страница 4: ...4 ...
Страница 35: ...35 Using This Document 1 Using This Document ...
Страница 38: ...38 Chapter1 Using This Document What is in This Book Using This Document ...
Страница 196: ...196 Chapter3 Programming Fundamentals Overview of RS 232 Option 1AX Programming Fundamentals ...
Страница 393: ...Chapter 6 393 Menu Maps Alpha Editor Menu Menu Maps Alpha Editor Menu ...
Страница 394: ...394 Chapter6 Menu Maps AMPLITUDE Y Scale Menu Menu Maps AMPLITUDE Y Scale Menu ...
Страница 395: ...Chapter 6 395 Menu Maps Amplitude Y Scale Corrections Menu Menu Maps Amplitude Y Scale Corrections Menu ...
Страница 396: ...396 Chapter6 Menu Maps Auto Couple Menu Menu Maps Auto Couple Menu ...
Страница 397: ...Chapter 6 397 Menu Maps BW Avg Menu Menu Maps BW Avg Menu ...
Страница 398: ...398 Chapter6 Menu Maps Det Demod Menu Menu Maps Det Demod Menu ...
Страница 399: ...Chapter 6 399 Menu Maps Display Menu Menu Maps Display Menu ...
Страница 400: ...400 Chapter6 Menu Maps File Menus 1 of 3 Menu Maps File Menus 1 of 3 ...
Страница 401: ...Chapter 6 401 Menu Maps File Menus 2 of 3 Menu Maps File Menus 2 of 3 ...
Страница 402: ...402 Chapter6 Menu Maps File Menus 3 of 3 Menu Maps File Menus 3 of 3 ...
Страница 403: ...Chapter 6 403 Menu Maps Freq Count Marker Menu Menu Maps Freq Count Marker Menu ...
Страница 404: ...404 Chapter6 Menu Maps FREQUENCY Channel Menu Menu Maps FREQUENCY Channel Menu ...
Страница 405: ...Chapter 6 405 Menu Maps Input Output Menu Menu Maps Input Output Menu ...
Страница 406: ...406 Chapter6 Menu Maps Marker Menu Menu Maps Marker Menu ...
Страница 407: ...Chapter 6 407 Menu Maps Marker Menu Menu Maps Marker Menu ...
Страница 408: ...408 Chapter6 Menu Maps Peak Search Menu Menu Maps Peak Search Menu ...
Страница 409: ...Chapter 6 409 Menu Maps Preset Menu Menu Maps Preset Menu ...
Страница 410: ...410 Chapter6 Menu Maps Print Setup Menu Menu Maps Print Setup Menu ...
Страница 411: ...Chapter 6 411 Menu Maps Source Menu Menu Maps Source Menu ...
Страница 412: ...412 Chapter6 Menu Maps SPAN X Scale Menu Menu Maps SPAN X Scale Menu ...
Страница 413: ...Chapter 6 413 Menu Maps Sweep Menu Menu Maps Sweep Menu ...
Страница 414: ...414 Chapter6 Menu Maps System Menu Menu Maps System Menu ...
Страница 415: ...Chapter 6 415 Menu Maps Trace View Menu Menu Maps Trace View Menu ...
Страница 416: ...416 Chapter6 Menu Maps Trig Menu Menu Maps Trig Menu ...
Страница 426: ...426 Index Index Index ...