Skip to content
Snippets Groups Projects
Commit 76d51abf authored by rivers's avatar rivers
Browse files

Renamed from 16element_dxp.*

parent 7b62c890
No related branches found
No related tags found
No related merge requests found
# Setup the DXP CAMAC MCA.
# Change the following environment variable to point to the desired
# system configuration file
putenv("XIA_CONFIG=xiasystem.cfg")
# Set environment variables for the FiPPI files.
# FIPPI0,FIPPI1,FIPPI2,FIPPI3 should point to the files for
# decimation=0,2,4,6 respectively. FIPPI_DEFAULT should point to the
# file that will be loaded initially at boot time.
putenv("FIPPI0=f01x2p0g.fip")
putenv("FIPPI1=f01x2p2g.fip")
putenv("FIPPI2=f01x2p4g.fip")
putenv("FIPPI3=f01x2p6g.fip")
putenv("FIPPI_DEFAULT=f01x2p4g.fip")
# Set logging level (1=ERROR, 2=WARNING, 3=XXX, 4=DEBUG)
dxp_md_set_log_level(2)
dxp_initialize
# DXPConfig(serverName, detChan1, detChan2, detChan3, detChan4, queueSize)
DXPConfig("DXP1", 0, 1, 2, 3, 300)
DXPConfig("DXP2", 4, 5, 6, 7, 300)
DXPConfig("DXP3", 8, 9, 10, 11, 300)
DXPConfig("DXP4", 12, 13, 14, 15, 300)
dbLoadRecords("camacApp/Db/16element_dxp.db","P=xxx:med:", camac)
# Load all of the MCA and DXP records
dbLoadTemplate("16element_dxp.substitutions")
file "$(MCA)/mcaApp/Db/simple_mca.db"
{
pattern
{P, M, DTYP, INP PREC, CHANS}
{xxx:med: mca1 "MPF MCA", "#C0 S0 @DXP1", 2, 2048}
{xxx:med: mca2 "MPF MCA", "#C0 S1 @DXP1", 2, 2048}
{xxx:med: mca3 "MPF MCA", "#C0 S2 @DXP1", 2, 2048}
{xxx:med: mca4 "MPF MCA", "#C0 S3 @DXP1", 2, 2048}
{xxx:med: mca5 "MPF MCA", "#C0 S4 @DXP2", 2, 2048}
{xxx:med: mca6 "MPF MCA", "#C0 S5 @DXP2", 2, 2048}
{xxx:med: mca7 "MPF MCA", "#C0 S6 @DXP2", 2, 2048}
{xxx:med: mca8 "MPF MCA", "#C0 S7 @DXP2", 2, 2048}
{xxx:med: mca9 "MPF MCA", "#C0 S8 @DXP3", 2, 2048}
{xxx:med: mca10 "MPF MCA", "#C0 S9 @DXP3", 2, 2048}
{xxx:med: mca11 "MPF MCA", "#C0 S10 @DXP3", 2, 2048}
{xxx:med: mca12 "MPF MCA", "#C0 S11 @DXP3", 2, 2048}
{xxx:med: mca13 "MPF MCA", "#C0 S12 @DXP4", 2, 2048}
{xxx:med: mca14 "MPF MCA", "#C0 S13 @DXP4", 2, 2048}
{xxx:med: mca15 "MPF MCA", "#C0 S14 @DXP4", 2, 2048}
{xxx:med: mca16 "MPF MCA", "#C0 S15 @DXP4", 2, 2048}
}
# DXP records
file "$(DXP)/dxpApp/Db/dxp2x.db"
{
pattern
{P, R, INP }
{xxx:med: dxp1 "#C0 S0 @DXP1"}
{xxx:med: dxp2 "#C0 S1 @DXP1"}
{xxx:med: dxp3 "#C0 S2 @DXP1"}
{xxx:med: dxp4 "#C0 S3 @DXP1"}
{xxx:med: dxp5 "#C0 S4 @DXP2"}
{xxx:med: dxp6 "#C0 S5 @DXP2"}
{xxx:med: dxp7 "#C0 S6 @DXP2"}
{xxx:med: dxp8 "#C0 S7 @DXP2"}
{xxx:med: dxp9 "#C0 S8 @DXP3"}
{xxx:med: dxp10 "#C0 S9 @DXP3"}
{xxx:med: dxp11 "#C0 S10 @DXP3"}
{xxx:med: dxp12 "#C0 S11 @DXP3"}
{xxx:med: dxp13 "#C0 S12 @DXP4"}
{xxx:med: dxp14 "#C0 S13 @DXP4"}
{xxx:med: dxp15 "#C0 S14 @DXP4"}
{xxx:med: dxp16 "#C0 S15 @DXP4"}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment