]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
HUBER_COOLING IOC working; adapted to proto/db files
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Mon, 10 Apr 2017 15:28:29 +0000 (17:28 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Mon, 10 Apr 2017 15:28:29 +0000 (17:28 +0200)
HUBER_COOLING/HUBER_COOLINGApp/Db/Makefile
HUBER_COOLING/HUBER_COOLINGApp/src/Makefile
HUBER_COOLING/configure/RELEASE
HUBER_COOLING/iocBoot/iocHUBER_COOLING/st.cmd [changed mode: 0644->0755]

index 983981d401b27c05644f2f2cc19cbf888f053bf3..3599a15c397ef89998937a3e9bb71ff1879c1f31 100644 (file)
@@ -11,6 +11,7 @@ include $(TOP)/configure/CONFIG
 # 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
index e6f7a5eab635e64fcb9854427c830198a67e3af2..27bdfbbff429aa828b92f7804be266953899816c 100644 (file)
@@ -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
index bd6b780b1ca1620a0b61ddf3a126e3a14a4819d6..80e3de21a29f320b31692b6c58b33cd7d116b8cb 100644 (file)
 # 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
old mode 100644 (file)
new mode 100755 (executable)
index 7da5971..6d7f0a0
@@ -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