mirror of https://github.com/m-labs/artiq.git
kasli_tester: support selection of TTL output to use as stimulus
This commit is contained in:
parent
51c123bad8
commit
a1c97ec4dd
|
@ -170,7 +170,13 @@ class KasliTester(EnvExperiment):
|
||||||
if not self.ttl_outs:
|
if not self.ttl_outs:
|
||||||
print("No TTL output channel available to use as stimulus.")
|
print("No TTL output channel available to use as stimulus.")
|
||||||
return
|
return
|
||||||
ttl_out_name, ttl_out_dev = next(iter(self.ttl_outs))
|
default_ttl_out_name, default_ttl_out_dev = next(iter(self.ttl_outs))
|
||||||
|
ttl_out_name = input("TTL device to use as stimulus (default: {}): ".format(default_ttl_out_name))
|
||||||
|
if ttl_out_name:
|
||||||
|
ttl_out_dev = self.get_device(ttl_out_name)
|
||||||
|
else:
|
||||||
|
ttl_out_name = default_ttl_out_name
|
||||||
|
ttl_out_dev = default_ttl_out_dev
|
||||||
for ttl_in_name, ttl_in_dev in self.ttl_ins:
|
for ttl_in_name, ttl_in_dev in self.ttl_ins:
|
||||||
print("Connect {} to {}. Press ENTER when done."
|
print("Connect {} to {}. Press ENTER when done."
|
||||||
.format(ttl_out_name, ttl_in_name))
|
.format(ttl_out_name, ttl_in_name))
|
||||||
|
|
Loading…
Reference in New Issue