Skip to content
Snippets Groups Projects
Commit 1aef649f authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-769: Only accept valid clock settings

parent 93002a4d
No related branches found
No related tags found
1 merge request!317Resolve L2SS-769 "Implement digital beam"
......@@ -213,6 +213,9 @@ class SDP(opcua_device):
#raise ValueError(f"Could not determine Nyquist zone for antenna type {self.AntennaType} clock {self._clock}")
def write_clock_RW(self, clock):
if clock not in (160*1000000, 200*1000000):
raise ValueError(f"Unsupported clock frequency: {clock}")
# Tell all FPGAs to use this clock
self.proxy.FPGA_pps_expected_cnt_RW = [clock] * self.N_pn
......
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