Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL RS485 - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 RS485 - Testing
Commits
7719c07b
Commit
7719c07b
authored
Jul 10, 2018
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modification to allow for adapter board daisy chain to be made after LEDs test
parent
4019b90b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
rs485_pulse_rtm.py
pts-fm/python/rs485_pulse_rtm.py
+4
-4
ttl_pulse_switch.py
pts-fm/python/ttl_pulse_switch.py
+13
-0
No files found.
pts-fm/python/rs485_pulse_rtm.py
View file @
7719c07b
...
...
@@ -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
):
...
...
pts-fm/python/ttl_pulse_switch.py
View file @
7719c07b
...
...
@@ -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
)
...
...
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