PH 415 Computer Interfacing
OSU logo
The content of this page is undergoing revision and will be moved to another site soon.
Tektronix AFG3021B Function Generator

Table of Contents

Specifications for the Tektronix AFG3021B Arbitrary Function Generator

  • USB client port on the back and a USB host port on the front.
  • 25 MHz sine wave output.

Programming Syntax

  • The reference manual for the AFG3000 series explains the command sequences. Notice the SCPI compliance.

Detecting and Initializing

  • usb_devices_raw.py uses PyVisa to find all the IO devices. Notice the USB list, if the USB instruments have been switched on and connected.
  • usb_devices.py searches through all USB devices and returns a handle to the scope with the serial number specified. It also returns a handle to the AFG3021B with the specified serial number. Distinguishing with particular serial numbers enables one to use multiple identical instruments.
  • initialize_fg_scope.py initializes both devices to compatible operating conditions. initialize_fg_scope_commands.txt contains the actual commands determined from the programming manual.