File tree Expand file tree Collapse file tree 10 files changed +141
-2
lines changed Expand file tree Collapse file tree 10 files changed +141
-2
lines changed Original file line number Diff line number Diff line change
1
+ #####################################################################
2
+ # #
3
+ # /base.py #
4
+ # #
5
+ # Copyright 2013, Monash University #
6
+ # #
7
+ # This file is part of the program labscript, in the labscript #
8
+ # suite (see http://labscriptsuite.org), and is licensed under the #
9
+ # Simplified BSD License. See the license.txt file in the root of #
10
+ # the project for the full license. #
11
+ # #
12
+ #####################################################################
13
+
14
+ """The labscript base class for all I/O/Device classes"""
15
+
1
16
import builtins
2
17
import keyword
3
18
Original file line number Diff line number Diff line change
1
+ #####################################################################
2
+ # #
3
+ # /compiler.py #
4
+ # #
5
+ # Copyright 2013, Monash University #
6
+ # #
7
+ # This file is part of the program labscript, in the labscript #
8
+ # suite (see http://labscriptsuite.org), and is licensed under the #
9
+ # Simplified BSD License. See the license.txt file in the root of #
10
+ # the project for the full license. #
11
+ # #
12
+ #####################################################################
13
+
14
+ """The labscript compiler interface. This is only relevant to developers and those
15
+ interested in the labscript interface to runmanager."""
16
+
1
17
import builtins
2
18
3
19
from labscript_utils .labconfig import LabConfig
Original file line number Diff line number Diff line change
1
+ #####################################################################
2
+ # #
3
+ # /constants.py #
4
+ # #
5
+ # Copyright 2013, Monash University #
6
+ # #
7
+ # This file is part of the program labscript, in the labscript #
8
+ # suite (see http://labscriptsuite.org), and is licensed under the #
9
+ # Simplified BSD License. See the license.txt file in the root of #
10
+ # the project for the full license. #
11
+ # #
12
+ #####################################################################
13
+
14
+ """Common constant factors for time and frequency"""
15
+
1
16
ns = 1e-9
17
+ """Conversion factor between nanoseconds and seconds"""
18
+
2
19
us = 1e-6
20
+ """Conversion factor between microseconds and seconds"""
21
+
3
22
ms = 1e-3
23
+ """Conversion factor between milliseconds and seconds"""
24
+
4
25
s = 1
26
+ """Conversion factor between seconds and seconds"""
27
+
5
28
Hz = 1
29
+ """Conversion factor between hertz and hertz"""
30
+
6
31
kHz = 1e3
32
+ """Conversion factor between kilohertz and hertz"""
33
+
7
34
MHz = 1e6
8
- GHz = 1e9
35
+ """Conversion factor between megahertz and hertz"""
36
+
37
+ GHz = 1e9
38
+ """Conversion factor between gigahertz and hertz"""
Original file line number Diff line number Diff line change
1
+ #####################################################################
2
+ # #
3
+ # /core.py #
4
+ # #
5
+ # Copyright 2013, Monash University #
6
+ # #
7
+ # This file is part of the program labscript, in the labscript #
8
+ # suite (see http://labscriptsuite.org), and is licensed under the #
9
+ # Simplified BSD License. See the license.txt file in the root of #
10
+ # the project for the full license. #
11
+ # #
12
+ #####################################################################
13
+
14
+ """Core classes containing common device functionality. These are used in
15
+ labscript-devices when adding support for a hardware device."""
16
+
1
17
import sys
2
18
3
19
import numpy as np
Original file line number Diff line number Diff line change 11
11
# #
12
12
#####################################################################
13
13
14
+ """Contains the functional forms of analog output ramps. These are not used directly,
15
+ instead see the interfaces in `AnalogQuantity`/`AnalogOut`."""
16
+
14
17
from pylab import *
15
18
import numpy as np
16
19
Original file line number Diff line number Diff line change
1
+ #####################################################################
2
+ # #
3
+ # /inputs.py #
4
+ # #
5
+ # Copyright 2013, Monash University #
6
+ # #
7
+ # This file is part of the program labscript, in the labscript #
8
+ # suite (see http://labscriptsuite.org), and is licensed under the #
9
+ # Simplified BSD License. See the license.txt file in the root of #
10
+ # the project for the full license. #
11
+ # #
12
+ #####################################################################
13
+
1
14
"""Classes for device channels that are inputs"""
2
15
3
16
from .base import Device
Original file line number Diff line number Diff line change 11
11
# #
12
12
#####################################################################
13
13
14
+ """Everything else including the `start()`, `stop()`, and `wait()` functions. All other
15
+ classes are also imported here for backwards compatibility"""
16
+
14
17
import builtins
15
18
import os
16
19
import sys
Original file line number Diff line number Diff line change 1
- """Classes for devices channels that out outputs"""
1
+ #####################################################################
2
+ # #
3
+ # /outputs.py #
4
+ # #
5
+ # Copyright 2013, Monash University #
6
+ # #
7
+ # This file is part of the program labscript, in the labscript #
8
+ # suite (see http://labscriptsuite.org), and is licensed under the #
9
+ # Simplified BSD License. See the license.txt file in the root of #
10
+ # the project for the full license. #
11
+ # #
12
+ #####################################################################
13
+
14
+ """Classes for devices channels that are outputs"""
2
15
3
16
import sys
4
17
Original file line number Diff line number Diff line change
1
+ #####################################################################
2
+ # #
3
+ # /remote.py #
4
+ # #
5
+ # Copyright 2013, Monash University #
6
+ # #
7
+ # This file is part of the program labscript, in the labscript #
8
+ # suite (see http://labscriptsuite.org), and is licensed under the #
9
+ # Simplified BSD License. See the license.txt file in the root of #
10
+ # the project for the full license. #
11
+ # #
12
+ #####################################################################
13
+
14
+ """Classes for configuring remote/secondary BLACS and/or device workers"""
15
+
1
16
from .compiler import compiler
2
17
from .labscript import Device , set_passed_properties
3
18
Original file line number Diff line number Diff line change
1
+ #####################################################################
2
+ # #
3
+ # /utils.py #
4
+ # #
5
+ # Copyright 2013, Monash University #
6
+ # #
7
+ # This file is part of the program labscript, in the labscript #
8
+ # suite (see http://labscriptsuite.org), and is licensed under the #
9
+ # Simplified BSD License. See the license.txt file in the root of #
10
+ # the project for the full license. #
11
+ # #
12
+ #####################################################################
13
+
14
+ """Utility functions"""
15
+
1
16
import contextlib
2
17
from inspect import getcallargs
3
18
from functools import wraps
You can’t perform that action at this time.
0 commit comments