Commit 7719c07b authored by unknown's avatar unknown

modification to allow for adapter board daisy chain to be made after LEDs test

parent 4019b90b
......@@ -191,10 +191,10 @@ def main(bus, tname, inf, log):
# Ask the user to make the daisy-chain
print("Connect the LEMO cable as follows:")
print(" - BLU cable to INV-TTL CH A")
print(" - GRN cable to INV-TTL CH B")
print(" - RED cable to INV-TTL CH C")
print(" - YEL cable to INV-TTL CH D")
print(" - BLU cable to INV-TTL CH A OUT")
print(" - GRN cable to INV-TTL CH B OUT")
print(" - RED cable to INV-TTL CH C OUT")
print(" - YEL cable to INV-TTL CH D OUT")
reply = raw_input("Have the connections been made? (yes/no) ")
while (1):
......
......@@ -153,6 +153,19 @@ def main(bus, tname, inf, log):
chans = ['1', '2', '3', '4', '5', '6', 'A', 'B', 'C', 'D']
try:
# Ask the user to make the daisy-chain
print("Please plug in the two patch boards for front panel daisy-chaining:\n")
reply = raw_input("Is the patch board plugged-in? (yes/no) ")
while True:
if "yes" in reply.lower():
break
if "no" in reply.lower():
msg = "ERROR: No daisy-chain on front panel"
pel.set(msg)
return pel.get()
else:
reply = raw_input('Please type "yes" or "no" to continue: ')
# Initialize a pulse counter object
pc = CPulseCounter(bus, PULSE_CNT_BASE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment