ISIS Logo
INSTETC
INSTETC IOC
st.cmd
Go to the documentation of this file.
1 #!../../bin/windows-x64-debug/INSTETC-IOC-01
2 
3 ## @file
4 ## Configure INSTETC
5 
6 < envPaths
7 
8 cd ${TOP}
9 
10 ## Register all support components
11 dbLoadDatabase "dbd/INSTETC-IOC-01.dbd"
12 INSTETC_IOC_01_registerRecordDeviceDriver pdbbase
13 
14 ## so we don't get lots of messages about puts to the motor moving PV, this logs value changes only rather than all puts which is the default
15 epicsEnvSet("CAPUTLOGCONFIG","0")
16 
17 ##ISIS## Run IOC initialisation
18 < $(IOCSTARTUP)/init.cmd
19 
20 ## configure IOC
21 instetcConfigure("consoleslog", "${ICPVARDIR}/logs/conserver/consoles-%Y%m%d.log", 100, 3.0)
22 instetcConfigure("daelog", "${ICPVARDIR}/logs/ioc/ISISDAE_01-%Y%m%d.log", 100, 3.0)
23 
24 ## Load record instances
25 
26 ##ISIS## Load common DB records
27 < $(IOCSTARTUP)/dbload.cmd
28 
29 ## Check for extra exclusive records
30 stringtest("IFEX1", "$(EXCLUSIVE1=)")
31 stringtest("IFEX2", "$(EXCLUSIVE2=)")
32 stringtest("IFEX3", "$(EXCLUSIVE3=)")
33 stringtest("IFEX4", "$(EXCLUSIVE4=)")
34 
35 ## Load our record instances
36 dbLoadRecords("db/INSTETC.db","P=$(MYPVPREFIX),IOC=$(IOCNAME),RECSIM=$(RECSIM=0)")
37 dbLoadRecords("db/svn-revision.db","P=$(MYPVPREFIX)")
38 dbLoadRecords("db/build-id.db","P=$(MYPVPREFIX)")
39 dbLoadRecords("db/inst_string_parameters.db","P=$(MYPVPREFIX)")
40 dbLoadRecords("db/inst_alias_string_parameters.db","P=$(MYPVPREFIX)")
41 dbLoadRecords("db/inst_real_parameters.db","P=$(MYPVPREFIX)")
42 dbLoadRecords("db/experiment_data.db","P=$(MYPVPREFIX)")
43 $(IFEX1) dbLoadRecords("db/inst_exclusive.db","P=$(MYPVPREFIX),ID=$(EXCLUSIVE1=)")
44 $(IFEX2) dbLoadRecords("db/inst_exclusive.db","P=$(MYPVPREFIX),ID=$(EXCLUSIVE2=)")
45 $(IFEX3) dbLoadRecords("db/inst_exclusive.db","P=$(MYPVPREFIX),ID=$(EXCLUSIVE3=)")
46 $(IFEX4) dbLoadRecords("db/inst_exclusive.db","P=$(MYPVPREFIX),ID=$(EXCLUSIVE4=)")
47 
48 dbLoadRecordsLoop("db/user_parameters.db","P=$(MYPVPREFIX)", "INDEX", 0, $(NUM_USER_VARS=4), 1)
49 
50 
51 ##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called
52 < $(IOCSTARTUP)/preiocinit.cmd
53 
54 cd ${TOP}/iocBoot/${IOC}
56 
57 ## Start any sequence programs
58 #seq sncxxx,"user=faa59Host"
59 
60 ##ISIS## Stuff that needs to be done after iocInit is called e.g. sequence programs
61 < $(IOCSTARTUP)/postiocinit.cmd
62 sqlexec "$(IOCSTARTUP)/facility_pvs.sql"
63 
64 # only log value changes
65 # this command does not seem to be implemented!
66 #$(IFISISINSTSTARTUP=#) caPutLogReconf 0
dbLoadRecordsLoop("db/user_parameters.db","P=$(MYPVPREFIX)","INDEX", 0,$(NUM_USER_VARS=4), 1)
dbLoadRecords("db/INSTETC.db","P=$(MYPVPREFIX),IOC=$(IOCNAME),RECSIM=$(RECSIM=0)")
Load our record instances ;.
sqlexec(IOCSTARTUP)/facility_pvs.sql"
Start any sequence programs ;.
INSTETC_IOC_01_registerRecordDeviceDriver pdbbase
Definition: st.cmd:12
epicsEnvSet("CAPUTLOGCONFIG","0")
so we don&#39;t get lots of messages about puts to the motor moving PV, this logs value changes only rath...
stringtest("IFEX1","$(EXCLUSIVE1=)")
Load record instances ;.
cd
ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called ;...
Definition: st.cmd:8
iocInit
Definition: st.cmd:55
static int instetcConfigure(const char *portName, const char *logFilePath, const int lineCount, const double pollingPeriod)
EPICS iocsh callable function to call constructor of lvDCOMInterface().
Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5