Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Conv TTL Blocking - Testing
Commits
00bd6cd1
Commit
00bd6cd1
authored
Jun 27, 2018
by
Denia Bouhired-Ferrag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modification to test to allow for plugging of adapter board
parent
285344ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ttl_pulse_switch.py
fm/pts/python/ttl_pulse_switch.py
+14
-0
No files found.
fm/pts/python/ttl_pulse_switch.py
View file @
00bd6cd1
...
...
@@ -153,6 +153,20 @@ 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 patch board 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: Daisy-chain on front panel not made"
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment