forked from M-Labs/artiq
examples: fix precompile example for NAC3
This commit is contained in:
parent
eb4e80e022
commit
5ffa6e0522
|
@ -1,9 +1,10 @@
|
|||
from artiq.experiment import *
|
||||
|
||||
|
||||
# NAC3TODO
|
||||
|
||||
@nac3
|
||||
class Precompile(EnvExperiment):
|
||||
hello_str: Kernel[str]
|
||||
|
||||
def build(self):
|
||||
self.setattr_device("core")
|
||||
self.hello_str = "hello ARTIQ"
|
||||
|
@ -12,8 +13,8 @@ class Precompile(EnvExperiment):
|
|||
self.precompiled = self.core.precompile(self.hello, "world")
|
||||
|
||||
@kernel
|
||||
def hello(self, arg):
|
||||
print(self.hello_str, arg)
|
||||
def hello(self, arg: str):
|
||||
print_rpc((self.hello_str, arg))
|
||||
self.hello_str = "nowriteback"
|
||||
|
||||
def run(self):
|
||||
|
|
Loading…
Reference in New Issue