Added two example database substitutions files and converted the example st.cmd

files to use these instead of repeated dbLoadRecords commands.
This commit is contained in:
Andrew Johnson
2006-11-17 19:36:17 +00:00
parent a2739882f2
commit c3e3f6be37
8 changed files with 31 additions and 39 deletions
@@ -12,10 +12,7 @@ dbLoadDatabase("dbd/_APPNAME_.dbd")
_CSAFEAPPNAME__registerRecordDeviceDriver(pdbbase)
## Load record instances
dbLoadRecords("db/dbExample1.db","user=_USER_Host")
dbLoadRecords("db/dbExample2.db","user=_USER_Host,no=1,scan=1 second")
dbLoadRecords("db/dbExample2.db","user=_USER_Host,no=2,scan=2 second")
dbLoadRecords("db/dbExample2.db","user=_USER_Host,no=3,scan=5 second")
dbLoadTemplate "db/userHost.substitutions"
dbLoadRecords("db/dbSubExample.db","user=_USER_Host")
## Set this to see messages from mySub
@@ -1,26 +0,0 @@
#!../../bin/_ARCH_/_APPNAME_
## You may have to change _APPNAME_ to something else
## everywhere it appears in this file
#< envPaths
## Register all support components
dbLoadDatabase("../../dbd/_APPNAME_.dbd",0,0)
_CSAFEAPPNAME__registerRecordDeviceDriver(pdbbase)
## Load record instances
dbLoadRecords("../../db/dbExample1.db","user=_USER_Host")
dbLoadRecords("../../db/dbExample2.db","user=_USER_Host,no=1,scan=1 second")
dbLoadRecords("../../db/dbExample2.db","user=_USER_Host,no=2,scan=2 second")
dbLoadRecords("../../db/dbExample2.db","user=_USER_Host,no=3,scan=5 second")
dbLoadRecords("../../db/dbSubExample.db","user=_USER_Host")
## Set this to see messages from mySub
#var mySubDebug 1
iocInit()
## Start any sequence programs
#seq sncExample,"user=_USER_"
@@ -10,10 +10,7 @@ dbLoadDatabase("dbd/_APPNAME_.dbd")
_CSAFEAPPNAME__registerRecordDeviceDriver(pdbbase)
## Load record instances
dbLoadRecords("db/dbExample1.db","user=_USER_")
dbLoadRecords("db/dbExample2.db","user=_USER_,no=1,scan=1 second")
dbLoadRecords("db/dbExample2.db","user=_USER_,no=2,scan=2 second")
dbLoadRecords("db/dbExample2.db","user=_USER_,no=3,scan=5 second")
dbLoadTemplate "db/user.substitutions"
dbLoadRecords("db/dbSubExample.db","user=_USER_")
## Set this to see messages from mySub
@@ -22,10 +22,7 @@ dbLoadDatabase("dbd/_APPNAME_.dbd",0,0)
_CSAFEAPPNAME__registerRecordDeviceDriver(pdbbase)
## Load record instances
dbLoadRecords("db/dbExample1.db","user=_USER_")
dbLoadRecords("db/dbExample2.db","user=_USER_,no=1,scan=1 second")
dbLoadRecords("db/dbExample2.db","user=_USER_,no=2,scan=2 second")
dbLoadRecords("db/dbExample2.db","user=_USER_,no=3,scan=5 second")
dbLoadTemplate "db/user.substitutions"
dbLoadRecords("db/dbSubExample.db","user=_USER_")
## Set this to see messages from mySub