Skip to main content

Vibration Test Object Function Generator

Project description

VTOFG: Vibration Test Object Function Generator

Introduction

A function generator that uses the audio output (3.5mm port, speaker, or usb-c) on a computer, for use with a vibration test object (VTO) for testing of doppler ultrasound. This can be used as a general function generator if plot is set to False.

When the function generator is ran it has the following inputs: -- Master amplitude: the overall amplitude of the signal (essentially the volume when played through a speaker)

  • Generator frequency: the frequency of the audio frames in the signal
  • Resolution: the resolution of each audio frame
  • Buffer time: the length of each segment that is calculated/played (the next segment is calculated while the previous one is being played)
  • Transducer Frequency: The ultrasound wave frequency in kHz
  • Pulse Repetition Frequency: The Pulse Repetition Frequency that the scanner is using in Hz
  • Display Time: The time period displayed
  • Display Samples: The number of lines per time period
  • Wall Filter: The wall filter frequency used (A simple cutoff mask is used)
  • Gain: Arbitrary value use to scale the displayed signal
  • Display Speed: used to control the display speed if it is out of sync with the signal
  • For each sweep wave:
    • Wave amplitude: relative to each other, changing this will not change the overall signal amplitude
    • Start Frequency: the frequency to start the sweep
    • End Frequency: the frequency to end the sweep
    • Sweep Time: the period of the sweep

Installation Instructions

Windows

Use pip to install the vtofg package:

pip install vtofg

Run the following python script:

import vtofg

gen = vtofg.FunctionGenerator(plot=True)
gen.mainloop()

Set plot to False if you don't want the plotter.

See Example.PNG for expected output when ran with settings shown in image.

Mac and others

Installation of the package is largely the same, except you will need to run pip3 install vtofg instead of pip install vtofg. You may also need to manually install a version of python through your package manager which includes tkinter, as the default version of python3 preloaded onto your system may not contain this.

Python Version

An installation of python 3.7.9 is recommended, other versions have not been tested.

Roadmap

  • Adding functionality to save/load waves
  • Add functionaality to run .wav files

Contributing

Contributions are welcome

Contributors

  • Zack Ravetz

License

This project is licensed under the BSD license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vtofg-1.1.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vtofg-1.1.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file vtofg-1.1.1.tar.gz.

File metadata

  • Download URL: vtofg-1.1.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for vtofg-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a26980c726df885be42b0cf792a67c19723f5bfacb985841b437e5fc1a3af587
MD5 93f4c10c2e09b00013a11f1f9c1fff8b
BLAKE2b-256 088ddd6444958cdd5eebc768c5602d3050743cdc3386cc85b8b4fb2a7975fed2

See more details on using hashes here.

File details

Details for the file vtofg-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: vtofg-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for vtofg-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 def113b7dfeda925d250f7c0be0569f95326ed3fce0dc39db0bcbbdb2f00833a
MD5 05ba5091110e9e3e0a0a620c041d7bdb
BLAKE2b-256 b60681ded40d5a0cae1e5550043c61394a7cfe63e3502ad2f56399c6f01d44fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page