Tektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication
supercedes that in all previously published material. Specifications and price change privileges reserved.
TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.
Contacting Tektronix
Tektronix, Inc.
14200 SW Karl Braun Drive or P.O. Box 500
Beaverton, OR 97077 USA
For product information, sales, service, and technical support:
In North America, call 1-800-833-9200
Worldwide, visit www.tektronix.com to find contacts in your area.
WARRANTY 16
Tektronix warrants that the product will be free from defects in materials and workmanship for a period of three (3)
years from the date of original purchase from an authorized Tektronix distributor. If the product proves defective
during this warranty period, Tektronix, at its option, either will repair the defective product without charge for parts
and labor, or will provide a replacement in exchange for the defective product. Batteries are excluded from this
warranty. Parts, modules and replacement products used by Tektronix for warranty work may be new or reconditioned
to like new performance. All replaced parts, modules and products become the property of Tektronix.
In order to obtain service under this warranty, Customer must notify Tektronix of the defect before the expiration of
the warranty period and make suitable arrangements for the performance of service. Customer shall be responsible for
packaging and shipping the defective product to the service center designated by Tektronix, shipping charges prepaid,
and with a copy of customer proof of purchase. Tektronix shall pay for the return of the product to Customer if the
shipment is to a location within the country in which the Tektronix service center is located. Customer shall be
responsible for paying all shipping charges, duties, taxes, and any other charges for products returned to any other
locations.
This warranty shall not apply to any defect, failure or damage caused by improper use or improper or inadequate
maintenance and care. Tektronix shall not be obligated to furnish service under this warranty a) to repair damage
resulting from attempts by personnel other than Tektronix representatives to install, repair or service the product; b) to
repair damage resulting from improper use or connection to incompatible equipment; c) to repair any damage or
malfunction caused by the use of non-Tektronix supplies; or d) to service a product that has been modified or integrated
with other products when the effect of such modification or integration increases the time or difficulty of servicing the
product.
THIS WARRANTY IS GIVEN BY TEKTRONIX WITH RESPECT TO THE PRODUCT IN LIEU OF ANY
OTHER WARRANTIES, EXPRESS OR IMPLIED. TEKTRONIX AND ITS VENDORS DISCLAIM ANY
IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
TEKTRONIX' RESPONSIBILITY TO REPAIR OR REPLACE DEFECTIVE PRODUCTS IS THE SOLE
AND EXCLUSIVE REMEDY PROVIDED TO THE CUSTOMER FOR BREACH OF THIS WARRANTY.
TEKTRONIX AND ITS VENDORS WILL NOT BE LIABLE FOR ANY INDIRECT, SPECIAL,
INCIDENTAL, OR CONSEQUENTIAL DAMAGES IRRESPECTIVE OF WHETHER TEKTRONIX OR
THE VENDOR HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
viiiAFG3000 Series Arbitrary/Function Generators Programmer Manual
Preface
This manual provides operating information for the AFG3000 Series
Arbitrary/Function Generators. The following instruments are supported by this
manual:
Getting Started covers operating principles of the instrument, which helps you
understand how your generator operates.
Syntax and Commands defines the command syntax and processing conven-
tions, describes command notation.
Status and Events explains the status information and event messages reported
by the instrument.
Programming Examples contains remote interface application programs to
help you develop programs for your application.
Appendix A: Accessories & Options describes the standard and optional acces-
sories as well as the instrument options.
Appendix B: General Care and Cleaning describes how to take care of the
instrument.
Appendix C: SCPI Conformance Information contains a list of commands and
SCPI information.
Appendix D: Default Setup contains a list of the menus and controls that are
recalled when you push the front-panel Default button.
Appendix E: Reference provides in-depth descriptions of the instrument menu
structures and menu button functions.
AFG3000 Series Arbitrary/Function Generators Programmer Manualix
Preface
Documentation
In addition to this AFG3000 Series Arbitrary/Function Generators Programmer
Manual, the following documentation is available for this instrument:
AFG3000 Series Quick Start User Manual. The quick start user manual provides
information on installation, general features, operating the instrument, and user
interface. It also provides electrical, environmental, and physical specifications for
the instrument.
Built in Help System. The built-in help system that is integrated with the User
Interface application that ships with this instrument.
AFG3000 Series Service Manual. A service manual is available as an optional
accessory. The service manual includes procedures to service the instrument to the
module level. The manual also includes performance verification procedures so
that you can verify performance to the advertised specifications.
xAFG3000 Series Arbitrary/Function Generators Programmer Manual
Getting Started
Getting Started
The AFG3000 Series Arbitrary/Function Generators front panel is divided into
easy to use functional areas. This section provides you with a quick overview of the
controls. Figure 1-1 shows the front panel of dual-channel model.
AFG
DUAL CHANNEL
3102
ARBITRARY/FUNCTION GENERATOR
USB
USB
Memory
Memory
Figure 1-1: Dual-channel model
1GS/s
100MHz
Sine
Square
Ramp
Pulse
Arb
Output
View
Run ModeFunction
Continuous Modulation
Frequency/Period Amplitude/High
Offset/Low
Leading/TrailingDuty/Width
Utility
Edit
SaveRecallMore...
Channel
Ch1
Phase Delay
Ch2
SweepBurst
Help
Default
TriggerTrigger
InputOutputOutput
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-1
Getting Started
Front Panel Controls
This section introduces you to the front panel controls of the instrument and
provides a brief overview on how to use the front panel key controls.
Figure 1-2: Front panel controls
The AFG3000 Series Arbitrary/Function Generators front-panel key controls are
divided into the following categories:
Action buttons
Menu buttons
State buttons
Function buttons
Shortcut buttons
1-2AFG3000 Series Arbitrary/Function Generators Programmer Manual
Getting Started
Action Buttons
The Power (not shown in Figure 1-2), Upper Menu, Top Menu, View, and Manual
Trigger buttons are called action buttons. When you push these action buttons, it
will cause an action.
Power button. Pushing the power button once turns the instrument on. Pushing the
power button when the instrument is on will turn off the instrument.
Upper Menu button. Pushing the Upper Menu button returns the currently
displayed bezel menu to the upper level of the menu tree.
Top Menu button. The Top Menu button is used to return to the top level of the
menu tree from the current menu location.
View button. The View button is used to toggle the screen view format. The
arbitrary/function generator provides the following three screen view formats:
View format 1: Waveform parameter and graph display, see Figure 1-3
View format 2: Graph comparison, see Figure 1-4
View format 3: Waveform parameter comparison, see Figure 1-5 and
Figure 1-6
When the instrument is in one of the three display format, pushing the View button
will toggle through the three views in a repeating cycle in the order described
above.
When the instrument is in the Edit Menu, pushing the View button will toggle
between Edit text and graphical views. This is the only function of the
single-channel model view button.
When the instrument is in the Save/Recall, Utility, Output, or Help menu, pushing
the View button will have no effect.
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-3
Getting Started
View Format 1. Figure 1-3 is a single channel parameter and graph setup display. In
this view, Channel 1 is selected with the Channel Select button. When Channel 2
is selected, the parameters and graph for Channel 2 will be displayed in this view.
You can easily toggle between the information for Channel 1 and Channel 2 with
this view.
Figure 1-3: Waveform parameter and graph display
View Format 2. Figure 1-4 is a graph compare view. In this view, the Channel
Select button selects the active graph. The selected channel is highlighted.
Figure 1-4: Graph comparison
1-4AFG3000 Series Arbitrary/Function Generators Programmer Manual
Getting Started
View Format 3. Figure 1-5 is a channel compare view. In this view, Channel 1 is
selected with the Channel Select button.
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-5
Getting Started
Manual Trigger button. Pushing the Manual Trigger button generates a trigger
event manually. The Manual Trigger is one of the trigger sources for sweep or burst
waveform. If you push the Manual Trigger button, the arbitrary/function generator
will initiate one sweep in the Trigger Sweep mode, or output a waveform that has
the specified number of cycles in the Burst mode. If the instrument is in Gated
mode, it outputs a waveform while the Manual Trigger button is depressed.
Trig ’d LE D . The Trig’d LED is lit whenever the instrument responds to a trigger.
Note that the Trig’d LED is a common display for any trigger signals for channel 1
or channel 2.
Other Action buttons. The Enter button and the following related buttons are also
classified as Action buttons.
Enter button. The Enter button causes a numeric input to be updated.
+/– button. This button is only active when you are setting a value. The +/–
button changes the sign of the currently selected parameter from positive to
negative. If the value is already negative, this button makes it positive.
Menu Buttons
Cancel button. The Cancel button is active when you are setting a value.
Pushing the Cancel button closes the Units menu and restores the previous
value for the selected setting.
When the front-panel controls are locked, you can use the Cancel button to
unlock the front-panel controls. See page 1-10.
Backspace (BKSP) button. The BKSP button is only active when you are
setting a value in the Numeric Input Area. Pushing the BKSP button deletes
the currently selected digit.
The Edit, Utility, Save, Recall, Help, and Default buttons are called Menu buttons.
Edit button. The Edit button opens Edit menu. See Table E-11 on page E-14 for the
Edit menu map.
Utility button. The Utility button opens Utility menu. See Table E-13 on page E-23
for the Utility menu map.
Save button. The Save button opens the Save menu. See Table E-10 on page E-13
for the Save menu map.
Recall button. The Recall button opens the Recall menu. See Table E-10 on
page E-13 for the Recall menu map.
Help button. The Help button opens the built-in Help.
1-6AFG3000 Series Arbitrary/Function Generators Programmer Manual
Getting Started
Default button. The Default button restores the instrument settings to the default
values. When you push this button, you will be prompted on the display with a
pop-up window message requesting you to confirm that you want to restore the
defaults. See Default Setup on page D-1 for the settings when you push the Default
button.
Run Mode buttons. When one of four Run Mode buttons is selected, the menu for
configuring the run mode is displayed on the screen. See State buttons on page 1-7.
State Buttons
The Channel Select, CH1/CH2 Output and Run Mode buttons are called State
buttons.
Ch2
Channel Select button. The Channel Select button directly controls the
Ch1
display, toggling between the two channels. This button is used to select the
channel that you are currently interacting with. Only one channel can be selected
at a time.
When you push the Channel Select button on the Edit, Utility, Save, Recall, or Help
screen, the arbitrary/function generator returns to previous display. The displayed
channels do not toggle if you push the Channel Select button on those screen
menus. After restoring the main display area, pushing the Channel Select button
toggles between CH1 and CH2.
CH1/CH2 Output On button. The arbitrary/function generator allow you to turn on
and off the signal output for CH1 and CH2 independently. You can configure the
signal with the outputs off, to minimize the chance of sending a problematic signal
to your device. You can select either one or both of these buttons. Each button is
lit with an LED when in the On state.
Run Mode buttons. Only one Run Mode menu can be selected for each channel.
The Run Mode buttons are unique because they are both State and Menu buttons.
When one of four buttons is selected, that run mode is activated and the menu for
configuring that run mode is displayed on the screen. The selected button is lit with
an LED.
Continuous
Modulation
Sweep
Burst
If your instrument is a dual-channel model, Run Mode can be set independently for
each channel.
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-7
Getting Started
Select the Run Mode Menu bezel button from the default screen (see page 1-14)
to display the Run Mode menus. The Continuous mode is selected in Figure 1-7. If
you select Modulation, Sweep, or Burst as the Run Mode, the corresponding bezel
menu is highlighted.
Continuous Mode is
selected (active).
These are inactive bezel
menus.
Function Buttons
Figure 1-7: Run Mode menu (Continuous)
Only one of the Function buttons can be selected for each channel at a time. The
selected button will be lit with an LED.
Sine button. Pushing the Sine button selects the sine waveform, causing the Sine
button LED to turn on. See Table E-1 on page E-3 for the menu map.
Square button. Pushing the Square button selects the square waveform, causing the
Square button LED to turn on. See Table E-1 on page E-3 for the menu map.
Ramp button. Pushing the Ramp button selects the ramp waveform, causing the
Ramp button LED to turn on. See Table E-2 on page E-4 for the menu map.
Pulse button. Pushing the Pulse button selects the pulse waveform, causing the
Pulse button LED to turn on. See Table E-3 on page E-4 for the menu map.
Arb button. Pushing the Arb button causes the Arb waveform menu to be displayed
on the screen, and causes the Arb LED to turn on. See Table E-4 on page E-5 for
the menu map.
More... button. Pushing the More... button causes the More waveform menu to be
displayed on the screen, and causes the More... LED to turn on. See Table E-5 on
page E-6 for the menu map.
1-8AFG3000 Series Arbitrary/Function Generators Programmer Manual
Getting Started
Shortcut Buttons
The following six buttons are called Shortcut buttons and are provided as shortcuts
for experienced users. You can push this button while viewing any of the display
types. If you are not in view format 1, 2, or 3 (see page 1-3), pushing the shortcut
button will take you to the last view you used and highlight the selected setting.
Frequency/Period button. This button selects the setting that was last used
(Frequency or Period). If Frequency was selected, you can change the shortcut by
selecting Period with the bezel menu. The next time you push the
Frequency/Period button, Period will be selected. This shortcut button allows you
to select the setting and enter their numeric value using the front panel, without
requiring any bezel menu selection.
Amplitude/High button. This button selects the setting that was last used (Ampli-
tude or High Level).
Offset/Low button. This button selects the setting which was last used (Offset or
Low Level).
Duty/Width button. This button only operates when the Pulse function is selected
for the current channel. Otherwise, the button does nothing when pushed. The
instrument remembers which setting (Duty or Width) was last selected from the
bezel menu and highlights that setting when this shortcut button is pushed.
Knob and Arrow Keys
Leading/Trailing button. This button only operates when the Pulse function is
selected for the current channel, otherwise, the button does nothing when pushed.
The instrument remembers which setting (Leading Edge or Trailing Edge) was
last selected from the bezel menu and highlights that setting when this shortcut
button is pushed.
Phase | Delay button. This shortcut button is different from the other buttons. This
button does not toggle between two parameters. For example, if you push the
Phase | Delay shortcut button in the pulse parameter menu, Delay becomes active.
Pushing the Phase | Delay button again will have no effect, because there is no
Phase parameter in the pulse parameter menu. Similarly, when you push the Phase | Delay button in the Sine, Square, or Ramp parameter menu, Phase becomes
active. Pushing the button again will have no effect, because there is no Delay
parameter in these menus.
The general purpose knob can be used to increase and decrease selected numeric
values. The arrow keys (digit select keys) are used to move the underbar to a field
that contains an editable number. This will allow you to change the digit with the
knob. Refer to page 1-15 for entering or changing numeric values using the knob
and the arrow keys.
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-9
Getting Started
BNC Connectors
USB Memory
Refer to Figure 1-2 on page 1-2 for the locations of the front panel BNC connectors.
CH1 Output. This BNC connector will output the Channel 1 signal. This connector
will be deactivated when the Channel 1 output button is not selected. The load
impedance for this connection can be set in the Output Menu.
CH2 Output. Same functionality as Channel 1 Output. This output is not present in
the single channel instrument model.
Trigger Output. This connector provides a TTL level pulse synchronized with the
Channel 1 output. The connector provides a signal that will allow an oscilloscope
to synchronize with the arbitrary/function generator.
When you synchronize multiple arbitrary/function generators, the Trigger Output
on the master instrument is connected to the Trigger Input of the slave instrument.
Trigger Input. When the arbitrary/function generator is a slave to another device,
The Trigger Input connector will be used to synchronize the arbitrary/function
generator with the master device. Trigger signals from other devices can also be
input here.
The USB Memory connector is a host connector, which allows a USB client
memory device to be connected. You can perform the following tasks:
To Unlock Front Panel
Controls
Save or recall user-defined waveforms to/from a USB memory
Save or recall setups to/from files on a USB memory
Update your arbitrary/function generator firmware
Save a screen image
CAUTION. Do not remove USB memory while writing or reading data. It may cause
data loss and the USB memory may be damaged.
When you attach a USB memory to the instrument, a caution message appears on
the screen. Do not remove the USB memory until the message disappears.
If you remove the USB memory while this caution message is displayed, it may
cause damage to the instrument.
The front panel may be locked by a remote user while the instrument is being
remotely controlled via GPIB, USB or Ethernet. When the front panel is locked, all
keys and buttons are disabled except the power switch. The “Lock” symbol at the
top right of the screen indicates that the instrument front-panel controls are locked.
To unlock the front-panel, use the remote command or push the front-panel Cancel
button twice in a row. This method is not applied if the arbitrary/function generator
is in the GPIB LLO (Local Lockout) state.
1-10AFG3000 Series Arbitrary/Function Generators Programmer Manual
Display Area and Screen Interface
Figure 1-8 shows the main areas of the instrument display.
Getting Started
Main Display Area
Message display area
Main display
area
Level meter
View tab
Numeric input is available
Knob is available
Output status
Bezel menu
Figure 1-8: Screen interface
Pushing the front-panel View button changes the view format of the main display
area. See page 1-3 for screen view formats.
View Tab. The view tabs correspond with the current view format.
Output Status. If the output is set to disable, the Output Off message is displayed
in this area. When you push the front-panel channel output button to enable the
output, the message will disappear.
From the Output menu, you can set the load impedance, invert a waveform, or add
an external signal to the CH1 output. The status will change based on the output
status.
Screen Copy
You can save a screen image of the arbitrary/function generator to a USB memory.
Push the front-panel two arrow keys underneath the rotary knob simultaneously
after setting the display to show the screen you want to save as image.
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-11
Getting Started
Level Meter. Amplitude level is displayed. To protect your DUT (device under test),
use the Output Menu to set the limit values for high level and low level. Figure 1-9
shows Level Meter.
Message Display Area
1
Figure 1-9: Level meter
1. Shows maximum amplitude level of your instrument.
2. Shows the range of high limit and low limit that you have set.
3. Shows the amplitude level that is currently selected.
A message that monitors hardware status such as clock or trigger is displayed in
this area.
The arbitrary/function generator displays a message at the top of the screen, which
conveys the following types of information about hardware status:
External Reference out of range
Waiting for Trigger
You can also display a text message in this area by using the following remote
command. See page 2-21.
2
3
DISPlay[:WINDow]:TEXT[:DATA]
1-12AFG3000 Series Arbitrary/Function Generators Programmer Manual
Getting Started
Bezel Menu Display Area
When you push a front panel button, the instrument displays the corresponding
menu on the right side of the screen. The menu shows the options that are available
when you push the unlabeled bezel buttons directly to the right of the screen. (Some
documentation may also refer to the bezel buttons as side-menu buttons or soft
keys.)
The AFG3000 Series Arbitrary/Function Generators use four types of menu button
status. See Figure 1-10.
Currently selected and active (focused)
Toggle button selection. This shows that
currently selected option (Internal) is
highlighted.
Inactive. This selection is currently not
available.
Normal (default) This shows unselected
state.
Figure 1-10: Graphical representation of button status
Focused (active) – Blue background and white type
The bezel menu item is currently selected.
Non-Focused – Medium gray background and white type, blue box around
type only
There are some toggle button selections within the bezel menus. For example,
Internal and External. You can specify either one but not both of these
parameters.
Inactive – Medium gray background and light gray type
This selection is currently not available because of the other instrument
settings.
Normal (default) – Medium gray background and white type
This is the currently unselected state.
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-13
Getting Started
Waveform Parameters and Numeric Input
This section explains how to set or change the waveform parameters of the
arbitrary/function generator using the front-panel controls or bezel menu selection.
Changing Parameters
Using the Bezel Menu
The arbitrary/function generator outputs a sine waveform of 1 MHz frequency with
1V
by default. You can use the following two methods to set or change the
p-p
waveform parameters:
Using the bezel menu selection
Using the front-panel shortcut buttons (see page 1-17)
Figure 1-11 shows the default display of sine waveform.
Figure 1-11: Default display
Select the Frequency/Period/Phase Menu bezel button from the default display,
you can change the values of frequency, period, or phase.
Figure 1-12: Frequency/Period/Phase Menu
1-14AFG3000 Series Arbitrary/Function Generators Programmer Manual
Getting Started
Numeric Input
If you want to change the frequency value, push the Frequency bezel button. The
value of Freq in main display area changes to “selected status”. The Freq is
displayed in black type inside a white box. See Figure 1-13.
Frequency is selected
(active).
Freq is selected. The cursor is now under “1”.
Figure 1-13: Screen display with Frequency active (1)
To move the cursor, use the arrow keys.
Frequency is selected
(active).
The cursor is moved.
Figure 1-14: Screen display with Frequency active (2)
To change the value, use the general purpose knob. Turn the knob clockwise to
increase the value; turn the knob counterclockwise to decrease the value.
Frequency is selected
(active).
The value is changed to “5”.
Figure 1-15: Screen display with Frequency active (3)
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-15
Getting Started
You can also change the value with the front-panel numeric key-pad. Entering any
value from the numeric key-pad will automatically change the bezel menu to Units.
See Figure 1-16.
The bezel menu is
changed to “Units”.
The value “2” is entered.
Figure 1-16: Screen display with Frequency active (4)
After entering the frequency value, push the Units bezel button or the front-panel
Enter button to complete the entry.
To change the amplitude value, push the Top Menu button, and then select the
Amplitude/Level Menu bezel button. You can change the values of amplitude,
offset, high level, or low level.
Figure 1-17: Amplitude/Level Menu
1-16AFG3000 Series Arbitrary/Function Generators Programmer Manual
Getting Started
Changing Parameters
Using the Shortcut
Buttons
The shortcut buttons are provided for experienced users. The buttons allow you to
select a setup parameter without using any bezel menu selection. The following
example shows how the Frequency/Period shortcut button works.
You can use the shortcut buttons while viewing any of the display formats. Push a
shortcut button to display the last view type and highlight the selected parameter
setting. Figure 1-18 is a sample screen of Pulse Width Modulation parameter menu
display.
Figure 1-18: PWM sample screen
From Figure 1-18, pushing the Frequency/Period shortcut button will change the
bezel menu to look like Figure 1-19.
Frequency is active.
Figure 1-19: PWM parameter menu (Freq is selected)
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-17
Getting Started
You can now change the frequency value. If you push the Frequency/Period
shortcut button again, the active parameter will change to Period. See Figure 1-20.
Period is active.
Figure 1-20: PWM parameter menu (Period is selected)
The Frequency/Period shortcut button is used to select the setting that was last
used (Frequency or Period). If Frequency was selected, you can change the
shortcut by pushing the shortcut button again. The next time you push the
Frequency/Period button, Period will be selected.
NOTE. The Duty/Width and Leading/Trailing shortcut buttons are operational
only when Pulse is selected in the Functional button.
1-18AFG3000 Series Arbitrary/Function Generators Programmer Manual
Rear Panel
120
VA
Getting Started
Figure 1-21 shows the locations of the instrument rear panel connectors.
Security slot
ADD INPUT
LAN
USB
EXT REF OUT
EXT REF INPUT
EXT MODULATION CH2 INPUT
EXT MODULATION CH1 INPUT
Chassis ground screw
GPIB
Figure 1-21: Rear panel connectors
EXT REF INPUT. This input is used when synchronizing multiple arbitrary/function
generators or an arbitrary/function generator and another device.
EXT REF OUTPUT. This output is used when synchronizing multiple arbitrary/function generators or an arbitrary/function generator and another device.
ADD INPUT. (AFG310x and AFG325x) Additional Input connector allows you to
input a signal from some other source and add that signal to CH 1 output.
EXT MODULATION CH 1 INPUT. A signal applied to the External Modulation CH 1
Input connector is used to modulate the CH 1 output signal. The signal input level
applied to this connector will control the modulation depth.
EXT MODULATION CH 2 INPUT. (Dual-channel model only) The External Modulation CH 2 Input connector is used to apply an external modulating signal to the CH
2 output signal. The signal input level applied to this connector will control the
modulation depth.
AFG3000 Series Arbitrary/Function Generators Programmer Manual1-19
Getting Started
USB. The USB connector is used to connect a USB controller.
LAN. This connector is used to connect the arbitrary/function generator to a
network. Connect a 10BASE-T or 100BASE-T cable here.
GPIB. The GPIB connector is used to control the arbitrary/function generator
through remote commands.
Security Slot. Use a standard laptop computer security cable to secure your arbitrary/function generator to your location.
Chassis Ground Screw. The chassis ground screw is used to ground the arbitrary/function generator. Use a unified coarse screw (#6-32, 6.35 mm length or
less).
1-20AFG3000 Series Arbitrary/Function Generators Programmer Manual
Syntax and Commands
Syntax and Commands
This section provides the following information:
Command Syntax defines the command syntax and processing conventions.
Command Groups describes command groups which lists the commands by
function.
Command Descriptions describes the notation of each of the commands in
alphabetical order.
Command Syntax
You can control the operations and functions of the arbitrary/function generator
through the GPIB interface using commands and queries. The related topics listed
below describe the syntax of these commands and queries. The topics also describe
the conventions that the instrument uses to process them. See the Command Groups
on page 2-9 for a listing of the commands by command group, or use the index to
locate a specific command.
Backus-Naur Form Notation. This manual describes the commands and queries
using Backus-Naur Form (BNF) notation. Refer to Table 2-1 for the symbols that
are used.
Table 2-1: BNF notation
SymbolMeaning
< >Defined element
::=Is defined as
|Exclusive OR
{ }Group; one element is required
[ ]Optional; can be omitted
...Previous element(s) may be repeated
( )Comment
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-1
Syntax and Commands
Command and Query
Structure
Commands consist of set commands and query commands (usually simply called
commands and queries). Commands change instrument settings or perform a
specific action. Queries cause the instrument to return data and information about
its status.
Most commands have both a set form and a query form. The query form of the
command is the same as the set form except that it ends with a question mark.
For example, the set command DISPlay:CONTrast has a query form
DISPlay:CONTrast?. Not all commands have both a set and a query form; some
commands are set only and some are query only.
A few commands do both a set and query action. For example, the *CAL? command
runs a self-calibration program on the instrument, then returns the result of the calibration.
A command message is a command or query name, followed by any information
the instrument needs to execute the command or query. Command messages
consist of five element types.
Table 2-2 lists and describes the five different element types.
Table 2-2: Command message elements
SymbolMeaning
<Header>The basic command name. If the header ends with a question mark, the
command is a query. The header may begin with a colon (:) character; if
the command is concatenated with other commands the beginning colon
is required. The beginning colon can never be used with command headers beginning with a star (*).
<Mnemonic>A header subfunction. Some command headers have only one mne-
monic. If a command header has multiple mnemonics, they are always
separated from each other by a colon (:) character.
<Argument>A quantity, quality, restriction, or limit associated with the header. Not all
commands have an argument, while other commands have multiple arguments. Arguments are separated from the header by a <Space>. Arguments are separated from each other by a <Comma>.
<Comma>A single comma between arguments of multiple-argument commands. It
may optionally have white space characters before and after the comma.
<Space>A white space character between command header and argument. It may
optionally consist of multiple white space characters.
2-2AFG3000 Series Arbitrary/Function Generators Programmer Manual
Figure 2-1 shows the five command message elements.
Comma
Header
MMEMory:STATe:LOCK 1, ON
Syntax and Commands
Mnemonics
Space
Arguments
Figure 2-1: Command message elements
Commands. Commands cause the instrument to perform a specific function or
change one of its settings. Commands have the structure:
A command header is made up of one or more mnemonics arranged in a hierarchical or tree structure. The first mnemonic is the base or root of the tree and each
subsequent mnemonic is a level or branch of the previous one. Commands at a
higher level in the tree may affect those at a lower level. The leading colon (:)
always returns you to the base of the command tree.
Queries. Queries cause the arbitrary/function generator to return information about
its status or settings. Queries have the structure:
You can specify a query command at any level within the command tree unless
otherwise noted. These branch queries return information about all the mnemonics
below the specified branch or level.
Query Responses. When a query is sent to the arbitrary/function generator, only
the values are returned. When the returned value is a mnemonic, it is noted in
abbreviated format, as shown in Table 2-3.
Table 2-3: Query response examples
QueryResponse
SOURce:PULSe:DCYcle?50.0
OUTPut:POLarity?NORM
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-3
Syntax and Commands
Command Entry
SCPI Commands and
Queries
Follow these general rules when entering commands:
Enter commands in upper or lower case.
You can precede any command with white space characters. White space char-
acters include any combination of the ASCII control characters 00 through 09
and 0B through 20 hexadecimal (0 through 9 and 11 through 32 decimal).
The instrument ignores commands that consists of just a combination of white
space characters and line feeds.
The arbitrary/function generator uses a command language based on the SCPI standard. The SCPI (Standard Commands for Programmable Instruments) standard
was created by a consortium to provide guidelines for remote programming of
instruments. These guidelines provide a consistent programming environment for
instrument control and data transfer. This environment uses defined programming
messages, instrument responses and data formats that operate across all SCPI
instruments, regardless of manufacturer.
The SCPI language is based on a hierarchical or tree structure that represents a
subsystem (see Figure 2-2). The top level of the tree is the root node; it is followed
by one or more lower-level nodes.
TRIGger
Root nodes
SEQuence
SLOPeSOURceTIMer
Lower-level nodes
Figure 2-2: Example of SCPI subsystem hierarchy tree
You can create commands and queries from these subsystem hierarchy trees.
Commands specify actions for the instrument to perform. Queries return measurement data and information about parameter settings.
2-4AFG3000 Series Arbitrary/Function Generators Programmer Manual
Syntax and Commands
Creating Commands
Parameter Types
SCPI commands are created by stringing together the nodes of a subsystem hierarchy and separating each node by a colon.
In Figure 2-2, TRIGger is the root node and SEQuence, SLOPe, SOURce, and TIMer
are lower level nodes. To create an SCPI command, start with the root node
TRIGger and move down the tree structure adding nodes until you reach the end of
a branch. Most commands and some queries have parameters; you must include a
value for these parameters. The command descriptions, which begin on page 2-15,
list the valid values for all parameters.
For example, TRIGger:SEQuence:SOURce EXTernal is a valid SCPI command
created from the hierarchy tree in Figure 2-2.
Parameters are indicated by angle brackets, such as <file_name>. There are several
different types of parameters, as listed in Table 2-4. The parameter type is listed
after the parameter. Some parameter types are defined specifically for the arbi-
trary/function generator command set and some are defined by SCPI.
Table 2-4: Parameter types used in syntax descriptions
Parameter typeDescriptionExample
arbitrary blockA block of data bytes#512234xxxxx...
where 5 indicates that the following 5 digits (12234) specify the
length of the data in bytes;
xxxxx... indicates the data
NR3 numericFloating point numbers3.1415E-9, -16.1E5
NRf numericFlexible decimal number that
may be type NR1, NR2, or NR3
stringAlphanumeric characters (must
be within quotation marks)
See NR1, NR2, NR3 examples
in this table
“Testing 1, 2, 3”
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-5
Syntax and Commands
Special Characters
Abbreviating Commands,
Queries, and Parameters
The Line Feed (LF) character or the New Line (NL) character (ASCII 10), and all
characters in the range of ASCII 127-255 are defined as special characters. These
characters are used in arbitrary block arguments only; using these characters in
other parts of any command yields unpredictable results.
You can abbreviate most SCPI commands, queries, and parameters to an accepted
short form. This manual shows these commands as a combination of upper and
lower case letters. The upper case letters indicate the accepted short form of a
command, as shown in Figure 2-3. The accepted short form and the long form are
equivalent and request the same action of the instrument.
Long form of a
commandSOURce1:FREQuency 100
Minimum information needed for
accepted short form
Accepted short form
of a command
SOUR1:FREQ 100
Figure 2-3: Example of abbreviating a command
NOTE. The numeric suffix of a command or query may be included in either the
long form or short form. The arbitrary/function generator will default to “1” if no
suffix is used.
2-6AFG3000 Series Arbitrary/Function Generators Programmer Manual
Syntax and Commands
Chaining Commands and
Queries
You can chain several commands or queries together into a single message. To
create a chained message, first create a command or query, then add a semicolon
(;), and finally add more commands or queries and semicolons until you are done.
If the command following a semicolon is a root node, precede it with a colon (:).
Figure 2-4 illustrates a chained message consisting of several commands and
queries. The chained message should end in a command or query, not a semicolon.
Responses to any queries in your message are separated by semicolons.
First command Second command First quer y Second query
The response from this chained message might be: 1.000E0;1.000E-3
Response from first query
Response from second query
Figure 2-4: Example of chaining commands and queries
If a command or query has the same root and lower-level nodes as the previous
command or query, you can omit these nodes. In Figure 2-5, the second command
has the same root node (SEQuence) as the first command, so these nodes can be
omitted.
Figure 2-5: Example of omitting root and lower level nodes
If the decimal numeric argument refers to voltage, frequency, impedance, or time,
you can express it using SI units instead of using the scaled explicit point input
value format <NR3>. (SI units are units that conform to the System International
d’Unites standard.) For example, you can use the input format 200 mV or 1.0 MHz
instead of 200.0E–3 or 1.0E+6, respectively, to specify voltage or frequency.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-7
Syntax and Commands
General Rules for Using
SCPI commands
The following are three general rules for using SCPI commands, queries, and
parameters:
You can use single (‘ ’) or double (“ ”) quotation marks for quoted strings,
but you cannot use both types of quotation marks for the same string.
correct“This string uses quotation marks correctly.”
correct‘This string also uses quotation marks correctly.’
incorrect“This string does not use quotation marks correctly.’
You can use upper case, lower case, or a mixture of both cases for all com-
mands, queries, and parameters.
:SOURCE:FREQUENCY 10MHZ
is the same as
:source:frequency 100mhz
and
:SOURCE:frequency 10MHZ
NOTE. Quoted strings are case sensitive.
No embedded spaces are allowed between or within nodes.
correct:OUTPUT:FILTER:LPASS:FREQUENCY 200MHZ
incorrect:OUTPUT: FILTER: LPASS:FREQUENCY 200MHZ
2-8AFG3000 Series Arbitrary/Function Generators Programmer Manual
Command Groups
Syntax and Commands
This section lists the commands organized by functional group. The Command
Descriptions section, starting on page 2-15, lists all commands alphabetically.
Calibration and Diagnostic Commands. Calibration and Diagnostic commands let
you initiate the instrument self-calibration routines and examine the results of diagnostic tests. Table 2-5 lists Calibration and Diagnostic commands.
Table 2-5: Calibration and Diagnostic commands
HeaderDescription
*CAL?Perform self-calibration and return result status
CALibration[:ALL]Perform self-calibration
DIAGnostic[:ALL]Perform self-test
*TST?Perform self-test and return result status
Display Commands. Display commands let you change the graticule style,
displayed contrast, and other display attributes. Table 2-6 lists and describes
Display commands.
Table 2-6: Display commands
HeaderDescription
DISPlay:CONTrastSet/query the LCD display contrast
DISPlay:SAVer:IMMediateSet screen saver.
DISPlay:SAVer[:STATe]Set/query the screen saver settings
DISPlay[:WINDow]:TEXT[:DATA]Set/query the text message display
DISPlay[:WINDow]:TEXT:CLEarDelete text message
Memory Commands. Memory commands let you change setup memory attributes.
Table 2-7 lists and describes Memory commands.
Table 2-7: Memory commands
HeaderDescription
MEMory:STATe:VALid?Query the availability of setup memory
MEMory:STATe:DELeteDelete the setup memory
MEMory:STATe:LOCKSet/query the lock of setup memory overwrite and deletion
MEMory:STATe:RECall:AUToSet/query the recall of last set memory
*RCLRecall instrument setting from setup memory
*SAVSave instrument setting to setup memory
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-9
Syntax and Commands
Mass Memory Commands. Mass Memory commands let you change mass memory
attributes. Table 2-8 lists and describes Mass Memory commands.
Table 2-8: Mass Memory commands
HeaderDescription
MMEMory:CATalog?Query the status of mass memory
MMEMory:CDIRectorySet/query current directory
MMEMory:DELeteDelete file or directory in mass memory
MMEMory:LOAD:STATeCopy instrument setting in mass memory to setup memory
MMEMory:LOAD:TRACeCopy waveform data file in mass memory to edit memory
MMEMory:LOCK[:STATe]Set/query the lock of mass memory overwrite and deletion
MMEMory:MDIRectoryCreate directory in mass memory
MMEMory:STORe:STATeSave the setup memory status to mass memory
MMEMory:STORe:TRACeSave waveform data file in edit memory to mass memory
Output Commands. Output commands let you set output attributes. Table 2-9 lists
and describes Output commands.
Table 2-9: Output commands
HeaderDescription
OUTPut[1|2]:IMPedanceSet/query impedance
OUTPut[1|2]:POLaritySet/query polarity
OUTPut[1|2][:STATe]Set/query output on or off
OUTPut:TRIGger:MODESet/query the mode of Trigger Output
Source Commands. Source commands let you set waveform output parameters.
Table 2-10 lists and describes Source commands.
SYSTem:PASSword[:CENable]Enable protected commands to function
SYSTem:PASSword[:CENable]:STATe?
SYSTem:PASSword:NEWChange current password
SYSTem:SECurity:IMMediateReset to factory default
SYSTem:ULANguageSet/query language for display screen
SYSTem:VERSion?Return version information
Return security protection state
Synchronization Commands. Synchronization commands let you synchronize the
operation of the instrument. Table 2-13 lists and describes Synchronization
commands.
Table 2-13: Synchronization commands
HeaderDescription
*OPCSet/query operation complete
*WAIWait to continue
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-13
Syntax and Commands
Trace Commands. Trace commands let you set the edit memory and user waveform
memory. Table 2-14 lists and describes Trace commands.
Table 2-14: Trace commands
HeaderDescription
TRACe|DATA:CATalog?Return user waveform memory status
TRACe|DATA:COPYCopy edit memory (or user waveform memory) content to
user waveform memory (or edit memory)
TRACe|DATA[:DATA]Set/query waveform data to edit memory
TRACe|DATA:DELete[:NAME]Delete user waveform memory contents
TRACe|DATA:DEFineSet edit memory content
TRACe|DATA:LOCK[:STATe]Set/query lock/unlock of user waveform memory
TRACe|DATA:POINtsSet/query number of points for waveform data in edit memory
TRACe|DATA[:DATA]:LINEWrite waveform data with interpolation
TRACe|DATA[:DATA]:VALueSet/query waveform data in edit memory
Trig g er C om m an d s . Trigger commands let you control all aspects of arbitrary/function generator triggering. Table 2-15 lists and describes Trigger commands.
Tabl e 2- 1 5: Tr igg e r c o mm a nds
HeaderDescription
ABORtInitialize trigger system
*TRGForce trigger event
TRIGger[:SEQuence]:SLOPeSet/query the slope of trigger signal
TRIGger[:SEQuence]:SOURceSet/query the source of trigger signal
TRIGger[:SEQuence]:TIMerSet/query the period of internal clock
TRIGger[:SEQuence] [:IMMediate] Generate a trigger event
AFG Control. AFG Control command copies setups between two channels.
Table 2-16: AFG Control command
HeaderDescription
AFGControl:CSCopyCopy CH1 (or CH2) setup parameters to CH2 (or CH1)
HCOPy:SDUMp[:IMMediate]Copy screen image and save the file to USB memory.
2-14AFG3000 Series Arbitrary/Function Generators Programmer Manual
Command Descriptions
Syntax and Commands
Commands either set or query instrument values. Some commands both set and
query, some only set, and some only query.
Manual Conventions
ABORt (No Query Form)
Group
Syntax
Arguments
This manual uses the following conventions:
No Query Form indicates set-only commands
A question mark (?) appended to the commands and Query Only indicates
query-only commands
Fully spells out headers, mnemonics, and arguments with the minimal spelling
shown in upper case; for example, to use the abbreviated form of the DISPlay:CONTrast command, just type DISP:CONT
Syntax of some commands varies, depending on the model of arbitrary/func-
tion generator you are using; differences are noted
Initializes all the current trigger system parameters and resets all trigger sequences.
Trigger
ABORt
None
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-15
ABORt
resets the trigger system.
Syntax and Commands
AFGControl:CSCopy (No Query Form)
This command copies setup parameters for one channel to another channel.
If your arbitrary/function generator is a single-channel model, this command is not
supported.
*CAL?
Group
Syntax
Arguments
Examples
Group
Related Commands
AFG Control
AFGControl:CSCopy {CH1|CH2},{CH1|CH2}
CH1|CH2
AFGControl:CSCopy CH1,CH2
copies the CH1 setup parameters into CH2.
This command performs an internal calibration and returns 0 (Pass) or a calibration
error code.
NOTE. The self-calibration can take several minutes to complete. During this time,
the arbitrary/function generator does not execute any commands. Do not power off
the instrument during the self-calibration.
Calibration and Diagnostic
CALibration[:ALL]?
Syntax
Arguments
Returns
Examples
2-16AFG3000 Series Arbitrary/Function Generators Programmer Manual
*CAL?
None
<NR1>
where
<NR1>=0 indicates that the internal calibration completed without errors.
<NR1>≠0 indicates that the arbitrary/function generator detected an error.
*CAL?
performs an internal calibration and returns results. For example, it might return 0,
which indicates that the calibration completed without any errors.
CALibration[:ALL]
Syntax and Commands
The CALibration[:ALL] command performs an internal calibration.
The CALibration[:ALL]? command performs an internal calibration and returns
0 (Pass) or a calibration error code.
NOTE. The self-calibration can take several minutes to complete. During this time,
the arbitrary/function generator does not execute any commands. Do not power off
the instrument during the self-calibration.
Group
Related Commands
Syntax
Arguments
Returns
Examples
*CLS (No Query Form)
Calibration and Diagnostic
*CAL?
CALibration[:ALL]
CALibration[:ALL]?
None
<NR1>
CALibration:ALL
performs an internal calibration.
CALibration:ALL?
performs an internal calibration and returns results. For example, it might return 0,
which indicates that the calibration completed without any errors.
This command clears all the event registers and queues, which are used in the arbitrary/function generator status and event reporting system.
Group
Syntax
Arguments
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-17
Status
*CLS
None
*CLS
clears all the event registers and queues.
Syntax and Commands
DIAGnostic[:ALL]
The DIAGnostic[:ALL] command performs a self-test. The DIAGnostic[:ALL]?
command returns the results after executing the test.
NOTE. The self-test can take several minutes to complete. During this time, the
arbitrary/function generator does not execute any commands. Do not power off the
instrument during the self-test.
Group
Related Commands
Syntax
Arguments
Returns
Examples
Calibration and Diagnostic
*TST?
DIAGnostic[:ALL]
DIAGnostic[:ALL]?
None
<NR1>
where
<NR1>=0 indicates that the self-test completed without errors.
<NR1>≠0 indicates that the arbitrary/function generator detected an error.
DIAGnostic:ALL
performs self-test.
DIAGnostic:ALL?
performs self-test and might return an error code.
2-18AFG3000 Series Arbitrary/Function Generators Programmer Manual
DISPlay:CONTrast
Syntax and Commands
This command sets or queries the contrast of the LCD display.
Group
Syntax
Arguments
Returns
Examples
Display
DISPlay:CONTrast {<contrast>|MINimum|MAXimum}
DISPlay:CONTrast? [MINimum|MAXimum]
<contrast>::=<NR2>
where
<NR2> is a range of display contrast from 0.00 through 1.00 (resolution: 3 digits).
The larger the value, the greater the screen contrast.
MINimum sets the display to the 0 contrast level.
MAXimum sets the display to the largest contrast level.
<NR2>
DISPlay:CONTrast MAXimum
sets the display contrast to the largest contrast level.
DISPlay:SAVer:IMMediate (No Query Form)
This command sets the screen saver state to on regardless of the
DISPlay:SAVer[:STATe]? command setting.
The screen saver will be enabled immediately (without waiting for five minutes).
Group
Related Commands
Syntax
Arguments
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-19
Display
DISPlay:SAVer[:STATe]?
DISPlay:SAVer:IMMediate
None
DISPlay:SAVer:IMMediate
sets the screen saver state to on.
Syntax and Commands
DISPlay:SAVer[:STATe]
This command sets or queries the screen saver setting of the LCD display. When
enabled, the screen saver function automatically starts if no operations are applied
to the instrument front panel for five minutes.
Group
Related Commands
Syntax
Arguments
Returns
Examples
Display
DISPlay:SAVer:IMMediate
DISPlay:SAVer[:STATe] {ON|OFF|<NR1>}
DISPlay:SAVer[:STATe]?
ON or <NR1>≠0 enables the screen saver function.
OFF or <NR1>=0 disables the screen saver function.
<NR1>
DISPlay:SAVer:STATe OFF
disables the screen saver function.
2-20AFG3000 Series Arbitrary/Function Generators Programmer Manual
DISPlay[:WINDow]:TEXT[:DATA]
The DISPlay[:WINDow]:TEXT[:DATA] command displays a text message on the
instrument screen.
The DISPlay[:WINDow]:TEXT[:DATA]? command returns a text string currently
displayed on the instrument screen.
The displayable characters are ASCII code 32 through 126, and the instrument can
display approximately 64 characters.
Syntax and Commands
Group
Syntax
Arguments
Returns
Examples
Display
DISPlay[:WINDow]:TEXT[:DATA] <string>
DISPlay[:WINDow]:TEXT[:DATA]?
<string>
<string>
A currently displayed text message is returned.
DISPlay:WINDow:TEXT:DATA?
returns the currently displayed text message.
DISPlay[:WINDow]:TEXT:CLEar (No Query Form)
This command clears the text message from the display screen.
Group
Display
Syntax
Arguments
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-21
DISPlay[:WINDow]:TEXT:CLEar
None
DISPlay:WINDow:TEXT:CLEar
clears the text message from the screen.
Syntax and Commands
*ESE
This command sets or queries the bits in the Event Status Enable Register (ESER)
used in the status and events reporting system of the arbitrary/function generator.
The query command returns the contents of the ESER.
Group
Related Commands
Syntax
Arguments
Returns
Examples
Status
*CLS, *ESR?, *PSC, *SRE, *STB
*ESE <bit_value>
*ESE?
<bit_value>::=<NR1>
where:
<NR1> is a value in the range of 0 through 255. The binary bits of the ESER are
set according to this value.
<bit_value>
*ESE 177
sets the ESER to 177 (binary 10110001), which sets the PON, CME, EXE and OPC
bits.
*ESE?
might return 186, indicating that the ESER contains the binary value 10111010.
2-22AFG3000 Series Arbitrary/Function Generators Programmer Manual
*ESR?
Syntax and Commands
This query-only command returns the contents of the Standard Event Status
Register (SESR) used in the status events reporting system in the arbitrary/function
generator. *ESR also clears the SESR (since reading the SESR clears it).
Group
Related Commands
Syntax
Arguments
Returns
Examples
Status
*CLS, *ESE?, *SRE, *STB
*ESR?
None
<NR1>
indicates that the contents of the SESR as a decimal integer.
*ESR?
might return 181, which indicates that the SESR contains the binary number
10110101.
HCOPy:SDUMp[:IMMediate] (No query form)
This command copies a screen image and saves the image file to a USB memory.
The default file name is TEK00nnn.BMP, where nnn is a consecutive number from
000 through 999. The image files are saved in a folder named “TEK” in the USB
memory.
Group
Syntax
Arguments
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-23
Screen copy
HCOPy:SDUMp[:IMMediate]
None
HCOPy:SDUMp:IMMediate
copies the screen image and may create a file TEK00001.BMP in a USB memory.
Syntax and Commands
*IDN?
This query-only command returns identification information on the arbitrary/function generator.
This query-only command returns the availability of a setup memory.
Group
Syntax
Arguments
Returns
Examples
2-24AFG3000 Series Arbitrary/Function Generators Programmer Manual
Memory
MEMory:STATe:VALid? {0|1|2|3|4}
0, 1, 2, 3, or 4 specifies the location of setup memory.
<NR1>
1 means that the specified setup memory has been saved.
0 means that the specified setup memory has been deleted.
MEMory:STATe:VALid? 0
might return 1 if the specified setup memory has been saved.
MEMory:STATe:DELete (No Query Form)
This command deletes the contents of specified setup memory. If a specified setup
memory is not allowed to overwrite or delete, this command causes an error.
Syntax and Commands
Group
Syntax
Arguments
Examples
MEMory:STATe:LOCK
Group
Syntax
Memory
MEMory:STATe:DELete {0|1|2|3|4}
0, 1, 2, 3, or 4 specifies the location of setup memory.
MEMory:STATe:DELete 1
deletes the contents of specified setup memory.
This command sets or queries whether to lock the specified setup memory. If you
lock a setup memory, you cannot overwrite or delete the setup file.
You cannot execute this command for the setup memory of location number 0 (last
setup memory).
Memory
MEMory:STATe:LOCK {1|2|3|4},{ON|OFF|<NR1>}
MEMory:STATe:LOCK?{1|2|3|4}
Arguments
Returns
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-25
ON or <NR1>≠0 locks the specified location of setup memory.
OFF or <NR1>=0 allows you to overwrite or delete the specified location of setup
memory.
<NR1>
MEMory:STATe:LOCK 1,ON
locks the setup memory of location number 1.
Syntax and Commands
MEMory:STATe:RECall:AUTo
This command sets or queries whether to enable the automatic recall of last setup
memory when powered-on. The next time you apply the power, the arbitrary/function generator will automatically recall the settings you used when you powered off
the instrument.
If you select OFF, the default setups are recalled when you power on the instrument.
Group
Syntax
Arguments
Returns
Examples
Memory
MEMory:STATe:RECall:AUTo {ON|OFF|<NR1>}
MEMory:STATe:RECall:AUTo?
ON or <NR1>≠0 enables the recall of the setup memory you last used before
powering off the instrument.
OFF or <NR1>=0 disables the last setup recall function.
<NR1>
MEMory:STATe:RECall:AUTo ON
sets the instrument to recall the last setup memory when powered-on.
2-26AFG3000 Series Arbitrary/Function Generators Programmer Manual
MMEMory:CATalog?
Syntax and Commands
This query-only command returns the current state of the mass storage system
(USB memory).
where:
The first <NR1> indicates that the total amount of storage currently used, in bytes.
The second <NR1> indicates that the free space of mass storage, in bytes.
<file_name> is the exact name of a file.
<file_type> is DIR for directory, otherwise it is blank.
<file_size> is the size of the file, in bytes.
MMEMory:CATalog?
might return the following response:
32751616,27970560,”SAMPLE1.TFS,,5412”
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-27
Syntax and Commands
MMEMory:CDIRectory
This command changes the current working directory in the mass storage system.
Group
Syntax
Arguments
Returns
Examples
Mass Memory
MMEMory:CDIRectory [<directory_name>]
MMEMory:CDIRectory?
<directory_name>::=<string> indicates the current working directory for the mass
storage system.
If you do not specify a parameter, the directory is set to the *RST value.
At *RST, this parameter is set to the root.
<directory_name>::=<string>
MMEMory:CDIRectory ”/AFG/WORK0”
changes the current directory to /AFG/WORK0.
MMEMory:DELete (No Query Form)
This command deletes a file or directory from the mass storage system. If a specified file in the mass storage is not allowed to overwrite or delete, this command
causes an error. You can delete a directory if it is empty.
Group
Syntax
Arguments
Examples
2-28AFG3000 Series Arbitrary/Function Generators Programmer Manual
Mass Memory
MMEMory:DELete <file_name>
<file_name>::=<string> specifies a file to be deleted.
MMEMory:DELete ”TEK001.TFW”
deletes the specified file from the mass storage.
MMEMory:LOAD:STATe (No Query Form)
This command copies a setup file in the mass storage system to an internal setup
memory. If a specified internal setup memory is locked, this command causes an
error.
When you power off the instrument, the setups are automatically overwritten in the
setup memory 0 (last setup memory).
0, 1, 2, 3, or 4 specifies the location of setup memory.
<file_name>::=<string> specifies a setup file to be copied.
MMEMory:LOAD:STATe 1,”SETUP1.TFS”
copies a file named SETUP1.TFS in the mass storage into the internal memory
location 1.
MMEMory:LOAD:TRACe (No Query Form)
This command copies a waveform data file in the mass storage system to Edit
Memory. If the file format is different, this command causes an error.
Group
Mass Memory
Related Commands
Syntax
Arguments
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-29
MMEMory:STORe:TRACe
MMEMory:LOAD:TRACe EMEMory,<file_name>
<file_name>::=<string> specifies a waveform data file to be copied.
MMEMory:LOAD:TRACe EMEMory,”TEK001.TFW”
copies a file named TEK001.TFW in the mass storage into Edit Memory.
Syntax and Commands
MMEMory:LOCK[:STATe]
This command sets or queries whether to lock a file or directory in the mass storage
system. If you lock a file or directory, you cannot overwrite or delete it.
Group
Syntax
Arguments
Returns
Examples
Mass Memory
MMEMory:LOCK[:STATe]<file_name>,{ON|OFF|<NR1>}
MMEMory:LOCK[:STATe]<file_name>?
ON or <NR1>≠0 locks a file or directory in the mass storage system.
OFF or <NR1>=0 allows you to overwrite or delete a file or directory in the mass
storage system.
<NR1>
MEMory:LOCK[:STATe] ”SETUP1.TFS”,ON
locks the file “SETUP1.TFS”.
MMEMory:MDIRectory (No Query Form)
This command creates a directory in the mass storage system. If the specified directory is locked in the mass storage system, this command causes an error.
Group
Syntax
Arguments
Examples
2-30AFG3000 Series Arbitrary/Function Generators Programmer Manual
Mass Memory
MMEMory:MDIRectory <directory_name>
<directory_name>::=<string> specifies a directory name to be created.
MMEMory:MDIRectory ”SAMPLE1”
creates a directory named “SAMPLE1” in the mass storage system.
MMEMory:STORe:STATe (No Query Form)
This command copies a setup file in the setup memory to a specified file in the
mass storage system. If the specified file in the mass storage system is locked, this
command causes an error. You cannot create a new file if the directory is locked. If
the setup memory is deleted, this command causes an error. <file_name> is a
quoted string that defines the file name and path.
Syntax and Commands
Group
Related Commands
Syntax
Arguments
Examples
Mass Memory
MMEMory:LOAD:STATe
MMEMory:LOCK[:STATe]
MMEMory:STORe:STATe{0|1|2|3|4},<file_name>
0, 1, 2, 3, or 4 specifies the location of setup memory.
<file_name>::=<string> specifies a file name in the mass storage system. The
<file_name> includes path. Path separators are forward slashes (/).
MMEMory:STORe:STATe 1,”SETUP1.TFS”
Copies the setup file in the setup memory location 1 to a file named
“SETUP1.TFS” in the mass storage system.
MMEMory:STORe:TRACe (No Query Form)
This command copies a waveform data file in the Edit Memory to a file in the mass
storage system. If the file in the mass storage is locked, this command causes an
error. You cannot create a new file if the directory is locked.
Group
Related Commands
Syntax
Arguments
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-31
Mass Memory
MMEMory:LOCK[:STATe]
MMEMory:LOAD:TRACe
MMEMory:STORe:TRACe EMEMory,<file_name>
<file_name>::=<string> specifies a file name in the mass storage system. The
<file_name> includes path. Path separators are forward slashes (/).
MMEMory:STORe:TRACe EMEMory,”SAMPLE1.TFW”
Copies the content of EMEMory to a file named “SAMPLE1.TFW” in the mass
storage system.
Syntax and Commands
*OPC
This command generates the operation complete message by setting bit 0 in the
Standard Event Status Register (SESR) when all pending commands that generate
an OPC message are complete.
The query command places the ASCII character “1” into the output queue when all
such OPC commands are complete.
*OPT?
Group
Syntax
Arguments
Returns
Examples
Group
Synchronization
*OPC
*OPC?
None
<execution complete>::=1
where “1” indicates that all pending operations are complete.
*OPC?
might return 1 to indicate that all pending OPC operations are finished.
This query-only command returns a list of the options installed in your arbitrary/function generator.
System
Syntax
Arguments
Returns
Examples
2-32AFG3000 Series Arbitrary/Function Generators Programmer Manual
*OPT?
None
<OPT>[,<OPT>[,<OPT>[,<OPT>]]]
*OPT?
might return 0, which indicates no option is installed in the instrument.
OUTPut[1|2]:IMPedance
Syntax and Commands
The OUTPut:IMPedance command sets the output load impedance for the specified
channel. The specified value is used for amplitude, offset, and high/low level
settings. You can set the impedance to any value from 1 Ω to 10 kΩ with resolution
of 1 Ω or 3 digits. The default value is 50 Ω .
The OUTPut:IMPedance? command returns the current load impedance setting in
ohms. If the load impedance is set to INFinity, the query command returns
“9.9E+37”.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-33
Syntax and Commands
OUTPut[1|2]:POLarity
This command inverts a specified output waveform relative to the offset level. The
query command returns the polarity for the specified channel.
Group
Syntax
Arguments
Returns
Examples
OUTPut[1|2][:STATe]
Group
Output
OUTPut[1|2]:POLarity{NORMal|INVerted}
OUTPut[1|2]:POLarity?
NORMal sets the specified output waveform polarity to Normal.
INVerted sets the specified output waveform polarity to Inverted.
NORM|INV
OUTPut1:POLarity NORMal
sets the CH 1 waveform polarity to Normal.
This command sets or query whether to enable the arbitrary/function generator
output for the specified channel.
Output
Syntax
Arguments
Returns
Examples
2-34AFG3000 Series Arbitrary/Function Generators Programmer Manual
OUTPut[1|2][:STATe] {ON|OFF|<NR1>}
OUTPut[1|2][:STATe]?
ON or <NR1>≠0 enables the arbitrary/function generator output.
OFF or <NR1>=0 disables the arbitrary/function generator output.
<NR1>
OUTPut1:STATe ON
sets the arbitrary/function generator CH 1 output to ON.
OUTPut:TRIGger:MODE
Syntax and Commands
This command sets or queries the mode (trigger or sync) for Trigger Output signal.
When the burst count is set to Inf-Cycles in burst mode, TRIGger indicates that the
infinite number of cycles of waveform will be output from the Trigger Output
connector.
When the burst count is set to Inf-Cycles in burst mode, SYNC indicates that one
pulse waveform is output from the Trigger Output connector when the Inf-Cycles
starts.
When Run Mode is specified other than Burst Inf-Cycles, TRIGger and SYNC
have the same effect.
Group
Syntax
Arguments
Returns
Examples
Output
OUTPut:TRIGger:MODE {TRIGger|SYNC}
OUTPut:TRIGger:MODE?
TRIGger means TRIGger is selected for Trigger Out.
SYNC means SYNC is selected for Trigger Out.
TRIG|SYNC
OUTPut:TRIGger:MODE SYNC
outputs one cycle waveform from the Trigger Output connector when Inf-Cycles
starts.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-35
Syntax and Commands
*PSC
This command sets and queries the power-on status flag that controls the automatic
power-on execution of SRER and ESER. When *PSC is true, SRER and ESER are
set to 0 at power-on. When *PSC is false, the current values in the SRER and ESER
are preserved in nonvolatile memory when power is shut off and are restored at
power-on.
Group
Syntax
Arguments
Returns
Examples
*RCL (No Query Form)
Status
*PSC <NR1>
*PSC?
<NR1>=0 sets the power-on status clear flag to false, disables the power-on clear,
and allows the instrument to possibly assert SRQ after power-on.
<NR1>≠0 sets the power-on status clear flag true. Sending *PSC 1 therefore
enables the power-on status clear and prevents any SRQ assertion after power-on.
<NR1>
*PSC 0
sets the power-on status clear flag to false.
This command restores the state of the instrument from a copy of the settings stored
in the setup memory. The settings are stored using the *SAV command. If the specified setup memory is deleted, this command causes an error.
Group
Related Commands
Syntax
Arguments
Examples
2-36AFG3000 Series Arbitrary/Function Generators Programmer Manual
Memory
*SAV
*RCL {0|1|2|3|4}
0, 1, 2, 3, or 4 specifies the location of setup memory.
*RCL 3
restores the instrument from a copy of the settings stored in memory location 3.
*RST (No Query Form)
Syntax and Commands
This command resets the instrument to the factory default settings. This command
is equivalent to pushing the Default button on the front panel. The default values
are listed in Default Settings on page D-1.
Group
Syntax
Arguments
Examples
*SAV (No Query Form)
Group
System
*RST
None
*RST
resets the arbitrary/function generator settings to the factory defaults.
This command stores the current settings of the arbitrary/function generator to a
specified setup memory location.
A setup memory location numbered 0 (last setup memory) is automatically overwritten by the setups when you power off the instrument.
If a specified numbered setup memory is locked, this command causes an error.
Memory
Related Commands
Syntax
Arguments
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-37
*RCL
*SAV {0|1|2|3|4}
0, 1, 2, 3, or 4 specifies the location of setup memory.
*SAV 2
saves the current instrument state in the memory location 2.
Syntax and Commands
[SOURce[1|2]]:AM[:DEPTh]
This command sets or queries the modulation depth of AM modulation for the
specified channel. You can set the modulation depth from 0.0% to 120.0% with
resolution of 0.1%.
Group
Syntax
Arguments
Returns
Examples
Source
[SOURce[1|2]]:AM:DEPTh{<depth>|MINimum|MAXimum}
[SOURce[1|2]]:AM:DEPTh?[MINimum|MAXimum]
<depth>::=<NR2>[<units>]
where
<NR2> is the depth of modulating frequency.
<units>::=PCT
MINimum sets the modulation depth to minimum value.
MAXimum sets the modulation depth to maximum value.
<depth>
SOURce1:AM:DEPth MAXimum
sets the depth of modulating signal on CH 1 to the maximum value.
2-38AFG3000 Series Arbitrary/Function Generators Programmer Manual
[SOURce[1|2]]:AM:INTernal:FREQuency
This command sets or queries the internal modulation frequency of AM modulation for the specified channel. You can use this command only when the internal
modulation source is selected. You can set the internal modulation frequency from
2 mHz to 50.00 kHz with resolution of 1 mHz.
You can select the source of modulating signal by using the
[SOURce[1|2]]:AM:SOURce [INTernal|EXTernal] command.
<frequency>::=<NRf>[<units>]
where
<NRf> is the modulation frequency.
<units>::=[Hz | kHz | MHz]
<frequency>
SOURce1:AM:INTernal:FREQuency 10kHz
sets the CH 1 internal modulation frequency to 10 kHz.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-39
Syntax and Commands
[SOURce[1|2]]:AM:INTernal:FUNCtion
This command sets or queries the modulating waveform of AM modulation for the
specified channel. You can use this command only when the internal modulation
source is selected.
If you specify EFILe when there is no EFILe or the EFILe is not yet defined, this
command causes an error.
2-40AFG3000 Series Arbitrary/Function Generators Programmer Manual
SOURce1:AM:INTernal:FUNCtion SQUare
selects Square as the shape of modulating waveform for the CH 1 output.
[SOURce[1|2]]:AM:INTernal:FUNCtion:EFILe
This command sets or queries an EFILe name used as a modulating waveform for
AM modulation. A file name must be specified in the mass storage system. This
command returns “ ” if there is no file in the mass storage.
<file_name>::=<string> specifies a file name in the mass storage system. The
<file_name> includes path. Path separators are forward slashes (/).
<file_name>
SOURce1:AM:INTernal:FUNCtion:EFILe “SAMPLE1”
sets a file named “SAMPLE1” in the mass storage.
[SOURce[1|2]]:AM:SOURce
This command sets or queries the source of modulating signal of AM modulation
for the specified channel.
Group
Source
Syntax
Arguments
Returns
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-41
[SOURce[1|2]]:AM:SOURce [INTernal|EXTernal]
[SOURce[1|2]]:AM:SOURce?
INTernal means that the carrier waveform is modulated with an internal source.
EXTernal means that the carrier waveform is modulated with an external source.
INT|EXT
SOURce1:AM:SOURce INTernal
sets the CH 1 source of modulating signal to internal.
Syntax and Commands
[SOURce[1|2]]:AM:STATe
This command enables or disables AM modulation for the specified channel. The
query command returns the state of AM modulation.
Group
Syntax
Arguments
Returns
Examples
Source
[SOURce[1|2]]:AM:STATe {ON|OFF|<NR1>}
[SOURce[1|2]]:AM:STATe?
ON or <NR1>≠0 enables AM modulation.
OFF or <NR1>=0 disables AM modulation.
<NR1>
SOURce1:AM:STATe ON
enables the CH 1 AM modulation.
[SOURce[1|2]]:BURSt:MODE
This command sets or queries the burst mode for the specified channel.
Group
Source
Syntax
Arguments
Returns
Examples
2-42AFG3000 Series Arbitrary/Function Generators Programmer Manual
[SOURce[1|2]]:BURSt:MODE{TRIGgered|GATed}
[SOURce[1|2]]:BURSt:MODE?
TRIGgered means that triggered mode is selected for burst mode.
GATed means that gated mode is selected for burst mode.
TRIG|GAT
SOURce1:BURSt:MODE TRIGgered
selects triggered mode.
[SOURce[1|2]]:BURSt:NCYCles
This command sets or queries the number of cycles (burst count) to be output in
burst mode for the specified channel. The query command returns 9.9E+37 if the
burst count is set to INFinity.
<cycles>::=<NRf>
where
<NRf> is the burst count.
The burst count ranges from 1 to 1,000,000.
INFinity sets the burst count to infinite count.
MINimum sets the burst count to minimum count.
MAXimum sets the burst count to maximum count.
<cycles>
SOURce1:BURSt:NCYCles 2
sets the CH 1 burst count to 2.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-43
Syntax and Commands
[SOURce[1|2]]:BURSt[:STATe]
This command enables or disables the burst mode for the specified channel. The
query command returns the state of burst mode.
Group
Syntax
Arguments
Returns
Examples
Source
[SOURce[1|2]]:BURSt:STATe {ON|OFF|<NR1>}
[SOURce[1|2]]:BURSt:STATe?
ON or <NR1>≠0 enables the burst mode.
OFF or <NR1>=0 disables the burst mode.
<NR1>
SOURce1:BURSt:STATe ON
enables the burst mode for the CH 1.
2-44AFG3000 Series Arbitrary/Function Generators Programmer Manual
[SOURce[1|2]]:BURSt:TDELay
This command sets or queries delay time in the burst mode for the specified
channel. It specifies a time delay between the trigger and the signal output. This
command is available only in the Triggered burst mode.
The setting range is 0.0 ns to 85.000 s with resolution of 100 ps or 5 digits.
NOISe indicates that the internal noise is added to the output signal.
EXTernal indicates that an external signal is added to the CH 1 output signal of the
AFG3100 or AFG3200 series arbitrary/function generators.
BOTH indicates that the internal noise and an external signal are added to the CH 1
output signal of the AFG3100 or AFG3200 series arbitrary/function generators.
“” disables the internal noise add and external signal add function.
“NOIS”|“EXT”|“BOTH”|“”
Examples
2-46AFG3000 Series Arbitrary/Function Generators Programmer Manual
SOURce1:COMBine:FEED EXTernal
adds an external signal to the CH 1 output signal.
[SOURce[1|2]]:FM[:DEViation]
This command sets or queries the peak frequency deviation of FM modulation for
the specified channel. The setting range of frequency deviation depends on the
waveform selected as the carrier. For more information, refer to the specifications
page of Quick Start User Manual.
<deviation>::=<NRf>[<units>]
where
<NRf> is the frequency deviation.
<units>::=[Hz | kHz | MHz]
<deviation>
SOURce1:FM:DEViation 1.0MHz
sets the CH 1 frequency deviation to 1.0 MHz.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-47
Syntax and Commands
[SOURce[1|2]]:FM:INTernal:FREQuency
This command sets or queries the internal modulation frequency of FM modulation
for the specified channel. You can use this command only when the internal modulation source is selected.
You can set the internal modulation frequency from 2 mHz to 50.00 kHz with resolution of 1 mHz.
You can select the source of modulating signal by using the
[SOURce[1|2]]:FM:SOURce [INTernal|EXTernal] command.
<frequency>::=<NRf>[<units>]
where
<NRf> is the modulation frequency.
<units>::=[Hz | kHz | MHz]
<frequency>
SOURce1:FM:INTernal:FREQuency 10kHz
sets the CH 1 internal modulation frequency to 10 kHz.
2-48AFG3000 Series Arbitrary/Function Generators Programmer Manual
[SOURce[1|2]]:FM:INTernal:FUNCtion
This command sets or queries the modulating waveform of FM modulation for the
specified channel. You can use this command only when the internal modulation
source is selected.
If you specify EFILe when there is no EFILe or the EFILe is not yet defined, this
command causes an error.
selects Square as the shape of modulating waveform for the CH 1 output.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-49
Syntax and Commands
[SOURce[1|2]]:FM:INTernal:FUNCtion:EFILe
This command sets or queries an EFILe name used as a modulating waveform for
FM modulation. A file name must be specified in the mass storage system. This
command returns “ ” if there is no file in the mass storage.
<file_name>::=<string> specifies a file name in the mass storage system. The
<file_name> includes path. Path separators are forward slashes (/).
<file_name>
SOURce1:FM:INTernal:FUNCtion:EFILe “SAMPLE1”
sets a file named “SAMPLE1” in the mass storage.
[SOURce[1|2]]:FM:SOURce
This command sets or queries the source of modulating signal of FM modulation
for the specified channel.
Group
Source
Syntax
Arguments
Returns
Examples
2-50AFG3000 Series Arbitrary/Function Generators Programmer Manual
[SOURce[1|2]]:FM:SOURce [INTernal|EXTernal]
[SOURce[1|2]]:FM:SOURce?
INTernal means that the carrier waveform is modulated with the internal source.
EXTernal means that the carrier waveform is modulated with an external source.
INT|EXT
SOURce1:FM:SOURce INTernal
sets the CH 1 source of modulating signal to internal.
[SOURce[1|2]]:FM:STATe
This command enables or disables FM modulation. The query command returns
the state of FM modulation.
Syntax and Commands
Group
Syntax
Arguments
Returns
Examples
Source
[SOURce[1|2]]:FM:STATe {ON|OFF|<NR1>}
[SOURce[1|2]]:FM:STATe?
ON or <NR1>≠0 enables FM modulation.
OFF or <NR1>=0 disables FM modulation.
<NR1>
SOURce1:FM:STATe ON
enables the CH 1 FM modulation.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-51
Syntax and Commands
[SOURce[1|2]]:FREQuency:CENTer
This command sets or queries the center frequency of sweep for the specified
channel. This command is always used with the
[SOURce[1|2]]:FREQuency:SPAN command. The setting range of center
frequency depends on the waveform selected for sweep.
<frequency>::=<NRf>[<units>]
where
<NRf> is the center frequency.
<units>::=[Hz | kHz | MHz]
<frequency>
SOURce1:FREQuency:CENTer 550kHz
sets the CH 1 center frequency to 550 kHz.
2-52AFG3000 Series Arbitrary/Function Generators Programmer Manual
[SOURce[1|2]]:FREQuency:CONCurrent[:STATe]
This command enables or disables the function to copy the frequency (or period)
of one channel to another channel.
The[SOURce[1|2]]:FREQuency:CONCurrent command copies the frequency (or
period) of the channel specified by the header suffix to another channel. If you
specify CH 1 with the header, the CH 1 frequency will be copied to CH 2.
The[SOURce[1|2]]:FREQuency:CONCurrent? command returns “0” (off) or “1”
(on).
If your arbitrary/function generator is single-channel model, this command is not
supported.
Syntax and Commands
Group
Syntax
Arguments
Returns
Examples
Source
[SOURce[1|2]]:FREQuency:CONCurrent {ON|OFF|<NR1>}
[SOURce[1|2]]:FREQuency:CONCurrent?
ON or <NR1>≠0 enables the concurrent copy function.
OFF or <NR1>=0 disables the concurrent copy function.
<NR1>
SOURce1:FREQuency:CONCurrent ON
copies the frequency value of CH 1 to CH 2.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-53
Syntax and Commands
[SOURce[1|2]]:FREQuency[:CW|:FIXed]
This command sets or queries the frequency of output waveform for the specified
channel. This command is available when the Run Mode is set to other than Sweep.
The setting range of output frequency depends on the type of output waveform. If
you change the type of output waveform, it might change the output frequency
because changing waveform types impacts on the setting range of output
frequency. The resolution is 1 μHz or 12 digits. For more information on the setting
range, refer to the specifications page of Quick Start User Manual.
<frequency>::=<NRf>[<units>]
where
<NRf> is the output frequency.
<units>::=[Hz | kHz | MHz]
<frequency>
SOURce1:FREQuency:FIXed 500kHz
sets the CH 1 output frequency to 500 kHz when the Run Mode is set to other than
Sweep.
2-54AFG3000 Series Arbitrary/Function Generators Programmer Manual
[SOURce[1|2]]:FREQuency:MODE
This command sets or queries the frequency sweep state. You can select sine,
square, ramp, or arbitrary waveform for sweep. The arbitrary/function generator
automatically changes to the Continuous mode if any waveform is selected other
than sine, square, ramp, or an arbitrary waveform.
CW|FIXed means that the frequency is controlled by the
[SOURce[1|2]]:FREQuency[:CW|:FIXed] command. The sweep is invalid.
SWEep means that the output frequency is controlled by the sweep command set.
The sweep is valid.
CW|FIXed|SWEep
SOURce1:FREQuency:MODE SWEep
specifies the sweep command set for controlling the CH 1 output frequency.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-55
Syntax and Commands
[SOURce[1|2]]:FREQuency:SPAN
This command sets or queries the span of frequency sweep for the specified
channel. This command is always used with the
[SOURce[1|2]]:FREQuency:CENTer command. The setting range of frequency
span depends on the waveform selected for sweep.
<frequency>::=<NRf>[<units>]
where
<NRf> is the frequency span.
<units>::=[Hz | kHz | MHz]
<frequency>
SOURce1:FREQuency:SPAN 900 kHz
sets the CH 1 frequency span to 900 kHz.
2-56AFG3000 Series Arbitrary/Function Generators Programmer Manual
[SOURce[1|2]]:FREQuency:STARt
This command sets or queries the start frequency of sweep for the specified
channel. This command is always used with the
[SOURce[1|2]]:FREQuency:STOP command. The setting range of start frequency
depends on the waveform selected for sweep. For more information on the setting
range, refer to the specifications page of Quick Start User Manual.
<frequency>::=<NRf>[<units>]
where
<NRf> is the start frequency.
<units>::=[Hz | kHz | MHz]
<frequency>
SOURce1:FREQuency:STARt 10kHz
sets the sweep start frequency of CH 1 to 10 kHz.
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-57
Syntax and Commands
[SOURce[1|2]]:FREQuency:STOP
This command sets or queries the start frequency of sweep for the specified
channel. This command is always used with the
[SOURce[1|2]]:FREQuency:STARt command. The setting range of stop
frequency depends on the waveform selected for sweep. For more information on
the setting range, refer to the specifications page of Quick Start User Manual.
<frequency>::=<NRf>[<units>]
where
<NRf> is the hop frequency.
<units>::=[Hz | kHz | MHz]
<frequency>
SOURce1:FSKey:FREQuency 1.0MHz
sets the hop frequency of CH 1 FSK modulation to 1.0 MHz.
[SOURce[1|2]]:FSKey:INTernal:RATE
This command sets or queries the internal modulation rate of FSK modulation for
the specified channel. You can use this command only when the internal modulation source is selected.
Group
Syntax
Arguments
Returns
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-59
<rate>::=<NRf>[<units>]
where
<NRf> is the modulation rate.
<units>::=[Hz | kHz | MHz]
<rate>
SOURce1:FSKey:INTernal:RATE 50Hz
sets the CH 1 internal modulation rate to 50 Hz.
Syntax and Commands
[SOURce[1|2]]:FSKey:SOURce
This command sets or queries the source of modulation signal of FSK modulation
for the specified channel.
Group
Syntax
Arguments
Returns
Examples
Source
[SOURce[1|2]]:FSKey:SOURce [INTernal|EXTernal]
[SOURce[1|2]]:FSKey:SOURce?
INTernal means that the carrier waveform is modulated with an internal source.
EXTernal means that the carrier waveform is modulated with an external source.
INT|EXT
SOURce1:FSKey:SOURce INTernal
sets the CH 1 source of modulating signal to internal.
[SOURce[1|2]]:FSKey:STATe
This command enables or disables FSK modulation. The query command returns
the state of FSK modulation.You can select a sine, square, ramp, or arbitrary waveform for the carrier waveform.
Group
Syntax
Arguments
Returns
Examples
2-60AFG3000 Series Arbitrary/Function Generators Programmer Manual
Source
[SOURce[1|2]]:FSKey:STATe {ON|OFF|<NR1>}
[SOURce[1|2]]:FSKey:STATe?
ON or <NR1>≠0 enables FSK modulation.
OFF or <NR1>=0 disables FSK modulation.
<NR1>
SOURce1:FSKey:STATe ON
enables the CH 1 FSK modulation.
[SOURce[1|2]]:FUNCtion:EFILe
This command sets or queries an EFILe name used as an output waveform. A file
name must be specified in the mass storage system. This command returns “ ” if
there is no file in the mass storage.
Syntax and Commands
Group
Syntax
Arguments
Returns
Examples
Source
[SOURce[1|2]]:FUNCtion:EFILe <file_name>
[SOURce[1|2]]:FUNCtion:EFILe?
<file_name>::=<string> specifies a file name in the mass storage system. The
<file_name> includes path. Path separators are forward slashes (/).
<file_name>
SOURce1:FUNCtion:EFILe “SAMPLE1”
sets a file named “SAMPLE1” in the mass storage.
[SOURce[1|2]]:FUNCtion:RAMP:SYMMetry
This command sets or queries the symmetry of ramp waveform for the specified
channel. The setting range is 0.0% to 100.0%.
Group
Source
Syntax
Arguments
Returns
Examples
AFG3000 Series Arbitrary/Function Generators Programmer Manual2-61
<symmetry>::=<NR2>[<units>]
where
<NR2> is the symmetry.
<units>::=PCT
<symmetry>
SOURce1:FUNCtion:RAMP:SYMMetry 80.5
sets the symmetry of the CH 1 ramp waveform to 80.5%.
Syntax and Commands
[SOURce[1|2]]:FUNCtion[:SHAPe]
This command sets or queries the shape of the output waveform. When the specified user memory is deleted, this command causes an error if you select the user
memory.
If you select a waveform shape that is not allowed with a particular modulation,
sweep, or burst, the Run mode will automatically be changed to Continuous.
If you specify EFILe when there is no EFILe or the EFILe is not yet defined, this
command causes an error.
If you change the type of output waveform, it might change the output frequency
because changing waveform types impacts the setting range of output frequency.
USER[1]|USER2|USER3|USER4|EMEMory
A user defined waveform saved in the user waveform memory or the EMEMory
can be selected as an output waveform.
2-62AFG3000 Series Arbitrary/Function Generators Programmer Manual
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.