PyTek DocumentationRelease 1.1 (v1.1.1.0-x-dev)Brian MearnsApril 14, 2014
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)Or, from source:$ python setup.py installSerial?We don’t provide a serial port implementation. We sug
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)>>> tds.screenshot(ofile, "tiff")>>>>>>>>>>>>&
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)2.2 pytek moduleThis is the top level module of the PyTek package. It provides classes for interfacin
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)•send_query - To send a query and get a one-line response.send_query(query)Sends a query to the devic
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)acquire_state([val ])Configures or queries the value of the ACQUIRE:STATE setting on the device. If a
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)•trigger - indicates that the oscilloscope has seen a trigger and is acquiring the posttrigger inform
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)• double (bool) – Optional, if True (the default), data points are transferred 16-bits perpoint, othe
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)If ofile is None (the default), simply returns the data as a string. Otherwise, it writes the data to
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)check_img_format(fmt)Tests if a hardcopy image format is supported by the device. This simply sets th
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)# our setting configuring and querying.__foobar = "TAZ"__frobbed = "OFF"#This is
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)@Configurator.configdef frobbed(self, val):’’’+++Querying returns True for "ON", and False
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)False>>>>>> dev.frobbed("ON")~~~> FROBBED ON>>> dev.frobbed()
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)• doc (callable) – Optional: if given, used as the value of the doc attribute.DEFAULT_DOCTSTR = ‘\nCo
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)For implicit arguments, you use this method as a function decorator directly, and the name to use isd
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)Since at this point the foobar symbol is actually a Configurator object, you can use its other decorat
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)depends on the value of the default parameter). For the non-strict set filter, values aresimply evalua
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)Version NumberThe version number is a four part dotted number, with an optional tag on the end. Forma
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)Compatibility SummaryThe following table summarizes compatibility for a hypothetical client applicati
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)Interface VersionBecause any change to the public interface requires a change to either the major or
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)pytek.version.COPYRIGHT = 2014The copyright year for the PyTek code.pytek.version.YEAR = 2014The year
Contents1 Getting Started 32 Documentation Contents: 52.1 README . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)pytek.version.string()Like setuptools_string, except leaves out the x- for development versions.pytek
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)Developers that use the GNU GPL protect your rights with two steps:(1) assert copyright on the softwa
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)To "convey" a work means any kind of propagation that enables otherparties to make or recei
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)copyright on the Program, and are irrevocable provided the statedconditions are met. This License exp
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)it, and giving a relevant date.b) The work must carry prominent notices stating that it isreleased un
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)with subsection 6b.d) Convey the object code by offering access from a designatedplace (gratis or for
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)for a work that has been modified or installed by the recipient, or forthe User Product in which it h
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)restrictions" within the meaning of section 10. If the Program as youreceived it, or any part of
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)Each time you convey a covered work, the recipient automaticallyreceives a license from the original
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)consistent with the requirements of this License, to extend the patentlicense to downstream recipient
ii
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)The Free Software Foundation may publish revised and/or new versions ofthe GNU General Public License
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)How to Apply These Terms to Your New ProgramsIf you develop a new program, and you want it to be of t
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)38 Chapter 2. Documentation Contents:
CHAPTER 3Indices and tables• genindex• modindex• search39
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)40 Chapter 3. Indices and tables
CHAPTER 4VersionThis documentation is for PyTek 1.1 (v1.1.1.0-x-dev).41
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)42 Chapter 4. Version
CHAPTER 5Project Resources• PyTek project homepage (bitbucket)• PyTek on pypi• Online documentation:– Read The Docs (.org)– Python Hosted (.org)43
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)44 Chapter 5. Project Resources
CHAPTER 6External References• TDS3000, TDS3000B & TDS3000C Series Programmer Manual (Tektronix.com)45
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)PyTek provides a python API for interacting with Tektronix oscilloscopes over a serial interface. It
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)46 Chapter 6. External References
Python Module Indexppytek, 8pytek.util, 14pytek.version, 2147
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)2 Contents
CHAPTER 1Getting StartedTo get started, try the README, or for complete documentation, check out the pytek module API documentation page.3
PyTek Documentation, Release 1.1 (v1.1.1.0-x-dev)4 Chapter 1. Getting Started
CHAPTER 2Documentation Contents:2.1 READMEPyTek provides a python API for interacting with Tektronix oscilloscopes over a serial interface. It current
Comments to this Manuals