Tags:
create new tag
view all tags
1. Initialize your TTC system (should be sending BC0s but no !L1A's) 1. Using the Python program *amc13_control.py*: a. enable AMC Inputs: ="I [list of AMC inputs to be enabled]"= i.e. ="I 0,1"= for lowest two inputs. a. Switch to Virtex chip: ="t1"= a. Enable fake data: ="w 1 0x83"= a. bit 0 - Run mode a. bit 1 - DAQ Link enable a. bit 7 - Fake data mode (no AMCs required) a. Reset virtex chip ="w 0 1"= 1. On your TTC system: Send Event Counter Reset (optional) 1. On your TTC system: Send L1A 1. Again, using *anc13_control.py*: a. Display status ="s"= a. Dump event data to a *binary* file: ="d test.dat"= The status after receiving one or more L1A should look something like this: <pre> *****AMC13 status***** Control 0: 03000041 DAQ Link Down TTC BCNT Error Control 1: 00100081 Crate fake event at L1A AMC Link status: 00000001 AMC Enabled List: 00 --No AMC links enabled-- TTC Info: EvN: 00000002 BcN: 00000880 OrN: 01038203 Bcnt Error: 0000007f EVB 32-bit Counters: SDRAM Page No: 00000001 SDRAM Event Ct: 00000390 Unread SDRAM Evts: 00000001 EVB 64-bit Counters: TTC BC0 err [0044]: 00000000 032f72cd L1A Ctr [0046]: 00000000 00000002 Run time [0048]: 0000002c 555dc692 Ready time [004a]: 0000002c 555f6516 Tot evs monitored [0056]: 00000000 00000002 AMC Counters: <---Link 00-----> Total Words [0040]: 00000000 00000e02 Recieved Evts [0052]: 00000000 00000002 Read Evts [0054]: 00000000 00000002 </pre> If you write a data file with the *D* command, you can dump it as follows (HCAL data format, sorry!): <pre> $ od -Ax -t x8 test.dat 000000 00000390deadbeef 5100000100900008 "deadbeef" sentinel, 0x390 length. 51... is CDF header EvN=1 000010 00000000000915b0 0010000100000010 AMC13 header stuff 000020 000000000000c701 0000000000000000 000030 0000000000000000 d800800000000001 000040 0007000600058009 000b000a00090008 000050 000f000e000d000c 0013001200110010 000060 0017001600150014 001b001a00190018 Fake HCAL data... 000070 001f001e001d001c 0023002200210020 000080 0027002600250024 002b002a00290028 000090 002f002e002d002c 0033003200310030 0000a0 0037003600350034 003b003a00390038 0000b0 003f003e003d003c 0043004200410040 ... 000da0 06b706b606b506b4 06bb06ba06b906b8 000db0 06bf06be06bd06bc 06c306c206c106c0 000dc0 06c706c606c506c4 06cb06ca06c906c8 000dd0 06cf06ce06cd06cc 06d306d206d106d0 000de0 06d706d606d506d4 06db06da06d906d8 000df0 06df06de06dd06dc 06e306e206e106e0 000e00 06e706e606e506e4 06eb06ea06e906e8 000e10 06ef06ee06ed06ec 06f306f206f106f0 000e20 06f706f606f506f4 06fb06fa06f906f8 000e30 541206fe06fd06fc 0000000000000100 000e40 a00001c8be880000 CDF trailer 0xa...... 000e48 </pre> -- Main.CharlieHill - 10 Aug 2012
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r3 - 27 Sep 2012
-
CharlieHill
Home
Site map
BUCMSPublic web
Main web
Sandbox web
TWiki web
BUCMSPublic Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback