-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanta_in_prototype.py
More file actions
33 lines (30 loc) · 974 Bytes
/
manta_in_prototype.py
File metadata and controls
33 lines (30 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import lib.data_coolection as cool
# Supress warnings from EPICS
cool.hush()
# Set up the data collector
c = cool.Coolector(sample='M660L4',
sample_uid='NA',
location='Prototype lab',
operator='Haavard',
description='Testing Manta 235 in prototype',
sub_experiment='NA',
directory='/var/lab/2017-12-07/gain0')
# Add devices
cam = cool.Manta_cam('CAM1',
sw_trig=True,
auto_exposure=False,
exposure=0.000994,
exposure_max=0.1)
c.add_device(cam)
def get_ten_triggers(gain):
c.directory = '/var/data/lab/2017-12-07/gain' + str(gain) + '/'
print(c.directory)
cam.set_gain(gain)
for trig in range(10):
c.sw_trigger()
c.wait_for_data()
get_ten_triggers(0)
get_ten_triggers(10)
get_ten_triggers(20)
get_ten_triggers(30)
get_ten_triggers(40)