def add_device(self, device): # run checks # if the device passes the checks, call the parent class function to add it as a child Device.add_device(self, device) device.width = self.width device.height = self.height
def add_device(self, device): Device.add_device(self, device) if isinstance(device, DDS): # Check that the user has not specified another digital line as the gate for this DDS, that doesn't make sense. # Then instantiate a DigitalQuantity to keep track of gating. if device.gate is None: device.gate = DigitalQuantity(device.name + '_gate', device, 'gate') else: raise LabscriptError('You cannot specify a digital gate ' + 'for a DDS connected to %s. '% (self.name) + 'The digital gate is always internal to the Pulseblaster.')
def add_device(self, device): Device.add_device(self, device) # Minimum frequency is 20MHz: device.frequency.default_value = 20e6
def add_device(self, device): Device.add_device(self, device) # The Novatech doesn't support 0Hz output; set the default frequency of the DDS to 0.1 Hz: device.frequency.default_value = 0.1
def add_device(self, output): # TODO: check there are no duplicates, check that connection # string is formatted correctly. Device.add_device(self, output)
def add_device(self, device): Device.add_device(self, device)