Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PandABox-tst
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
PandABox-tst
Commits
a32c4b78
Commit
a32c4b78
authored
Feb 27, 2017
by
Christopher Turner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change external clock period to frequency
parent
e6dee898
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fmc.py
tests/fmc.py
+4
-4
No files found.
tests/fmc.py
View file @
a32c4b78
...
...
@@ -34,18 +34,18 @@ class fmc(PandATest.PandATest):
inputy
=
raw_input
()
while
True
:
print
'What is the external clock
period
?'
print
'What is the external clock
frequency (MHz)
?'
try
:
custom_
period
=
int
(
raw_input
())
custom_
freq
=
int
(
raw_input
())
self
.
logger
.
info
(
"{:<21}{}"
.
format
(
"EXTERN CL
OCK PERIOD"
,
custom_period
))
"{:<21}{}"
.
format
(
"EXTERN CL
CK FREQ MHz"
,
custom_freq
))
break
except
ValueError
:
pass
for
cmd
,
expected
in
external_commands
.
items
():
response
=
self
.
send_cmd
(
cmd
)
expected
=
'OK ='
+
str
(((
8192
*
8
)
/
custom_period
))
expected
=
'OK ='
+
str
(((
8192
*
8
)
*
custom_freq
))
self
.
test_result
.
append
(
self
.
check_response
(
response
,
expected
,
cmd
,
1
))
...
...
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