Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
euro-adc-65m-14b-40cha-gw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
eurocard
euro-adc-65m-14b-40cha
euro-adc-65m-14b-40cha-gw
Commits
09b32601
Commit
09b32601
authored
Aug 26, 2017
by
Dave Newbold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding functions to alignment script
parent
ee784216
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
align_adc.py
projects/64ch/software/align_adc.py
+9
-6
No files found.
projects/64ch/software/align_adc.py
View file @
09b32601
...
...
@@ -116,12 +116,12 @@ for i_chan in chans:
non_cont
=
False
for
i
in
range
(
len
(
res
)
-
1
):
if
res
[
i
+
1
]
and
not
res
[
i
]:
if
min
=
0
:
if
min
=
=
0
:
min
=
i
+
1
else
:
non_cont
=
True
elif
res
[
i
]
and
not
res
[
i
+
1
]:
if
max
=
0
:
if
max
=
=
0
:
max
=
i
else
:
non_cont
=
True
...
...
@@ -131,8 +131,11 @@ for i_chan in chans:
trp
+=
"+"
else
:
trp
+=
"."
a
=
int
((
min
+
max
)
/
2
)
d_slip
=
a
mod
taps_per_slip
a
=
int
((
min
+
max
)
/
2
)
d_slip
=
offsets
.
index
(
a
mod
taps_per_slip
)
d_tap
=
a
%
taps_per_slip
print
"Chan, min, max, rec_slip, rec_tap:"
,
hex
(
i_chan
),
hex
(
min
),
hex
(
max
),
hex
(
d_slip
),
hex
(
d_tap
)
if
not
non_cont
:
print
"Chan, min, max, rec_slip, rec_tap:"
,
hex
(
i_chan
),
hex
(
min
),
hex
(
max
),
hex
(
d_slip
),
hex
(
d_tap
)
else
:
print
"Chan, NON CONTINUOUS RANGE"
,
hex
(
i_chan
)
print
trp
\ No newline at end of file
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