Hello, I'm Jaehun You, an undergraduate intern in Seoul National University's QuIQCL.
There was a difficult part while I was starting ARTIQ, so I asked for help.
I am going to use the KC705 board as a core, and I assigned the ip to 192.168.1.70 through the code below.

And I also assigned the code to the above ip, but an error came up, so I asked you a question.
from artiq.experiment import *
class BlinkForever(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("led")
@kernel
def run(self):
self.core.reset()
# while True:
self.led.pulse(100*ms)
delay(100*ms)
def main():
from artiq.coredevice import core, ttl
dmgr = dict()
dmgr["core"] = core.Core(dmgr, "192.168.1.70", 1e-9)
dmgr["led"] = ttl.TTLOut(dmgr, 19)
exp = BlinkForever((dmgr, None, None, None))
exp.run()
if __name__ == "__main__":
main()`
device_db.py
core_addr = "192.168.1.70"
device_db = {
# Core device
"core": {
"type": "local",
"module": "artiq.coredevice.core",
"class": "Core",
"arguments": {"host": core_addr, "ref_period": 1e-9}
},
...
Also, I would appreciate it if you could tell me which device to connect the board to on-line, whether it is a router or a host.
Thank you for reading it.