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
f44284ef
Commit
f44284ef
authored
Aug 24, 2017
by
Dave Newbold (UoB)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
3b2e7939
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ro_test.py
projects/64ch/software/ro_test.py
+5
-3
No files found.
projects/64ch/software/ro_test.py
View file @
f44284ef
...
...
@@ -68,6 +68,7 @@ sleep(1)
r
=
list
()
evts
=
0
max_evts
=
100000
n_trig
=
3
while
True
:
...
...
@@ -87,7 +88,7 @@ while True:
while
len
(
r
)
>
0
:
m
=
int
(
r
.
pop
(
0
))
if
(
m
>>
16
)
!=
0xaa00
:
if
(
m
>>
24
)
!=
0xaa
:
print
"Bad news: event header incorrect"
dump
()
print
"
%08
x"
%
m
...
...
@@ -97,6 +98,7 @@ while True:
l
=
m
&
0xffff
if
len
(
r
)
>=
l
:
w0
=
int
(
r
.
pop
(
0
))
print
hex
(
w0
)
rtype
=
(
w0
>>
28
)
print
"Readout type
%
d Len
%04
x"
%
(
rtype
,
l
)
if
rtype
==
0
:
# A data block
...
...
@@ -144,8 +146,8 @@ while True:
elif
rtype
==
1
:
# A trigger block
ttype
=
w0
&
0x3ffff
tstamp
=
int
(
r
.
pop
(
0
))
|
(
int
(
r
.
pop
(
0
))
<<
32
)
for
_
in
range
(
5
):
r
.
pop
(
0
)
for
_
in
range
(
2
*
n_trig
+
1
):
print
hex
(
r
.
pop
(
0
)
)
print
"
\t
Tbits
%08
x Time
%012
x"
%
(
ttype
,
tstamp
)
else
:
print
"Unknown readout type"
...
...
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