From 1378cebe2ce859e7092c0d18722ec1e4bd8649cd Mon Sep 17 00:00:00 2001 From: pca006132 Date: Wed, 9 Mar 2022 11:08:46 +0800 Subject: [PATCH] drivers: use print_rpc --- artiq/coredevice/phaser.py | 6 +++--- artiq/frontend/artiq_sinara_tester.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/artiq/coredevice/phaser.py b/artiq/coredevice/phaser.py index b37b0382e..baadd8db8 100644 --- a/artiq/coredevice/phaser.py +++ b/artiq/coredevice/phaser.py @@ -208,7 +208,7 @@ class Phaser: gw_rev = self.read8(PHASER_ADDR_GW_REV) if debug: - # NAC3TODO print("gw_rev:", gw_rev) + print_rpc(("gw_rev:", gw_rev)) self.core.break_realtime() self.core.delay(.1*ms) # slack @@ -288,7 +288,7 @@ class Phaser: if self.tune_fifo_offset: fifo_offset = self.dac_tune_fifo_offset() if debug: - # NAC3TODO print("fifo_offset:", fifo_offset) + print_rpc(("fifo_offset:", fifo_offset)) self.core.break_realtime() # self.dac_write(0x20, 0x0000) # stop fifo sync @@ -300,7 +300,7 @@ class Phaser: self.core.delay(.1*ms) # slack if alarms & ~0x0040 != 0: # ignore PLL alarms (see DS) if debug: - # NAC3TODO print("alarms:", alarms) + print_rpc(("alarms:", alarms)) self.core.break_realtime() # ignore alarms else: diff --git a/artiq/frontend/artiq_sinara_tester.py b/artiq/frontend/artiq_sinara_tester.py index a92eb949c..73de43a45 100755 --- a/artiq/frontend/artiq_sinara_tester.py +++ b/artiq/frontend/artiq_sinara_tester.py @@ -257,7 +257,7 @@ class SinaraTester(EnvExperiment): cpld.set_all_att_mu(test_word) readback_word = cpld.get_att_mu() if readback_word != test_word: - # NAC3TODO print(readback_word, test_word) + print_rpc((readback_word, test_word)) # NAC3TODO raise ValueError pass @@ -389,7 +389,7 @@ class SinaraTester(EnvExperiment): def almazny_set_attenuators(self, almazny: Almazny, ch: int32, atts: float): self.core.break_realtime() almazny.set_att(ch, atts) - + @kernel def almazny_toggle_output(self, almazny: Almazny, rf_on: bool): self.core.break_realtime() @@ -654,7 +654,7 @@ class SinaraTester(EnvExperiment): card_dev.input_mu(n) self.core.break_realtime() card_dev.gate_roi(0) - # NAC3TODO print("ROI sums:", n) + print_rpc(("ROI sums:", n)) def test_grabbers(self): print("*** Testing Grabber Frame Grabbers.")