From 51e831cec5f26f13dcd80f0c3e0f3ca688a4d71c Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Thu, 25 Feb 2016 10:44:05 +0100 Subject: [PATCH] examples/pdq2: add break_realtime() b/c compiler, upload, pdq2 config --- examples/master/repository/coredevice_examples/pdq2_simple.py | 2 ++ examples/master/repository/coredevice_examples/transport.py | 1 + 2 files changed, 3 insertions(+) diff --git a/examples/master/repository/coredevice_examples/pdq2_simple.py b/examples/master/repository/coredevice_examples/pdq2_simple.py index 7cfe483d0..28eda6023 100644 --- a/examples/master/repository/coredevice_examples/pdq2_simple.py +++ b/examples/master/repository/coredevice_examples/pdq2_simple.py @@ -28,6 +28,8 @@ class PDQ2Simple(EnvExperiment): @kernel def one(self): + self.core.break_realtime() + delay(1*ms) self.load.advance() delay(1*ms) self.detect.advance() diff --git a/examples/master/repository/coredevice_examples/transport.py b/examples/master/repository/coredevice_examples/transport.py index ba367bdbc..5b67b27d9 100644 --- a/examples/master/repository/coredevice_examples/transport.py +++ b/examples/master/repository/coredevice_examples/transport.py @@ -72,6 +72,7 @@ class Transport(EnvExperiment): @kernel def repeat(self): + self.core.break_realtime() hist = [0 for _ in range(self.bins)] for i in range(self.repeats): n = self.one()