mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
devices/pdq2: add RPC getter functions
This commit is contained in:
parent
179416dac7
commit
d708002fb9
@ -139,6 +139,12 @@ class Pdq2:
|
||||
self.num_channels = self.num_dacs * self.num_boards
|
||||
self.channels = [Channel() for i in range(self.num_channels)]
|
||||
|
||||
def get_num_boards(self):
|
||||
return self.num_boards
|
||||
|
||||
def get_num_channels(self):
|
||||
return self.num_channels
|
||||
|
||||
def close(self):
|
||||
self.dev.close()
|
||||
del self.dev
|
||||
|
Loading…
Reference in New Issue
Block a user