Model for Devices¶
Module contents¶
Analog DAQ¶
Class for communicating with a real device. It implements the base for communicating with the device through a Controller. The experiment in mind is measuring the I-V curve of a diode, adding the logic into a separate Model for the experiment may seem redundant, but incredibly useful in bigger projects.
-
class
PythonForTheLab.Model.analog_daq.
AnalogDaq
(port)[source]¶ Bases:
object
Simple Model that reflects the logic of the MVC pattern. This model relies on the real controller for communicating with an Arduino based DAQ.
Parameters: port (str) – See pftl_daq
-
port
¶ The port information
Type: str
-
Base DAQ¶
Base class for the DAQ objects. It keeps track of the functions that every new model should implement. This helps keeping the code organized and to maintain downstream compliancy.