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

Skip to content
Snippets Groups Projects
Commit debef323 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Removed AI_rate from ADwinAI8 device

parent 237fb0e4
No related branches found
No related tags found
No related merge requests found
......@@ -210,15 +210,9 @@ class ADwinAI8(_ADwinCard):
allowed_children = [AnalogIn]
resolution_bits = 16
def __init__(self, name, parent_device, module_address, AI_rate=None, num_AI = 8, **kwargs):
def __init__(self, name, parent_device, module_address, num_AI = 8, **kwargs):
self.num_AI = num_AI
_ADwinCard.__init__(self, name, parent_device, module_address, TiCo=False, **kwargs)
if not AI_rate: # if not specified, use maximum of ADwin process
AI_rate = self.parent_clock_line.clock_limit
if AI_rate > self.parent_clock_line.clock_limit:
# data cannot be sampled fater than ADwin cycle time
raise LabscriptError(f"Sample rate of ADwin module {self.name} is too fast for ADwin process!")
self.AI_rate = AI_rate
self.AI_ADwin_cycles = np.round(AI_rate / self.parent_clock_line.clock_limit)
def do_checks(self):
......
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