Ejemplo n.º 1
0
    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.')
Ejemplo n.º 3
0
 def add_device(self, device):
     Device.add_device(self, device)
     # Minimum frequency is 20MHz:
     device.frequency.default_value = 20e6
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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)
Ejemplo n.º 7
0
 def add_device(self, device):
     Device.add_device(self, device)
 def add_device(self, device):
     Device.add_device(self, device)
     # Minimum frequency is 20MHz:
     device.frequency.default_value = 20e6