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
58bbde3d
Commit
58bbde3d
authored
Nov 21, 2017
by
Dan Saunders
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates
parent
f98014ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
align_adc.py
projects/64ch/software/align_adc.py
+2
-2
setup.py
projects/64ch/software/setup.py
+2
-0
No files found.
projects/64ch/software/align_adc.py
View file @
58bbde3d
...
...
@@ -35,7 +35,7 @@ offsets = [0, 13, 2, 1, 4, 3, 6, 5, 8, 7, 10, 9, 12, 11]
invert
=
[
0x1d
,
0x1e
,
0x1f
,
0x20
,
0x21
,
0x22
,
0x23
,
0x24
,
0x25
]
uhal
.
setLogLevelTo
(
uhal
.
LogLevel
.
ERROR
)
board
=
uhal
.
getDevice
(
"board"
,
"ipbusudp-2.0://192.168.235.5
0
:50001"
,
"file://addrtab/top.xml"
)
board
=
uhal
.
getDevice
(
"board"
,
"ipbusudp-2.0://192.168.235.5
1
:50001"
,
"file://addrtab/top.xml"
)
#board = uhal.getDevice("board", "ipbusudp-2.0://192.168.235.16:50001", "file://addrtab/top_sim.xml")
#uhal.setLogLevelTo(uhal.LogLevel.INFO)
#manager = uhal.ConnectionManager("file://connections.xml")
...
...
@@ -53,7 +53,7 @@ board.dispatch()
time
.
sleep
(
1
)
chans
=
range
(
0x1
)
chans
=
range
(
64
)
adcs
=
range
(
0x10
)
patt
=
0x0ff
cap_len
=
0x80
...
...
projects/64ch/software/setup.py
View file @
58bbde3d
...
...
@@ -12,6 +12,7 @@ uhal.setLogLevelTo(uhal.LogLevel.ERROR)
ips
=
detector_config_tools
.
currentIPs
(
False
)
slaveReadoutBoards
=
True
ips
=
[
51
]
for
ip
in
ips
:
print
'Setting up readout board ip:'
,
ip
hw
=
uhal
.
getDevice
(
"board"
,
"ipbusudp-2.0://192.168.235."
+
str
(
ip
)
+
":50001"
,
"file://addrtab/top.xml"
)
...
...
@@ -84,3 +85,4 @@ print "daq.trig.csr.stat", hex(f_ctrl_2)
fw = hw.getNode("daq.timing.csr.stat.wait_sync").read();
hw.dispatch()
print "wait_sync, sync_err:", int(fw)
'''
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