Skip to content
Snippets Groups Projects
Commit eefb7639 authored by mooney's avatar mooney
Browse files

Use doAfterIocInit().

parent af9c08a7
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
epicsEnvSet("PREFIX", "xxx:3820:")
epicsEnvSet("RNAME", "mca")
epicsEnvSet("MAX_SIGNALS", "8")
epicsEnvSet("MAX_CHANS", "2000")
epicsEnvSet("MAX_CHANS", "1000")
epicsEnvSet("PORT", "SIS3820/1")
# For MCA records FIELD=READ, for waveform records FIELD=PROC
epicsEnvSet("FIELD", "READ")
......@@ -16,13 +16,15 @@ epicsEnvSet("MODEL", "SIS3820")
# signals,
# use DMA
# fifoBufferWords)
drvSIS3820Config($(PORT), 0xA8000000, 224, 6, $(MAX_CHANS), $(MAX_SIGNALS), 1, 0x20000)
drvSIS3820Config($(PORT), 0xA8000000, 224, 6, $(MAX_CHANS), $(MAX_SIGNALS), 1, 0x2000)
# This loads the scaler record and supporting records
dbLoadRecords("$(STD)/stdApp/Db/scaler32.db", "P=$(PREFIX), S=scaler1, DTYP=Asyn Scaler, OUT=@asyn($(PORT)), FREQ=50000000")
# This database provides the support for the MCS functions
dbLoadRecords("$(MCA)/mcaApp/Db/SIS38XX.template", "P=$(PREFIX), PORT=$(PORT), SCALER=$(PREFIX)scaler1")
# This SNL programs reads the MCS
doAfterIocInit("seq(&SIS38XX_SNL, 'P=$(PREFIX), R=$(RNAME), NUM_SIGNALS=$(MAX_SIGNALS), FIELD=READ')")
# Load either MCA or waveform records below
# The number of records loaded must be the same as MAX_SIGNALS defined above
......@@ -98,6 +100,3 @@ dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX), M=$(RNAME)8, DTYP
asynSetTraceIOMask($(PORT),0,2)
#asynSetTraceFile("$(PORT)",0,"$(MODEL).out")
#asynSetTraceMask("$(PORT)",0,0xff)
# !!! Don't firget to include the following command in st.cmd, after iocInit
#seq(&SIS38XX_SNL, "P=$(PREFIX), R=$(RNAME), NUM_SIGNALS=$(MAX_SIGNALS), FIELD=$(FIELD)")
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