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

New file from 3.13 tree

parent 131cc779
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 mcaApp/Db/simple_mca.db mca
{
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 camacApp/Db/dxp2x.db camac
{
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"}
}
file ipApp/Db/IpUnidigLi.db ip
{
pattern
{P, R, C, IPSLOT}
{xxx:, Unidig, 0, b}
}
file ipApp/Db/IpUnidigBi.db ip
{
pattern
{P, R, BIT}
{xxx:, Unidig, 0}
{xxx:, Unidig, 1}
{xxx:, Unidig, 2}
{xxx:, Unidig, 3}
{xxx:, Unidig, 4}
{xxx:, Unidig, 5}
{xxx:, Unidig, 6}
{xxx:, Unidig, 7}
{xxx:, Unidig, 8}
{xxx:, Unidig, 9}
{xxx:, Unidig, 10}
{xxx:, Unidig, 11}
{xxx:, Unidig, 12}
{xxx:, Unidig, 13}
{xxx:, Unidig, 14}
{xxx:, Unidig, 15}
{xxx:, Unidig, 16}
{xxx:, Unidig, 17}
{xxx:, Unidig, 18}
{xxx:, Unidig, 19}
{xxx:, Unidig, 20}
{xxx:, Unidig, 21}
{xxx:, Unidig, 22}
{xxx:, Unidig, 23}
}
file ipApp/Db/IpUnidigBo.db ip
{
pattern
{P, R, C, IPSLOT, BIT}
{xxx:, Unidig, 0, b, 0}
{xxx:, Unidig, 0, b, 1}
{xxx:, Unidig, 0, b, 2}
{xxx:, Unidig, 0, b, 3}
{xxx:, Unidig, 0, b, 4}
{xxx:, Unidig, 0, b, 5}
{xxx:, Unidig, 0, b, 6}
{xxx:, Unidig, 0, b, 7}
{xxx:, Unidig, 0, b, 8}
{xxx:, Unidig, 0, b, 9}
{xxx:, Unidig, 0, b, 10}
{xxx:, Unidig, 0, b, 11}
{xxx:, Unidig, 0, b, 12}
{xxx:, Unidig, 0, b, 13}
{xxx:, Unidig, 0, b, 14}
{xxx:, Unidig, 0, b, 15}
{xxx:, Unidig, 0, b, 16}
{xxx:, Unidig, 0, b, 17}
{xxx:, Unidig, 0, b, 18}
{xxx:, Unidig, 0, b, 19}
{xxx:, Unidig, 0, b, 20}
{xxx:, Unidig, 0, b, 21}
{xxx:, Unidig, 0, b, 22}
{xxx:, Unidig, 0, b, 23}
}
file ipApp/Db/fast_pid_control.db ip
{
pattern
{P, PID, C, SERVER, LOPR, HOPR, DRVL, DRVH, PREC, KP, KI, KD, DT, SCAN}
{xxx:, PID2, 0, Ip330PID_1, 0, 65535, 0, 4095, 3, .02, 100., 0., .001, ".1 second"}
{xxx:, PID3, 0, quadEMPID1, -32767, 32767, 2048, 2662, 3, .02, 100., 0., .001, ".1 second"}
{xxx:, PID4, 0, quadEMPID2, -32767, 32767, 2048, 3072, 3, .02, 100., 0., .001, ".1 second"}
}
file stdApp/Db/pid_control.db std
{
pattern
{P, PID, INP, OUT, LOPR, HOPR, DRVL, DRVH, PREC, KP, KI, KD, SCAN}
{xxx:, PID1, DMM1Ch3_calc.VAL, DAC1_1, 0, 100, 0, 5, 3, 0.2, 3., 0., ".1 second"}
}
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