Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ADC Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
ADC Testing
Commits
35df7df5
Commit
35df7df5
authored
Aug 02, 2011
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add adctest program and filter script
parent
53165df8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
20 deletions
+5
-20
adctest.py
adctest.py
+2
-17
filter.py
test/filter.py
+3
-3
No files found.
adctest.py
View file @
35df7df5
import
wxversion
# We need at least version 2.8
wxversion
.
ensureMinimal
(
'2.8'
)
# We can start importing modules
import
wx
import
UI.Controller
# Create an application
app
=
wx
.
App
(
False
)
# Create our controller and bind it to the app
controller
=
UI
.
Controller
.
Controller
(
app
)
# Start the main loop
app
.
MainLoop
()
import
qtGUI
as
GUI
GUI
.
start
()
test/filter.py
View file @
35df7df5
...
...
@@ -4,12 +4,12 @@ def adj(x):
return
round
(
x
/
5.0
*
(
2
**
15
))
src
=
open
(
argv
[
1
],
"r"
)
lines
=
[
'
\t
'
+
i
for
i
in
src
.
readlines
()]
lines
=
[
int
(
i
.
split
(
", "
)[
-
1
][:
-
1
],
int
(
argv
[
5
]))
for
i
in
src
.
readlines
()]
src
.
close
()
dest
=
open
(
argv
[
2
],
"w"
)
dest
.
write
(
"[SIGNAL]
\n
nbits =
24
\n
rate = 1000000
\n
=ndata = "
)
dest
.
writelines
(
lines
)
dest
.
write
(
"[SIGNAL]
\n
nbits =
%
s
\n
rate =
%
s
\n
data = "
%
(
argv
[
3
],
argv
[
4
])
)
dest
.
writelines
(
'
\t
%
d
\n
'
%
i
for
i
in
lines
[
48
:]
)
dest
.
close
()
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