*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 7597685d authored by Leolab Cavity CAD PC's avatar Leolab Cavity CAD PC
Browse files

Fastcomtec: Added SPCM gate

parent f3af7959
No related branches found
No related tags found
1 merge request!5Added Fastcomtec MCS8A timetagger for measurements with SPCM
......@@ -6,8 +6,7 @@
# #
# #
#####################################################################
from labscript import TriggerableDevice, LabscriptError, set_passed_properties, config
import numpy as np
from labscript import TriggerableDevice, Trigger, set_passed_properties, config
class MCS8A(TriggerableDevice):
description = 'MCS8A'
......@@ -15,17 +14,24 @@ class MCS8A(TriggerableDevice):
@set_passed_properties(
property_names={"connection_table_properties":["config_path"]}
)
def __init__(self, name, parent_device, connection, config_path="MCS8A_default_config.SET", **kwargs):
def __init__(self, name, parent_device, connection, SPCM_gate_parent=None, SPCM_gate_connection=None, config_path="MCS8A_default_config.SET", **kwargs):
super().__init__(name, parent_device, connection, **kwargs)
self.BLACS_connection = "SPCM MCS8A"
self.config_path = config_path
self.labels = {}
if SPCM_gate_parent is not None:
self.SPCM_gate = Trigger(
f"{name}_SPCM_gate", SPCM_gate_parent, SPCM_gate_connection, trigger_edge_type="falling"
)
def acquire(self, t, duration, trigger_duration=None, label=""):
if trigger_duration is None:
trigger_duration = duration
self.labels[t] = label
self.trigger(t,trigger_duration)
if hasattr(self,"SPCM_gate"):
self.SPCM_gate.trigger(t,duration)
def generate_code(self, hdf5_file):
group = hdf5_file.create_group(f"devices/{self.name}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment