#!../../bin/linux-x86/moControl ## You may have to change moControl to something else ## everywhere it appears in this file < envPaths cd ${TOP} ## Register all support components dbLoadDatabase "dbd/moControl.dbd" moControl_registerRecordDeviceDriver pdbbase epicsEnvSet("PREFIX","") # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=$(PREFIX)HALLMO") ## Load record instances dbLoadRecords("db/moBoard.db","P=STPSC1:mo, PORT=MO") dbLoadRecords("db/moBoardAliases.db","P=STPSC1:mo, DET=MO:TOF:TDC" ) dbLoadRecords("db/moBoardAliases.db","P=STPSC1:mo, DET=MO:FDC:TDC" ) dbLoadRecords("db/moBoardAliases.db","P=STPSC1:mo, DET=MO:PS:TDCADC" ) dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=0") dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=1") dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=2") dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=3") dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=4") dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=5") dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=6") dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=7") dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=8") dbLoadRecords("db/moChannel.db","P=STPSC1:mo, PORT=MO, ADDR=9") dbLoadRecords("db/moChannelAliases.db","P=STPSC1:mo, ADDR=5, DET=MO:TOF:TDC" ) dbLoadRecords("db/moChannelAliases.db","P=STPSC1:mo, ADDR=6, DET=MO:FDC:TDC" ) dbLoadRecords("db/moChannelAliases.db","P=STPSC1:mo, ADDR=7, DET=MO:PS:TDCADC" ) # Start the MO board driver. The first argument is the # asyn port name, the second argument is the base address #asynMOConfig( "MO", 0x00E00000 ) asynMOConfig( "MO", 0x00980000 ) cd ${TOP}/iocBoot/${IOC} # autosave setup < hallMO_save_restore.cmd iocInit create_monitor_set("hallMO.req", 30) # Handle autosave 'commands' contained in loaded databases. makeAutosaveFiles() #create_monitor_set("info_positions.req", 5, "P=xxx:") #create_monitor_set("info_settings.req", 30, "P=xxx:")