diff --git a/script/local.py b/script/local.py index 1d7fa5d..e813da3 100755 --- a/script/local.py +++ b/script/local.py @@ -169,21 +169,22 @@ class Sinusoid(ReadonlyRegisterBase): def doRead(self): self.x = self.x + 5.0 if hasattr(self, 'x') else 0.0 return math.sin(self.x * math.pi / 180.0) - + + +#Pseudo devices add_device(Sinusoid("phase"), True) add_device(Sinusoid("bpm_q"), True) - add_device(Sinusoid("center_x"), True) add_device(Sinusoid("center_y"), True) center_x.setPolling(100) center_y.setPolling(100) - -try: - run("camtool") - add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = True, camera = "SINEG01-DSCR190", gauss = True), True) -except: - pass +if !controller.isLocalMode(): + try: + run("camtool") + add_device(CamTool("image_stats", prefix = "SINEG01-DSCR190:", latch = True, camera = "SINEG01-DSCR190", gauss = True), True) + except: + pass #Convex hull plots