Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
AIDA-2020 TLU
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
AIDA-2020 TLU
Commits
6306316f
Commit
6306316f
authored
May 15, 2015
by
David Cussans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited startTLU.py script
parent
fb1ed0aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
startTLU.py
firmware/scripts/startTLU.py
+7
-4
No files found.
firmware/scripts/startTLU.py
View file @
6306316f
...
...
@@ -119,7 +119,7 @@ print "DUTMaskR = " , DUTMask
if
listenForTelescopeShutter
:
print
"Listen for veto from shutter"
board
.
write
(
"IgnoreShutterVetoW"
,
0
)
else
else
:
print
"Ignore veto from shutter"
board
.
write
(
"IgnoreShutterVetoW"
,
1
)
IgnoreShutterVeto
=
board
.
read
(
"IgnoreShutterVetoR"
)
...
...
@@ -142,7 +142,7 @@ print "FIFO fill level after resetting FIFO = " , eventFifoFillLevel
if
writeTimestamps
:
print
"Enabling data recording"
board
.
write
(
"Enable_Record_Data"
,
1
)
else
else
:
print
"Disabling data recording"
board
.
write
(
"Enable_Record_Data"
,
0
)
...
...
@@ -168,8 +168,11 @@ while True:
postVetotriggerCount
=
board
.
read
(
"PostVetoTriggersR"
)
preVetoFreq
=
(
preVetotriggerCount
-
oldPreVetotriggerCount
)
/
loopWait
postVetoFreq
=
(
postVetotriggerCount
-
oldPostVetotriggerCount
)
/
loopWait
print
"pre , post veto triggers = "
,
preVetotriggerCount
,
postVetotriggerCount
oldPreVetotriggerCount
=
preVetotriggerCount
oldPostVetotriggerCount
=
postVetotriggerCount
print
"pre , post veto triggers , pre , post frequency = "
,
preVetotriggerCount
,
postVetotriggerCount
,
preVetoFreq
,
postVetoFreq
timestampHigh
=
board
.
read
(
"CurrentTimestampHR"
)
timestampLow
=
board
.
read
(
"CurrentTimestampLR"
)
print
"Current timestamp High,Low (hex) = "
,
hex
(
timestampHigh
)
,
hex
(
timestampLow
)
...
...
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