## EIOC-LI24-BL02 RTEMS startup script for Bunch Length Coldfire App ############################################## # Dedicated ethernet + network stack driver setenv("IPADDR1","172.27.220.22",1) setenv("NETMASK1","255.255.255.0",1) setenv("PADSLOT","4",1) setenv("LOCAs","LI24",1) setenv("UNITs","883",1) ld("lanIpBasic.obj") #check that it finds this # Turning on lanIpDebug shows you all the ARP requests on the console lanIpDebug = 0 lanIpSetup(getenv("IPADDR1"),getenv("NETMASK1"),0,0) ############################################## # Set some abbreviations ld = cexpModuleLoad unld = cexpModuleUnload # load app cd("../..") ld("bin/RTEMS-uC5282/BunchLengthCF.obj") ## Set common environment variables. eg. EPICS_TS_NTP_INET and PORTs epicsEnvSet ("EPICS_CA_MAX_ARRAY_BYTES", "600000") ## Register all support components dbLoadDatabase("dbd/BunchLengthCF.dbd") BunchLengthCF_registerRecordDeviceDriver(pdbbase) ## Load record instances dbLoadRecords("db/EIOC-LI24-BL02.db") ## Set to 2 so that we see errors devLongoutBunchLengthCFFlag=2 devLonginBunchLengthCFFlag=2 devWaveformBunchLengthCFFlag=2 devMbboBunchLengthCFFlag=2 devBoBunchLengthCFFlag=2 drvBlmLan9118Flag=2 drvBunchLengthCFCfgFlag=2 drvBunchLengthCFScalFlag=2 drvBunchLengthCFIntrFlag=2 # change directory to local mountpoint so that files don't need path to dir in their name cd("/data") iocInit() # lower flags from 4 to 2 if too verbose for processing # Set the offset to the windows for each channel here. # Note: that "3" is always added to what you set to allow for the fact # that it takes 3 clock cycles before any data shows up to be read from FIFOs dbpf("BLEN:LI25:883:BL22C_OFST","0") dbpf("BLEN:LI25:883:BL22D_OFST","0") dbpf("BLEN:LI25:883:BL22E_OFST","0") dbpf("BLEN:LI25:883:BLSPR_OFST","0") # Set the offset to the windows for each channel's calibration mode here dbpf("BLEN:LI25:883:BL22C_RC_OFST","0") dbpf("BLEN:LI25:883:BL22D_RC_OFST","0") dbpf("BLEN:LI25:883:BL22E_RC_OFST","0") dbpf("BLEN:LI25:883:BLSPR_RC_OFST","0") # Set the sizes of the windows for each channel here dbpf("BLEN:LI25:883:BL22C_SIZE","512") dbpf("BLEN:LI25:883:BL22D_SIZE","512") dbpf("BLEN:LI25:883:BL22E_SIZE","512") dbpf("BLEN:LI25:883:BLSPR_SIZE","512") # Set the sizes of the windows for each channel's calibration mode here dbpf("BLEN:LI25:883:BL22C_RC_SIZE","65536") dbpf("BLEN:LI25:883:BL22D_RC_SIZE","65536") dbpf("BLEN:LI25:883:BL22E_RC_SIZE","65536") dbpf("BLEN:LI25:883:BLSPR_RC_SIZE","65536") ##blcSetDataFileStem("Sheng") # The stem to start all data files with # Format is ".dat" ## sequence programs now obsolete for lan9118 version.