From 27b6e96e84357479b593e54da6debd06b28a250d Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Mon, 10 Apr 2017 17:28:29 +0200 Subject: [PATCH] HUBER_COOLING IOC working; adapted to proto/db files --- HUBER_COOLING/HUBER_COOLINGApp/Db/Makefile | 1 + HUBER_COOLING/HUBER_COOLINGApp/src/Makefile | 5 +++++ HUBER_COOLING/configure/RELEASE | 6 ++++-- HUBER_COOLING/iocBoot/iocHUBER_COOLING/st.cmd | 14 ++++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) mode change 100644 => 100755 HUBER_COOLING/iocBoot/iocHUBER_COOLING/st.cmd diff --git a/HUBER_COOLING/HUBER_COOLINGApp/Db/Makefile b/HUBER_COOLING/HUBER_COOLINGApp/Db/Makefile index 983981d..3599a15 100644 --- a/HUBER_COOLING/HUBER_COOLINGApp/Db/Makefile +++ b/HUBER_COOLING/HUBER_COOLINGApp/Db/Makefile @@ -11,6 +11,7 @@ include $(TOP)/configure/CONFIG # Create and install (or just install) into /db # databases, templates, substitutions like this #DB += xxx.db +DB += Huber_Unistate_425.db #---------------------------------------------------- # If .db template is not named *.template add diff --git a/HUBER_COOLING/HUBER_COOLINGApp/src/Makefile b/HUBER_COOLING/HUBER_COOLINGApp/src/Makefile index e6f7a5e..27bdfbb 100644 --- a/HUBER_COOLING/HUBER_COOLINGApp/src/Makefile +++ b/HUBER_COOLING/HUBER_COOLINGApp/src/Makefile @@ -14,12 +14,17 @@ DBD += HUBER_COOLING.dbd # 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 diff --git a/HUBER_COOLING/configure/RELEASE b/HUBER_COOLING/configure/RELEASE index bd6b780..80e3de2 100644 --- a/HUBER_COOLING/configure/RELEASE +++ b/HUBER_COOLING/configure/RELEASE @@ -23,11 +23,13 @@ # 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 diff --git a/HUBER_COOLING/iocBoot/iocHUBER_COOLING/st.cmd b/HUBER_COOLING/iocBoot/iocHUBER_COOLING/st.cmd old mode 100644 new mode 100755 index 7da5971..6d7f0a0 --- a/HUBER_COOLING/iocBoot/iocHUBER_COOLING/st.cmd +++ b/HUBER_COOLING/iocBoot/iocHUBER_COOLING/st.cmd @@ -5,14 +5,28 @@ < 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 -- 2.43.0