- Notifications
You must be signed in to change notification settings - Fork2
This is the code that follows the book Python for the Lab
License
PFTL/pythonforthelab
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Python for the Lab (PFTL) is a simple program to acquire data from a DAQ device. It is designed following the MVC design pattern, splitting the code into Controllers for defining drivers, Models for specifying the logic on how to use devices and perform an experiment. The View is where all the GUI is developed using PyQt5.
PFTL was developed byAquiles Carattino to explain to researchers, through simple examples, what can be achieved quickly with little programming knowledge. The ultimate goal of this project is to serve as a reference place for people interested in instrumentation written in Python.
You can find the code of this package atGithub, the documentation is hosted atRead The Docs. If you are interested in learning more about Python For The Lab, you can checkthe courses orbuy a copy of the book.
If you follow the Python for the Lab course, the GUI is going to be the last step. You perform an analog output scan while acquiring the voltage on a different port. This will allow the users to acquire an I-V scan or any other voltage-dependent measurement.
The objective of PFTL is to control a device to measure the IV curve of an LED. The device is built on an Arduino DUE which has two Digital-to-Analog channels. The program monitors the voltage across a resistance while increasing the voltage applied to an LED. We can change all the parameters of the scan, including the input and output channels, the range, time delay, etc.
Aditional documentation can be found atRead the Docs, atPython for the Lab or inthe book.
About
This is the code that follows the book Python for the Lab