Exemple #1
0
 def add_device(self, device):
     if isinstance(device, CiceroOpalKellyXEM3001DummyClockLine):
         if self.child_devices:
             raise LabscriptError('You are trying to access the special, dummy, PseudoClock of the CiceroOpalKellyXEM3001 %s. This is for internal use only.'%(self.pseudoclock_device.name))
         Pseudoclock.add_device(self, device)
     else:
         raise LabscriptError('You are trying to access the special, dummy, PseudoClock of the CiceroOpalKellyXEM3001 %s. This is for internal use only.'%(self.pseudoclock_device.name))
Exemple #2
0
 def add_device(self, device):
     if isinstance(device, ClockLine):
         # only allow one child
         if self.child_devices:
             raise LabscriptError('The pseudoclock of the RFBlaster %s only supports 1 clockline, which is automatically created. Please use the clockline located at %s.clockline'%(self.parent_device.name, self.parent_device.name))
         Pseudoclock.add_device(self, device)
     else:
         raise LabscriptError('You have connected %s to %s (the Pseudoclock of %s), but %s only supports children that are ClockLines. Please connect your device to %s.clockline instead.'%(device.name, self.name, self.parent_device.name, self.name, self.parent_device.name))
 def add_device(self, device):
     if isinstance(device, ClockLine):
         # only allow one child
         if self.child_devices:
             raise LabscriptError('The pseudoclock of the RFBlaster %s only supports 1 clockline, which is automatically created. Please use the clockline located at %s.clockline'%(self.parent_device.name, self.parent_device.name))
         Pseudoclock.add_device(self, device)
     else:
         raise LabscriptError('You have connected %s to %s (the Pseudoclock of %s), but %s only supports children that are ClockLines. Please connect your device to %s.clockline instead.'%(device.name, self.name, self.parent_device.name, self.name, self.parent_device.name))
 def add_device(self, device):
     if isinstance(device, ClockLine):
         Pseudoclock.add_device(self, device)
     else:
         raise LabscriptError(
             'You have connected %s to %s (the Pseudoclock of %s), but %s only supports children that are ClockLines. Please connect your device to %s.clockline instead.'
             % (device.name, self.name, self.parent_device.name, self.name,
                self.parent_device.name))
Exemple #5
0
 def add_device(self, device):
     if isinstance(device, _PrawnBlasterDummyClockLine):
         if self.child_devices:
             raise LabscriptError(
                 f"You are trying to access the special, dummy, PseudoClock of the PrawnBlaster {self.pseudoclock_device.name}. This is for internal use only."
             )
         Pseudoclock.add_device(self, device)
     else:
         raise LabscriptError(
             f"You are trying to access the special, dummy, PseudoClock of the PrawnBlaster {self.pseudoclock_device.name}. This is for internal use only."
         )
Exemple #6
0
 def add_device(self, device):
     """
     Args:
         device (:class:`~labscript.ClockLine`): Clockline to attach to the
             pseudoclock.
     """
     if isinstance(device, ClockLine):
         # only allow one child
         if self.child_devices:
             raise LabscriptError(
                 f"Each pseudoclock of the PrawnBlaster {self.parent_device.name} only supports 1 clockline, which is automatically created. Please use the clockline located at {self.parent_device.name}.clocklines[{self.i}]"
             )
         Pseudoclock.add_device(self, device)
     else:
         raise LabscriptError(
             f"You have connected {device.name} to {self.name} (a Pseudoclock of {self.parent_device.name}), but {self.name} only supports children that are ClockLines. Please connect your device to {self.parent_device.name}.clocklines[{self.i}] instead."
         )