コード例 #1
0
 def __init__(self):
     # sample rate, i.e. the time base of the pulser
     self.sample_rate = ScalarConstraint(unit='Hz')
     # The peak-to-peak amplitude and voltage offset of the analog channels
     self.a_ch_amplitude = ScalarConstraint(unit='Vpp')
     self.a_ch_offset = ScalarConstraint(unit='V')
     # Low and high voltage level of the digital channels
     self.d_ch_low = ScalarConstraint(unit='V')
     self.d_ch_high = ScalarConstraint(unit='V')
     # length of the created waveform files in samples
     self.sampled_file_length = ScalarConstraint(unit='Samples')
     # number of waveforms/sequences to put in a single asset (sequence mode)
     self.waveform_num = ScalarConstraint(unit='#')
     self.sequence_num = ScalarConstraint(unit='#')
     self.subsequence_num = ScalarConstraint(unit='#')
     # compatible file formats, e.g. 'wfm', 'wfmx', 'fpga', 'seq', 'seqx'
     self.waveform_format = []
     self.sequence_format = []
     # Not used yet
     self.repetitions = ScalarConstraint(unit='#')
     self.trigger_in = ScalarConstraint(unit='chnl')
     self.event_jump_to = ScalarConstraint(unit='step')
     self.go_to = ScalarConstraint(unit='step')
     # add CountingMode enums to this list in instances
     self.activation_config = dict()
コード例 #2
0
    def __init__(self):
        # sample rate, i.e. the time base of the pulser
        self.sample_rate = ScalarConstraint(unit='Hz')
        # The peak-to-peak amplitude and voltage offset of the analog channels
        self.a_ch_amplitude = ScalarConstraint(unit='Vpp')
        self.a_ch_offset = ScalarConstraint(unit='V')
        # Low and high voltage level of the digital channels
        self.d_ch_low = ScalarConstraint(unit='V')
        self.d_ch_high = ScalarConstraint(unit='V')
        # length of the created waveform in samples
        self.waveform_length = ScalarConstraint(unit='Samples')
        # number of waveforms/sequences to put in a single asset (sequence mode)
        self.waveform_num = ScalarConstraint(unit='#')
        self.sequence_num = ScalarConstraint(unit='#')
        self.subsequence_num = ScalarConstraint(unit='#')
        # Sequence parameters
        self.sequence_steps = ScalarConstraint(unit='#', min=0)
        self.repetitions = ScalarConstraint(unit='#')
        self.event_triggers = list()
        self.flags = list()


        self.activation_config = dict()