Exemplo n.º 1
0
#####################################################################
#                                                                   #
# /naqslab_devices/KeysightXSeries/register_classes.py              #
#                                                                   #
# Copyright 2018, David Meyer                                       #
#                                                                   #
# This file is part of naqslab_devices,                             #
# and is licensed under the                                         #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
import labscript_devices

labscript_devices.register_classes(
    'KeysightXScope',
    BLACS_tab='naqslab_devices.KeysightXSeries.blacs_tab.KeysightXScopeTab',
    runviewer_parser='')
#####################################################################
#                                                                   #
# /labscript_devices/FlyCapture2Camera/register_classes.py          #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
from labscript_devices import register_classes

register_classes(
    'FlyCapture2Camera',
    BLACS_tab=
    'labscript_devices.FlyCapture2Camera.blacs_tabs.FlyCapture2CameraTab',
    runviewer_parser=None,
)
Exemplo n.º 3
0
#####################################################################
#                                                                   #
# /labscript_devices/FunctionRunner/register_classes.py             #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
from labscript_devices import register_classes

register_classes(
    'FunctionRunner',
    BLACS_tab='labscript_devices.FunctionRunner.blacs_tabs.FunctionRunnerTab',
    runviewer_parser=None,
)
Exemplo n.º 4
0
#####################################################################
#                                                                   #
# /labscript_devices/IMAQdxCamera/register_classes.py               #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
from labscript_devices import register_classes

register_classes(
    'HP8648',
    BLACS_tab='user_devices.HP8648.blacs_tabs.HP8648Tab',
    runviewer_parser=None,
)
import labscript_devices

labscript_devices.register_classes(
    'TekScope',
    BLACS_tab='labscript_devices.TekScope.blacs_tabs.TekScopeTab',
    runviewer_parser=None)
if PY2:
    str = unicode

import os
import json
from labscript_devices import register_classes

THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
CAPABILITIES_FILE = os.path.join(THIS_FOLDER, 'models', 'capabilities.json')

capabilities = {}
if os.path.exists(CAPABILITIES_FILE):
    with open(CAPABILITIES_FILE) as f:
        capabilities = json.load(f)

# The base class:
register_classes(
    'NI_DAQmx',
    BLACS_tab='labscript_devices.NI_DAQmx.blacs_tabs.NI_DAQmxTab',
    runviewer_parser='labscript_devices.NI_DAQmx.runviewer_parsers.NI_DAQmxParser',
)

# All the auto-generated subclasses:
for model_name in capabilities:
    class_name = 'NI_' + model_name.replace('-', '_')
    register_classes(
        class_name,
        BLACS_tab='labscript_devices.NI_DAQmx.blacs_tabs.NI_DAQmxTab',
        runviewer_parser='labscript_devices.NI_DAQmx.runviewer_parsers.NI_DAQmxParser',
    )
Exemplo n.º 7
0
#####################################################################
#                                                                   #
# /naqslab_devices/SR865/register_classes.py                        #
#                                                                   #
# Copyright 2018, David Meyer                                       #
#                                                                   #
# This file is part of naqslab_devices,                             #
# and is licensed under the                                         #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
import labscript_devices

labscript_devices.register_classes(
    'SR865',
    BLACS_tab='naqslab_devices.SR865.blacs_tab.SR865Tab',
    runviewer_parser='')
Exemplo n.º 8
0
#####################################################################
#                                                                   #
# /labscript_devices/MakoCamera/register_classes.py                #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
"""Import register classes"""
from labscript_devices import register_classes

register_classes(
    "Mako_Camera",
    BLACS_tab="user_devices.MakoCamera.blacs_tabs.MakoCameraTab",
    runviewer_parser=None,
)
Exemplo n.º 9
0
#####################################################################
#                                                                   #
# /naqslab_devices/PulseBlasterESRPro300/register_classes.py        #
#                                                                   #
#                                                                   #
#####################################################################
import labscript_devices

labscript_devices.register_classes(
    'PulseBlasterESRPro300',
    BLACS_tab='naqslab_devices.PulseBlasterESRPro300.blacs_tab.PulseBlasterESRPro300Tab',
    runviewer_parser='naqslab_devices.PulseBlasterESRPro300.runviewer_parser.PulseBlasterESRProParser',
)
Exemplo n.º 10
0
#####################################################################
#                                                                   #
# /naqslab_devices/KeysightDCSupply/register_classes.py             #
#                                                                   #
# Copyright 2020, David Meyer                                       #
#                                                                   #
# This file is part of naqslab_devices,                             #
# and is licensed under the                                         #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
import labscript_devices

labscript_devices.register_classes(
    'KeysightDCSupply',
    BLACS_tab='naqslab_devices.KeysightDCSupply.blacs_tab.KeysightDCSupplyTab',
    runviewer_parser='')
Exemplo n.º 11
0
from labscript_devices import register_classes

register_classes(
    'red_pitaya_pyrpl_asg',
    BLACS_tab='user_devices.red_pitaya_pyrpl_asg.blacs_tabs.red_pitaya_pyrpl_asg_tab',
    runviewer_parser=None,
)
Exemplo n.º 12
0
from labscript_devices import register_classes

register_classes(
    "SynthHDDevice",
    BLACS_tab="user_devices.SynthHDDevice.blacs_tabs.SynthHDDeviceTab",
    runviewer_parser=None,
)
#####################################################################
#                                                                   #
# /labscript_devices/ZaberStageController/register_classes.py       #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
from labscript_devices import register_classes

register_classes(
    'ZaberStageController',
    BLACS_tab=
    'labscript_devices.ZaberStageController.blacs_tabs.ZaberStageControllerTab',
    runviewer_parser=None,
)
#####################################################################
#                                                                   #
# /labscript_devices/IMAQdxCamera/register_classes.py               #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
from labscript_devices import register_classes

register_classes(
    'AnalogIMAQdxCamera',
    BLACS_tab='user_devices.AnalogIMAQdxCamera.blacs_tabs.IMAQdxCameraTab',
    runviewer_parser=None,
)
Exemplo n.º 15
0
#####################################################################
#                                                                   #
# /labscript_devices/DummyPseudoclock/register_classes.py           #
#                                                                   #
# Copyright 2017, Christopher Billington                            #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
import labscript_devices

labscript_device_name = 'DummyPseudoclock'
blacs_tab = 'labscript_devices.DummyPseudoclock.blacs_tabs.DummyPseudoclockTab'
parser = 'labscript_devices.DummyPseudoclock.runviewer_parsers.DummyPseudoclockParser'

labscript_devices.register_classes(
    labscript_device_name=labscript_device_name,
    BLACS_tab=blacs_tab,
    runviewer_parser=parser,
)
Exemplo n.º 16
0
# /naqslab_devices/SignalGenerator/register_classes.py              #
#                                                                   #
# Copyright 2018, David Meyer                                       #
#                                                                   #
# This file is part of naqslab_devices,                             #
# and is licensed under the                                         #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
"""Configures which BLACS_tab goes to which labscript_device."""

import labscript_devices

labscript_devices.register_classes(
    'RS_SMF100A',
    BLACS_tab='naqslab_devices.SignalGenerator.BLACS.RS_SMF100A.RS_SMF100ATab',
    runviewer_parser='')

labscript_devices.register_classes(
    'RS_SMA100B',
    BLACS_tab='naqslab_devices.SignalGenerator.BLACS.RS_SMA100B.RS_SMA100BTab',
    runviewer_parser='')

labscript_devices.register_classes(
    'RS_SMHU',
    BLACS_tab='naqslab_devices.SignalGenerator.BLACS.RS_SMHU.RS_SMHUTab',
    runviewer_parser='')

