Data Acquisition Cards Models

Available DAQS

Dummy DAQ

DAQ model for testing GUI and other functionalities. Based on the skeleton. It does not interact with any real device, it just generates random data and accepts inputs which have no effect.

copyright

Aquiles Carattino <aquiles@uetke.com>

license

GPLv3, see LICENSE for more details

class pynta.model.daqs.daq_dummy.DAQDummy(dev_number=None)[source]

Bases: pynta.model.daqs.skeleton.DaqBase

fastTimetrace(conditions)[source]

Acquires a fast timetrace of the selected devices. conditions[‘devs’] – list of devices to monitor conditions[‘accuracy’] – accuracy in milliseconds. conditions[‘time’] – total time of acquisition for each channel in seconds.

getAnalog(conditions)[source]

Gets the analog values acquired with the triggerAnalog function. conditions – dictionary with the number of points ot be read

readMonitor()[source]

Reads the monitor values of all the channels specified.

startMonitor(conditions)[source]

Starts continuous acquisition of the specified channels with the specified timing interval. conditions[‘devs’] – list of devices to monitor conditions[‘accuracy’] – accuracy for the monitor. If not defined defaults to 0.1s

stopMonitor()[source]

Stops all the tasks related to the monitor.

triggerAnalog(conditions)[source]

Triggers an analog measurement. It does not read the value. conditions – a dictionary with the needed parameters for an analog acquisition.

Base Model for DAQs

Base model that makes explicit the API for working with DAQ cards. Every new DAQ card should inherit this model. This allows to check the argument type, for example, but they also guarantee forward-compatibility in case new methods are developed.

Note

IMPORTANT Whatever new function is implemented in a specific model, it should be first declared in the laserBase class. In this way the other models will have access to the method and the program will keep running (perhaps with non intended behavior though).

copyright

Aquiles Carattino <aquiles@uetke.com>

license

AGPLv3, see LICENSE for more details

class pynta.model.daqs.skeleton.DaqBase(dev_number)[source]

Bases: object

analog_input_setup(conditions)[source]

conditions – a dictionary with the needed parameters for an analog acquisition.

analog_output_setup(conditions)[source]

Sets up an analog output task.

Parameters

conditions

Returns

read_analog(task_number, conditions)[source]

Gets the analog values acquired with the triggerAnalog function.

trigger_analog(task_number)[source]

Triggers an analog measurement. It does not read the value.

conditions – dictionary with the number of points ot be read