forked from M-Labs/artiq
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