labscript_devices.register_classes(
    'HP_8643A',
    BLACS_tab='naqslab_devices.SignalGenerator.BLACS.HP_8643A.HP_8643ATab',
# configuration setting in labconfig can be used to specify a
# comma-delimited list of names of importable packages containing
# additional labscript devices. Classes using the new method can be in
# files with any name, and do not need class decorators. Instead, the
# classes should be registered by creating a file called
# 'register_classes.py', which when imported, makes calls to
# labscript_devices.register_classes() to register which BLACS tab and
# runviewer parser class belong to each device. Tab and parser classes
# must be passed to register_classes() as fully qualified names, i.e.
# "labscript_devices.submodule.ClassName", not by passing in the
# classes themselves. This ensures imports can be deferred until the
# classes are actually needed. When BLACS and runviewer look up
# classes with get_BLACS_tab() and get_runviewer_parser(),
# populate_registry() will be called in order to find all files called
# 'register_classes.py' within subfolders (at any depth) of
# labscript_devices, and they will be imported to run their code and
# hence register their classes. The "new" method does not impose any
# restrictions on code organisation within subfolders of
# labscript_devices, and so is preferable as it allows auxiliary
# utilities or resource files to live in subfolders alongside the
# device code to which they are relevant, the use of subrepositories,
# the grouping of similar devices within subfolders, and other nice
# things to have.
# Taken from https://github.com/labscript-suite/labscript-utils/blob/master/labscript_utils/device_registry/_device_registry.py

register_classes(
    'P7888',
    BLACS_tab='user_devices.P7888.blacs_tabs.P7888Tab',
    #this tells BLACS where the gui tab is, the P7888_Tab tells blacs where the worker is.
    runviewer_parser=None,
)
Exemplo n.º 18
0
#####################################################################
#                                                                   #
# /naqslab_devices/PulseBlaster_No_DDS_200/register_classes.py      #
#                                                                   #
#                                                                   #
#####################################################################
import labscript_devices

labscript_devices.register_classes(
    'PulseBlaster_No_DDS_200',
    BLACS_tab=
    'naqslab_devices.PulseBlaster_No_DDS_200.blacs_tab.PulseBlaster_No_DDS_200_Tab',
    runviewer_parser=
    'naqslab_devices.PulseBlaster_No_DDS_200.runviewer_parser.PulseBlaster_No_DDS_200_Parser',
)
#####################################################################
#                                                                   #
# /labscript_devices/AndorSolis/register_classes.py                 #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
from labscript_devices import register_classes

register_classes(
    'AndorSolis',
    BLACS_tab='labscript_devices.AndorSolis.blacs_tabs.AndorSolisTab',
    runviewer_parser=None,
)
Exemplo n.º 20
0
#####################################################################
#                                                                   #
# /naqslab_devices/TektronixTDS/register_classes.py                 #
#                                                                   #
# Copyright 2018, David Meyer                                       #
#                                                                   #
# This file is part of naqslab_devices,                             #
# and is licensed under the                                         #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
import labscript_devices

labscript_devices.register_classes(
    'TDS_Scope',
    BLACS_tab='naqslab_devices.TektronixTDS.blacs_tab.TDS_ScopeTab',
    runviewer_parser='')
Exemplo n.º 21
0
#####################################################################
#                                                                   #
# /naqslab_devices/VISA/register_classes.py                         #
#                                                                   #
# Copyright 2018, David Meyer                                       #
#                                                                   #
# This file is part of naqslab_devices,                             #
# and is licensed under the                                         #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
"""
Sets which BLACS_tab belongs to each labscript device.
"""

import labscript_devices

labscript_devices.register_classes(
    'VISA',
    BLACS_tab='naqslab_devices.VISA.blacs_tab.VISATab',
    runviewer_parser=''
)
Exemplo n.º 22
0
#####################################################################
#                                                                   #
# /labscript_devices/DummyPseudoclock/register_classes.py           #
#                                                                   #
# Copyright 2017, Christopher Billington                            #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
import labscript_devices

labscript_devices.register_classes(
    'DummyPseudoclock',
    BLACS_tab=
    'labscript_devices.DummyPseudoclock.blacs_tabs.DummyPseudoclockTab',
    runviewer_parser=None,  #TODO make a runviwer parser for Dummy pseudoclock!
)
Exemplo n.º 23
0
#####################################################################
#                                                                   #
# /labscript_devices/PylonCamera/register_classes.py                #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
from labscript_devices import register_classes

register_classes(
    'PylonCamera',
    BLACS_tab='labscript_devices.PylonCamera.blacs_tabs.PylonCameraTab',
    runviewer_parser=None,
)
Exemplo n.º 24
0
#                                                                   #
# /naqslab_devices/NovaTechDDS/register_classes.py                  #
#                                                                   #
# Copyright 2017, Christopher Billington, David Meyer               #
#                                                                   #
# This file is part of naqslab_devices,                             #
# and is licensed under the                                         #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
import labscript_devices

labscript_devices.register_classes(
    'NovaTech409B',
    BLACS_tab='naqslab_devices.NovaTechDDS.blacs_tab.NovaTech409BTab',
    runviewer_parser=
    'naqslab_devices.NovaTechDDS.runviewer_parser.NovaTech409BParser',
)

labscript_devices.register_classes(
    'NovaTech409B_AC',
    BLACS_tab='naqslab_devices.NovaTechDDS.blacs_tab.NovaTech409B_ACTab',
    runviewer_parser=
    'naqslab_devices.NovaTechDDS.runviewer_parser.NovaTech409B_ACParser',
)

labscript_devices.register_classes(
    'NovaTech440A',
    BLACS_tab='naqslab_devices.NovaTechDDS.blacs_tab.NovaTech440ATab',
    runviewer_parser=
    'naqslab_devices.NovaTechDDS.runviewer_parser.NovaTech440AParser')