#!../../bin/linux-x86/V1495CRTest < envPaths cd ${TOP} #errlogInit(20000) epicsEnvSet("PREFIX_1", "V1494CR_1") epicsEnvSet("PREFIX_2", "V1494CR_2") epicsEnvSet("RNAME", "mca") epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "8400000") epicsEnvSet("PORT_1", "V1495_1") epicsEnvSet("PORT_2", "V1495_2") # For MCA records FIELD=READ, for waveform records FIELD=PROC epicsEnvSet("MODEL", "V1495CR") dbLoadDatabase("dbd/V1495CRTest.dbd",0,0) V1495CRTest_registerRecordDeviceDriver(pdbbase) #drvV1495CRConfig( $(PORT_1), 0x08000000 ) drvV1495CRConfig( $(PORT_2), 0x0A000000 ) #dbLoadRecords( "$(MCA)/mcaApp/Db/v1495CR.db", "P=$(PREFIX), PORT=$(PORT), DTYP=asynUInt32Digital" ) #dbLoadRecords( "db/v1495CR.db", "P=$(PREFIX_1), PORT=$(PORT_1), DTYP=asynUInt32Digital" ) dbLoadRecords( "db/v1495CR.db", "P=$(PREFIX_2), PORT=$(PORT_2), DTYP=asynUInt32Digital" ) # 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") # Load either MCA or waveform records below # The number of records loaded must be the same as MAX_SIGNALS defined above # Load the MCA records #dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT) 0), PREC=3, CHANS=$(MAX_CHANS)") asynSetTraceIOMask($(PORT),0,2) #asynSetTraceFile("$(PORT)",0,"$(MODEL).out") #asynSetTraceMask("$(PORT)",0,0xff) #< save_restore_iocsh.cmd #set_pass0_restoreFile("auto_settings_$(MODEL).sav") #set_pass1_restoreFile("auto_settings_$(MODEL).sav") #save_restoreSet_status_prefix($(PREFIX)) #dbLoadRecords("$(AUTOSAVE)/asApp/Db/save_restoreStatus.db", "P=$(PREFIX)") cd ${TOP}/iocBoot/${IOC} iocInit # save settings every thirty seconds #create_monitor_set("auto_settings_$(MODEL).req",30,"P=$(PREFIX)")