experiment module

class experiment.ConvenienceClass[source]

This class contains methods that simplify setting up and running an experiment.

The arbitFit method accepts two arrays, the fitting function, and a keyword argument ‘guess’ that is an array containing guess values for the various fiting parameters. Guess values can be obtained using the getGuessValues based on a keyword argument ‘func’ which as of this moment can be either ‘sine’ or ‘damped sine’

timers = []
loopTask(interval, func, *args)[source]

Creates a QTimer that executes ‘func’ every ‘interval’ milliseconds all additional arguments passed to this function are passed on as arguments to func

Refer to the source code for experiments such as diodeIV, Bandpass filter etc.

delayedTask(interval, func, *args)[source]

Creates a QTimer that executes ‘func’ once after ‘interval’ milliseconds.

all additional arguments passed to this function are passed on as arguments to func

random_color()[source]
displayObjectContents(d)[source]

The contents of the dictionary ‘d’ are displayed in a new QWindow

dampedSine(x, amp, freq, phase, offset, damp)[source]

A damped sine wave function

fitData(xReal, yReal, **args)[source]
getGuessValues(xReal, yReal, func='sine')[source]
arbitFit(xReal, yReal, func, **args)[source]
class experiment.Experiment(**args)[source]

Bases: PyQt4.QtGui.QMainWindow, templates.template_exp.Ui_MainWindow, custom_widgets.CustomWidgets

timers = []
updateSplash(x, txt='')[source]
showSplash()[source]
run()[source]
addPlotArea()[source]
add3DPlot()[source]
add2DPlot()[source]
add2DPlots(num)[source]
add3DPlots(num)[source]
addAxis(plot, **args)[source]
enableRightAxis(plot)[source]
updateViews(plot)[source]
configureWidgetBay(name='controls')[source]
updateWidgetBay(obj)[source]
addConsole(**args)[source]
showHelp()[source]
showFullHelp()[source]
showImageMap()[source]
setHelpUrl(url)[source]
new3dSurface(plot, **args)[source]
setSurfaceData(surf, z)[source]
draw3dLine(plot, x, y, z, color=(100, 100, 100))[source]
clearLinesOnPlane(plot)[source]
class relay_to_console(console)[source]
write(arg)[source]
flush()[source]
Experiment.graph(x, y)[source]
Experiment.setRange(plot, x, y, width, height)[source]
Experiment.addCurve(plot, name='', col=(255, 255, 255), axis='left')[source]
Experiment.rebuildLegend(plot)[source]
Experiment.loopTask(interval, func, *args)[source]
Experiment.delayedTask(interval, func, *args)[source]
Experiment.addButton(name, command, *args)[source]
Experiment.addWidget(widget_type, **args)[source]
Experiment.setCommand(widget, signal, slot, *args)[source]

Previous topic

NRF_NODE module

Next topic

Applications

This Page