changes to get example to build
This commit is contained in:
@@ -1,29 +1,3 @@
|
||||
TOP=../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
#----------------------------------------
|
||||
# ADD MACRO DEFINITIONS AFTER THIS LINE
|
||||
|
||||
#----------------------------------------------------
|
||||
# Optimization of db files using dbst (DEFAULT: NO)
|
||||
#DB_OPT = YES
|
||||
|
||||
#----------------------------------------------------
|
||||
# Optimization needs the name of the appropriate
|
||||
# dbd file (compare with ../src/Makefile.Vx)
|
||||
#DBDNAME = exampleApp.dbd
|
||||
|
||||
#----------------------------------------------------
|
||||
# Add databases, templates, substitutions like this
|
||||
DB += dbExample1.db dbExample2.db
|
||||
|
||||
#----------------------------------------------------
|
||||
# Declare template files which do not show up in DB
|
||||
USES_TEMPLATE += dbExample2.template
|
||||
|
||||
#----------------------------------------------------
|
||||
# The following line is for local dbd expansion
|
||||
#DBDEXPAND = _APPNAME_Include.dbd
|
||||
|
||||
include $(TOP)/configure/RULES.Db
|
||||
#----------------------------------------
|
||||
# ADD RULES AFTER THIS LINE
|
||||
include $(TOP)/configure/CONFIG_APP
|
||||
include $(TOP)/configure/RULES_ARCHS
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
TOP=../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
#----------------------------------------
|
||||
# ADD MACRO DEFINITIONS AFTER THIS LINE
|
||||
|
||||
#----------------------------------------------------
|
||||
# Optimization of db files using dbst (DEFAULT: NO)
|
||||
#DB_OPT = YES
|
||||
|
||||
#----------------------------------------------------
|
||||
# Optimization needs the name of the appropriate
|
||||
# dbd file (compare with ../src/Makefile.Vx)
|
||||
#DBDNAME = exampleApp.dbd
|
||||
|
||||
#----------------------------------------------------
|
||||
# Add databases, templates, substitutions like this
|
||||
DB += dbExample1.db dbExample2.db
|
||||
|
||||
#----------------------------------------------------
|
||||
# Declare template files which do not show up in DB
|
||||
#USES_TEMPLATE += dbExample2.template
|
||||
|
||||
#----------------------------------------------------
|
||||
# The following line is for local dbd expansion
|
||||
#DBDEXPAND = exampleInclude.dbd
|
||||
|
||||
include $(TOP)/configure/RULES.Db
|
||||
#----------------------------------------
|
||||
# ADD RULES AFTER THIS LINE
|
||||
+8
-8
@@ -1,10 +1,10 @@
|
||||
record(calc, "$(USER):calcExample$(NO)")
|
||||
record(calc, "$(user):calcExample$(no)")
|
||||
{
|
||||
field(DESC, "Counter No. $(NO)")
|
||||
field(SCAN,"$(SCAN)")
|
||||
field(FLNK, "$(USER):aiExample$(NO)")
|
||||
field(DESC, "Counter No. $(no)")
|
||||
field(SCAN,"$(scan)")
|
||||
field(FLNK, "$(user):aiExample$(no)")
|
||||
field(CALC, "(A<B)?(A+C):D")
|
||||
field(INPA, "$(USER):calcExample$(NO).VAL NPP NMS")
|
||||
field(INPA, "$(user):calcExample$(no).VAL NPP NMS")
|
||||
field(INPB, "9")
|
||||
field(INPC, "1")
|
||||
field(INPD, "0")
|
||||
@@ -19,10 +19,10 @@ record(calc, "$(USER):calcExample$(NO)")
|
||||
field(LSV, "MINOR")
|
||||
field(LLSV, "MAJOR")
|
||||
}
|
||||
record(ai, "$(USER):aiExample$(NO)")
|
||||
record(ai, "$(user):aiExample$(no)")
|
||||
{
|
||||
field(DESC, "Analog input No. $(NO)")
|
||||
field(INP, "$(USER):calcExample$(NO).VAL NPP NMS")
|
||||
field(DESC, "Analog input No. $(no)")
|
||||
field(INP, "$(user):calcExample$(no).VAL NPP NMS")
|
||||
field(EGUF, "10")
|
||||
field(EGU, "Counts")
|
||||
field(HOPR, "10")
|
||||
@@ -1,5 +0,0 @@
|
||||
file dbExample2.template {
|
||||
{ USER="_USER_", NO="1", SCAN="1 second" }
|
||||
{ USER="_USER_", NO="2", SCAN="2 second" }
|
||||
{ USER="_USER_", NO="3", SCAN="5 second" }
|
||||
}
|
||||
Reference in New Issue
Block a user