IMPLEMENTING THE CC-USB CONTROL MODULE FOR USE IN CAMAC CRATES AT - - PowerPoint PPT Presentation

implementing the cc usb
SMART_READER_LITE
LIVE PREVIEW

IMPLEMENTING THE CC-USB CONTROL MODULE FOR USE IN CAMAC CRATES AT - - PowerPoint PPT Presentation

IMPLEMENTING THE CC-USB CONTROL MODULE FOR USE IN CAMAC CRATES AT THE FERMILAB TEST BEAM FACILITY B Y K A R E N L I P A , S I S T I N T E R N A U G 8 , 2 0 1 2 1 OUTLINE Background ound info Speci cific c use: : cosmic


slide-1
SLIDE 1

IMPLEMENTING THE CC-USB CONTROL MODULE FOR USE IN CAMAC CRATES AT THE FERMILAB TEST BEAM FACILITY

B Y K A R E N L I P A , S I S T I N T E R N A U G 8 , 2 0 1 2

1

slide-2
SLIDE 2

OUTLINE

  • Background
  • und info
  • Speci

cific c use: : cosmic mic ray test st stand nd

  • Goals
  • My Process

ss

  • Questio

stions ns

2

slide-3
SLIDE 3

HARDWARE: CAMAC SYSTEM

Slot number: from 1 to 25

*examples on next slide 3

slide-4
SLIDE 4

N, A, AND F

  • Read (F 0-7)

7)

  • Wri

rite (F 16-23) 3)

  • I: inhibit

it

  • Z: initia

ialize ize

  • C: clear

4

slide-5
SLIDE 5
  • Contr

ntrol

  • l modu
  • dule

le

  • Transmits

nsmits and recei ceives data to/fr from

  • m crate

e modules

  • dules
  • Access

essed d by comput puter er via USB cable e

  • Newest

est type e of contr ntrol

  • l

module

  • dule (oth
  • ther

ers are

  • bsol

solete)

  • Not
  • t previousl

viously y equi uipped ped for us use at Fermi ermila lab

HARDWARE: CC-USB

5

slide-6
SLIDE 6

COSMIC RAY TEST STAND PROJECT

  • Goal:

l: to produce uce a reliable iable means ns of testing esting ne new det etect ector

  • rs
  • Wire

e chambe bers s – x- and y-plane ane wires es indic icat ate e locati tion

  • n of

parti ticles les

  • Scintillators and PMT’s omit

signal gnal when parti ticle le travels els throug

  • ugh (tri

trigge gger)

Picture of test stand

6

slide-7
SLIDE 7

CAMAC crates

  • Lots lying around, economical

CC CC-USB SB

  • CAMAC parallel bus is now
  • bsolete

Wire re chambe mbers rs, , scint ntil illat ators, , PMTs

HARDWARE

7

slide-8
SLIDE 8
  • x- and y-plane

ane wires indic dicat ate e locatio ions ns where particle ticles hit

  • Sends

s a signal nal to card

HARDWARE: WIRE CHAMBERS

Photos: http://www-ppd.fnal.gov/FTBF/Facility/Inst_mwpc/Instructions.html http://universe-review.ca/R15-20-accelerators.htm

8

slide-9
SLIDE 9

HARDWARE: SCINTILLATORS + PMT’S

Photo: http://williamson-labs.com/ltoc/cbr-tech.htm

  • scin·

n·til· til·la·t a·tor

  • r (s n tl

tl- t r). n. A su A subst stanc nce that t glows ws when en hit by high-energy nergy particles cles or photons

  • ns (www.freedictionary.com)
  • Photomulti
  • multiplier

plier tubes: “multiply” result t of scinti ntillat llator

  • r

hit (emit mit elect ectrical rical signals) als)

9

slide-10
SLIDE 10

THE SETUP

10

slide-11
SLIDE 11
  • Lecr

croy y 3377 7 Time me-to to-Di Digit gital l conver erter er

  • counts the time from a hit in the wire chamber until stop signal
  • Lecr

croy y 4301: 1: encod coding ing and reado dout ut

  • sends out stop signal to all the TDCs

THE SETUP: CAMAC CRATE

11

slide-12
SLIDE 12

Pul ulse e genera nerator:

  • r: produc

duces s mock ck STOP and hit signa nals ls

TEST PROCEDURE

12

slide-13
SLIDE 13

GOALS

  • Softw

tware are to suppo pport t the use of the CC-USB SB contr trol module

  • Python
  • n wrappi

pping ng (ease for user) r)

  • Speci

cifics cs relevant vant to cosmic mic ray project ct

13

slide-14
SLIDE 14

Learn about CAMAC Test out example code Wrap in python Develop basic python classes Module- specific python classes Develop tests (scripts) DAQ/readout system Hardware stuff System + telescope readout

STEPS I TOOK

14

slide-15
SLIDE 15

All the benefit its of Pyth thon

  • n

  • Ease of use (syntax)**
  • High level
  • Object-oriented
  • Script-based (testing)

With h the power r of C!

  • Access to USB functions

(examples)

  • speed

PYTHON WRAPPING

15

slide-16
SLIDE 16
  • Functi

tions

  • ns (PyArg_P

yArg_Par arseT eTuple ple and Py_BuildV BuildValue lue) take e in and return eturn Python hon objects ects

  • Within

hin the wrapper per functi tion,

  • n, call

l is made e to C functi tion

  • n

define ned else sewhere here

HOW TO WRAP A C FUNCTION

STEP 1: WRAPPER FUNCTION

Photo: http://docs.python.org/extending/extending.html#a-simple-example

16

slide-17
SLIDE 17
  • Defines the “nickname” that each function will be

called ed by

HOW TO WRAP A C FUNCTION

STEP 2: METHODS TABLE

Photo: http://docs.python.org/extending/extending.html#a-simple-example

17

slide-18
SLIDE 18
  • Define

nes s the name e of the module ule to be called ed from m python

  • n

HOW TO WRAP A C FUNCTION

STEP 3: INITIALIZATION FUNCTION

Photo: http://docs.python.org/extending/extending.html#a-simple-example

18

slide-19
SLIDE 19

Learn about CAMAC Test out example code Wrap in python Develop basic python class Module- specific python classes Develop tests (scripts) (general) DAQ/readout system Hardware stuff System + telescope readout

STEPS I TOOK

19

slide-20
SLIDE 20

MY CONTRIBUTION: SOFTWARE

20

slide-21
SLIDE 21

BIG MILESTONES

Read-out Telescope (coming soon) Read-out wire chamber (multi- crate) Read control

  • mod. info

Read-out multiple TDCs Write a Python Class Read-out a TDC (test setup) Read + test w/ scaler counter Wrap a C function

21

slide-22
SLIDE 22
  • Sup

uper ervi viso sor: r: Geof

  • ff

f Savage ge

  • Ment

ntor

  • rs:

s: El Elliott t McCror

  • ry,

, Jamieso eson n Olsen en

  • Dianne

ne En Engram, am, SIST T comm mmitt ttee

  • Dr. James

es Davenpor

  • rt

ACKNOWLEDGEMENTS

slide-23
SLIDE 23

QUESTIONS?