Tcl command "calb"

CALB library interface


Index:


Input types

CALBT_ITcid
pointer

CALB cid returned by a call to calb open

CALBT_ITlatchnr
integer range [0..29]

Latch channel number

CALBT_ITpednr
integer range [0..29]

Pedestal number

CALBT_ITpedside
case insensitive set
  • "A"
  • "B"

CALBT_ITwrite_creg
record
xresen
integer range [0,1]

d12force
integer range [0,1]

sel
integer range [0,2,5]

berren
integer range [0,1]

zsen
integer range [0,1]

acqen
integer range [0,1]

CALBT_ITget_fields
case insensitive set
  • "xresen"
  • "d12force"
  • "sel"
  • "berren"
  • "zsen"
  • "acqen"
  • "xberr"
  • "ffhd"
  • "hfhd"
  • "efhd"
  • "ffd"
  • "hfd"
  • "efd"

CALBT_ITset_fields
case insensitive set
  • "xresen"
  • "d12force"
  • "sel"
  • "berren"
  • "zsen"
  • "acqen"


Output types

CALBT_OTdummy
natural

Dummy value

CALBT_OTcid
pointer

CALB cid

CALBT_OTispresent
natural

0, if no CALB board present
1, if an ADC is present
2, if a TDC is present

CALBT_OTread_creg
record
xresen
natural

d12force
natural

sel
natural

berren
natural

zsen
natural

acqen
natural

CALBT_OTread_sreg
record
xberr
natural

ffhd
natural

hfhd
natural

efhd
natural

ffd
natural

hfd
natural

efd
natural

CALBT_OTread_dfifo
record
nvd
natural

chan
natural

ab
natural

dato
natural

CALBT_OTread_hfifo
record
nvd
natural

nword
natural

ntrig
natural

CALBT_OTreadlatch
record
ab
natural

ldata
natural

CALBT_OTreadpage_csreg
record
xresen
natural

d12force
natural

sel
natural

berren
natural

zsen
natural

acqen
natural

xberr
natural

ffhd
natural

hfhd
natural

efhd
natural

ffd
natural

hfd
natural

efd
natural

CALBT_OTreadpage_pedside
array[30] of
natural

CALBT_OTreadpage_pedestal
record
ped_a
CALBT_OTreadpage_pedside

ped_b
CALBT_OTreadpage_pedside


Commands

calb ispresent chain crate slot
Input:
chain
natural

crate
natural

slot
natural

Output:
CALBT_OTispresent

C function:
calbt_tl_ispresent

Query if a CALB board is present
Also returns the type of the board

calb open chain crate slot
Input:
chain
natural

crate
natural

slot
natural

Output:
CALBT_OTcid

C function:
calbt_tl_open

Open a CALB board
Returns a cid

calb close cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTdummy

C function:
calbt_tl_close

Close a CALB board

calb raw read creg cid
Input:
cid
CALBT_ITcid

Output:
natural

C function:
calbt_tl_raw_read_creg

Raw read control register

calb raw read sreg cid
Input:
cid
CALBT_ITcid

Output:
natural

C function:
calbt_tl_raw_read_sreg

Raw read status register

calb raw read rdtrg cid
Input:
cid
CALBT_ITcid

Output:
natural

C function:
calbt_tl_raw_read_rdtrg

Raw read trigger counter

calb raw read dfifo cid
Input:
cid
CALBT_ITcid

Output:
natural

C function:
calbt_tl_raw_read_dfifo

Raw read data FIFO

calb raw read hfifo cid
Input:
cid
CALBT_ITcid

Output:
natural

C function:
calbt_tl_raw_read_hfifo

Raw read header FIFO

calb raw read latch cid chnr
Input:
cid
CALBT_ITcid

chnr
CALBT_ITlatchnr

Output:
natural

C function:
calbt_tl_raw_read_latch

Raw read a Latch

calb raw read pedestal cid pednr pedside
Input:
cid
CALBT_ITcid

pednr
CALBT_ITpednr

pedside
CALBT_ITpedside

Output:
natural

C function:
calbt_tl_raw_read_pedestal

Raw read a pedestal

calb raw write creg cid value
Input:
cid
CALBT_ITcid

value
natural

Output:
CALBT_OTdummy

C function:
calbt_tl_raw_write_creg

Raw write control register

calb raw write pedestal cid pednr pedside value
Input:
cid
CALBT_ITcid

pednr
CALBT_ITpednr

pedside
CALBT_ITpedside

value
natural

Write with an AND 0xfff

Output:
CALBT_OTdummy

C function:
calbt_tl_raw_write_pedestal

Raw write a pedestal

calb read creg cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTread_creg

C function:
calbt_tl_read_creg

Read the Control Register

calb read sreg cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTread_sreg

C function:
calbt_tl_read_sreg

Read the Status Register

calb read rdtrg cid
Input:
cid
CALBT_ITcid

Output:
natural

C function:
calbt_tl_read_rdtrg

Reat The Rigger Count register

calb read dfifo cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTread_dfifo

C function:
calbt_tl_read_dfifo

Read the DFIFO

calb read hfifo cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTread_hfifo

C function:
calbt_tl_read_hfifo

Read the HFIFO

calb read latch cid chnr
Input:
cid
CALBT_ITcid

chnr
CALBT_ITlatchnr

Output:
CALBT_OTreadlatch

C function:
calbt_tl_read_latch

Read a Latch

calb read pedestal cid pednr pedside
Input:
cid
CALBT_ITcid

pednr
CALBT_ITpednr

pedside
CALBT_ITpedside

Output:
natural

C function:
calbt_tl_read_pedestal

Read a pedestal

calb write creg cid rec
Input:
cid
CALBT_ITcid

rec
CALBT_ITwrite_creg

Output:
CALBT_OTdummy

C function:
calbt_tl_write_creg

Write the Control Register

calb write reset cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTdummy

C function:
calbt_tl_write_reset

Write to the Reset register
Reset the board

calb write clrtrg cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTdummy

C function:
calbt_tl_write_clrtrg

Write to the Clear Trigger Counter register
Clear the trigger counter

calb write swtrg cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTdummy

C function:
calbt_tl_write_swtrg

Write to the Trigger register
Send an internal trigger

calb write pedestal cid pednr pedside value
Input:
cid
CALBT_ITcid

pednr
CALBT_ITpednr

pedside
CALBT_ITpedside

value
integer range [0..4095]

Output:
CALBT_OTdummy

C function:
calbt_tl_write_pedestal

Write a pedestal

calb get fieldname cid
Input:
fieldname
CALBT_ITget_fields

cid
CALBT_ITcid

Output:
natural

C function:
calbt_tl_get

Get a field

calb set fieldname cid value
Input:
fieldname
CALBT_ITset_fields

cid
CALBT_ITcid

value
natural

Output:
CALBT_OTdummy

C function:
calbt_tl_set

Set a field

calb readpage csreg cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTreadpage_csreg

C function:
calbt_tl_readpage_csreg

Read control and status register

calb readpage pedestal cid
Input:
cid
CALBT_ITcid

Output:
CALBT_OTreadpage_pedestal

C function:
calbt_tl_readpage_pedestal

Read all the pedestals


Generated Tue 20. May 1997 09:55:55 from a tl file.
Do not modify by hand!