Skip to content

Releases: asvela/tektronix-func-gen

Hint hint

30 Mar 15:18
30f7406
Compare
Choose a tag to compare
  • Adding support for AFG1062, AFG3022
  • Type hints across the module
  • RuntimeError raised if set_custom_waveform is unable to verify the waveform
  • Adding an attribute for _max_waveform_memory_user_locations and checking that the memory location is within this boundary when setting a new custom waveform
  • The override_compatibility argument supports a string argument to select which model's limits to adopt
  • Avoiding close on __del__ or __exit__ if the connection has already been closed
  • Making a property out of _timeout and changing name to timeout

Arbitrary

30 Mar 14:58
1bb4909
Compare
Choose a tag to compare

An overhaul:

  • Adding _ suggesting private methods and functions:
    • FuncGen methods
      • _check_pyvisa_status()
      • _initialise_model_properties()
      • _normalise_to_waveform()
      • _verify_waveform()
      • _check_arb_waveform_length()
      • _check_arb_waveform_type_and_range()
      • _impedance_dependent_limit()
      • _spawn_channel()
    • FuncGen attributes
      • _id
      • _inst
      • address -> _visa_address
      • _arbitrary_waveform_length
      • _arbitrary_waveform_resolution
      • _override_compatibility
      • _maker
      • _serial
      • _model
    • FuncGenChannel
      • _source
      • state_str -> _state_to_str
  • Moving SI_prefix_to_factor() out of the class, now a private module function
  • Moving to f""-strings from "".format()

Square

18 Nov 08:59
Compare
Choose a tag to compare
  • Ensuring compatibility with pyvisa v11.1: (issue #2)
    • PYVISAs write() does not return the status code anymore, so the module is modified accordingly
    • not necessary to have an empty query after write_binary_values() in set_custom_waveform()
  • Added check_pyvisa_status(), now checking status for both queries and writes
  • Bug fixes for set_frequency() and set_offset() that were previously not taking into account the unit when calculating if it was within the limits

Sawtooth

21 Sep 21:55
Compare
Choose a tag to compare
  • Added note about known issue with TekVISA
  • Added more details about flat waveform offset through custom waveform workaround

Cosine

21 Sep 21:54
Compare
Choose a tag to compare

Non-compatible changes:

  • Made SI_prefix_to_factor a staticmethod in FuncGen rather than module-level function

Other:

  • Added note about DC/flat/constant waveform offset through custom waveform workaround

Sine

19 Dec 22:53
b8247d7
Compare
Choose a tag to compare
Sine Pre-release
Pre-release

Non-compatible changes:

  • More PEP8 compliant:
    • func_gen() -> FuncGen()
    • func_gen_channel() -> FuncGenChannel()
    • All lines < 100 characters (mostly < 80)
  • No more enable/disable_frequency_lock(), now set_frequency_lock()
  • Settings dictionary now contains tuples of value and unit, e.g. settings = {"amplitude": (3, "Vpp"), ..}

New features:

  • Implemented set_settings() in both FuncGen and FuncGenChannel that takes a settings dictionary as input
  • get/set_output() links to get/set_output_state()

Other:

  • More examples
  • Expanded README

DC

19 Dec 22:55
Compare
Choose a tag to compare
DC Pre-release
Pre-release
  • First release