# Create and install (or just install) into <top>/db
# databases, templates, substitutions like this
#DB += xxx.db
+DB += Huber_Unistate_425.db
#----------------------------------------------------
# If <anyname>.db template is not named <anyname>*.template add
# HUBER_COOLING.dbd will be made up from these files:
HUBER_COOLING_DBD += base.dbd
+HUBER_COOLING_DBD += stream.dbd
+HUBER_COOLING_DBD += asyn.dbd
+HUBER_COOLING_DBD += drvAsynSerialPort.dbd
# Include dbd files from all support applications:
#HUBER_COOLING_DBD += xxx.dbd
# Add all the support libraries needed by this IOC
#HUBER_COOLING_LIBS += xxx
+HUBER_COOLING_LIBS += stream
+HUBER_COOLING_LIBS += asyn
# HUBER_COOLING_registerRecordDeviceDriver.cpp derives from HUBER_COOLING.dbd
HUBER_COOLING_SRCS += HUBER_COOLING_registerRecordDeviceDriver.cpp
# the CONFIG_SITE file.
# Variables and paths to dependent modules:
-#MODULES = /path/to/modules
+MODULES = /home/scs/EPICS/EPICS/modules/
#MYMODULE = $(MODULES)/my-module
# If using the sequencer, point SNCSEQ at its top directory:
-#SNCSEQ = $(MODULES)/seq-ver
+SNCSEQ = $(MODULES)/synApps_5_8/support/seq-2-2-1
+ASYN = $(MODULES)/synApps_5_8/support/asyn-4-26
+STREAM = $(MODULES)/synApps_5_8/support/stream-2-6a
# EPICS_BASE should appear last so earlier modules can override stuff:
EPICS_BASE = /home/scs/EPICS/EPICS/base
< envPaths
+epicsEnvSet ("STREAM_PROTOCOL_PATH", "${TOP}/protocols")
+
cd "${TOP}"
## Register all support components
dbLoadDatabase "dbd/HUBER_COOLING.dbd"
HUBER_COOLING_registerRecordDeviceDriver pdbbase
+drvAsynSerialPortConfigure("HUBER_PORT","/dev/ttyUSB0")
+asynSetOption ("HUBER_PORT", 0, "baud", "9600")
+asynSetOption ("HUBER_PORT", 0, "bits", "8")
+asynSetOption ("HUBER_PORT", 0, "parity", "none")
+asynSetOption ("HUBER_PORT", 0, "stop", "1")
+asynSetOption ("HUBER_PORT", 0, "clocal", "N")
+asynSetOption ("HUBER_PORT", 0, "crtscts", "N")
+
+#lots! of debug output
+#var streamDebug 1
+
## Load record instances
#dbLoadRecords("db/xxx.db","user=scs")
+dbLoadRecords("db/Huber_Unistate_425.db","PORT=HUBER_PORT,sys=CBM,sub=MVD,csys=CC405")
cd "${TOP}/iocBoot/${IOC}"
iocInit