From 10030be52c46b6c846b6dbde5686d465c4ccbaa6 Mon Sep 17 00:00:00 2001 From: Attah Date: Fri, 28 Jul 2017 16:13:02 +0100 Subject: [PATCH 1/7] stashing --- .../LAKESHORE460-IOC-01App/Db/Makefile | 22 ++ .../LAKESHORE460-IOC-01App/Db/lakeshore460.db | 373 ++++++++++++++++++ LAKESHORE460/LAKESHORE460-IOC-01App/Makefile | 9 + .../LAKESHORE460-IOC-01App/protocol/Makefile | 15 + .../src/LAKESHORE460-IOC-01Main.cpp | 23 ++ .../LAKESHORE460-IOC-01App/src/Makefile | 9 + .../LAKESHORE460-IOC-01App/src/build.mak | 66 ++++ .../LAKESHORE460-IOC-02App/Db/Makefile | 22 ++ LAKESHORE460/LAKESHORE460-IOC-02App/Makefile | 9 + .../LAKESHORE460-IOC-02App/protocol/Makefile | 15 + .../src/LAKESHORE460-IOC-02Main.cpp | 23 ++ .../LAKESHORE460-IOC-02App/src/Makefile | 9 + LAKESHORE460/Makefile | 31 ++ LAKESHORE460/configure/CONFIG | 29 ++ LAKESHORE460/configure/CONFIG_SITE | 43 ++ LAKESHORE460/configure/Makefile | 8 + LAKESHORE460/configure/RELEASE | 55 +++ LAKESHORE460/configure/RULES | 6 + LAKESHORE460/configure/RULES.ioc | 2 + LAKESHORE460/configure/RULES_DIRS | 2 + LAKESHORE460/configure/RULES_TOP | 3 + LAKESHORE460/iocBoot/Makefile | 6 + .../iocBoot/iocLAKESHORE460-IOC-01/Makefile | 6 + .../iocLAKESHORE460-IOC-01/st-common.cmd | 32 ++ .../iocBoot/iocLAKESHORE460-IOC-01/st.cmd | 13 + .../iocBoot/iocLAKESHORE460-IOC-02/Makefile | 6 + .../iocBoot/iocLAKESHORE460-IOC-02/st.cmd | 38 ++ 27 files changed, 875 insertions(+) create mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/Db/Makefile create mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/Db/lakeshore460.db create mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/Makefile create mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/protocol/Makefile create mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/src/LAKESHORE460-IOC-01Main.cpp create mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/src/Makefile create mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/src/build.mak create mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/Db/Makefile create mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/Makefile create mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/protocol/Makefile create mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/src/LAKESHORE460-IOC-02Main.cpp create mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/src/Makefile create mode 100644 LAKESHORE460/Makefile create mode 100644 LAKESHORE460/configure/CONFIG create mode 100644 LAKESHORE460/configure/CONFIG_SITE create mode 100644 LAKESHORE460/configure/Makefile create mode 100644 LAKESHORE460/configure/RELEASE create mode 100644 LAKESHORE460/configure/RULES create mode 100644 LAKESHORE460/configure/RULES.ioc create mode 100644 LAKESHORE460/configure/RULES_DIRS create mode 100644 LAKESHORE460/configure/RULES_TOP create mode 100644 LAKESHORE460/iocBoot/Makefile create mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/Makefile create mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd create mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st.cmd create mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/Makefile create mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/st.cmd diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/Db/Makefile b/LAKESHORE460/LAKESHORE460-IOC-01App/Db/Makefile new file mode 100644 index 000000000..7def1434d --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-01App/Db/Makefile @@ -0,0 +1,22 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#---------------------------------------------------- +# Optimization of db files using dbst (DEFAULT: NO) +#DB_OPT = YES + +#---------------------------------------------------- +# Create and install (or just install) into /db +# databases, templates, substitutions like this +DB += lakeshore460.db + +#---------------------------------------------------- +# If .db template is not named *.template add +# _template = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/Db/lakeshore460.db b/LAKESHORE460/LAKESHORE460-IOC-01App/Db/lakeshore460.db new file mode 100644 index 000000000..ef41d17ef --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-01App/Db/lakeshore460.db @@ -0,0 +1,373 @@ +record(stringin, "$(P)$(R)IDN") +{ + field(DESC, "SCPI identification string") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getIDN $(PORT)") + field(PINI, "YES") + # field(SIML, "$(P)SIM") + # field(SIOL, "$(P)SIM:IDN") + field(SDIS, "$(P)DISABLE") +} + +record(bi, "$(P)UNIT") +{ + field(DESC, "UNIT") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getUnit $(PORT)") + field(PREC, "3") + field(ZNAM, "G") + field(ONAM, "T") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:UNIT") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bo, "$(P)UNIT:SP") +{ + field(DESC, "Set Unit") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setUnit $(PORT)") + field(ZNAM, "G") + field(ZNAM, "T") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:CURRENT:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(ai, "$(P)SOURCE") +{ + field(DESC, "Vector Magnitude Source") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getSource $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(ao, "$(P)SOURCE:SP") +{ + field(DESC, "Set Vector Magnitude Source") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setSource $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(stringin, "$(P)CHANNEL") +{ + field(DESC, "Channel") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getChannel $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(stringout, "$(P)CHANNEL:SP") +{ + field(DESC, "Set Channel") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setSource $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(stringin, "$(P)RST") +{ + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto Reset $(PORT)") + field(PINI, "$(RESET=NO)") + #field(SIML, "$(P)SIM") + # field(SIOL, "$(P)SIM:RST") + field(SDIS, "$(P)DISABLE") +} + +record(ai, "$(P)FIELD") +{ + field(DESC, "Returns the X axis reading, the Y axis, the Z axis, then the Vector Magnitude.") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getAllFields $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(ai, "$(P)MULTIPLIER") +{ + field(DESC, "Magnetic Field Reading Multiplier") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getFieldMultiplier $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bi, "$(P)OUTPUTSTATUS") +{ + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)OUTPUTSTATUS:SP") +{ + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setOnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS:SP") + field(SDIS, "$(P)DISABLE") +} + +record(bi, "$(P)OUTPUTSTATUS") +{ + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS") + field(SDIS, "$(P)DISABLE") + +record(bi, "$(P)OUTPUTMODE") +{ + field(DESC, "Magnetic Field Reading Measurement") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getACDC $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)OUTPUTMODE:SP") +{ + field(DESC, "Set Magnetic Field Reading Measurement") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@kepco.proto setACDC $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + +record(ai, "$(P)PRMS") +{ + field(DESC, "Peak/RMS Field Reading") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getPRMSReading $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(ao, "$(P)PRMS:SP") +{ + field(DESC, "Set Peak/RMS Field Reading") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setPRMSReading $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bi, "$(P)FILTER") +{ + field(DESC, "Display Filter") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getACDC $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)FILTER:SP") +{ + field(DESC, "Set Display Filter ") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setDisplayFilter $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + +record(ai, "$(P)MAXREADINGMULTI") +{ + field(DESC, "Max Reading Multiplier") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getMaxReadingMultiplier $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bi, "$(P)AUTO") +{ + field(DESC, "Auto Range") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getAutoRange $(PORT)") + field(ZNAM, "Auto Range Off") + field(ONAM, "Auto Range On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)AUTO:SP") +{ + field(DESC, "Set Auto Range") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setAutoRange $(PORT)") + field(ZNAM, "Auto Range Off") + field(ONAM, "Auto Range On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + +record(bi, "$(P)RELATIVEMODE") +{ + field(DESC, "Relative Mode") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)MAXHOLD:SP") +{ + field(DESC, "Set Max Hold") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + +record(bi, "$(P)MAXHOLD") +{ + field(DESC, "Max Hold") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)MAXHOLD:SP") +{ + field(DESC, "Set Max Hold") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + + +record(ao, "$(P)MAXC:SP") +{ + field(DESC, "Max Clear") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setMaxClear $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bi, "$(P)RELMODE") +{ + field(DESC, "Relative Mode") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getRelativeMode $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)RELMODE:SP") +{ + field(DESC, "Set Relatve Mode") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setRelativeMode $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} \ No newline at end of file diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/Makefile b/LAKESHORE460/LAKESHORE460-IOC-01App/Makefile new file mode 100644 index 000000000..373b86bfc --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-01App/Makefile @@ -0,0 +1,9 @@ +TOP = .. +include $(TOP)/configure/CONFIG +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Src*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *protocol*)) +include $(TOP)/configure/RULES_DIRS + diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/protocol/Makefile b/LAKESHORE460/LAKESHORE460-IOC-01App/protocol/Makefile new file mode 100644 index 000000000..9dcadda22 --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-01App/protocol/Makefile @@ -0,0 +1,15 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#DATA += LAKESHORE460-IOC-01.proto + +#---------------------------------------------------- +# If .db template is not named *.template add +# _TEMPLATE = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/src/LAKESHORE460-IOC-01Main.cpp b/LAKESHORE460/LAKESHORE460-IOC-01App/src/LAKESHORE460-IOC-01Main.cpp new file mode 100644 index 000000000..5f1ddcb80 --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-01App/src/LAKESHORE460-IOC-01Main.cpp @@ -0,0 +1,23 @@ +/* LAKESHORE460-IOC-01Main.cpp */ +/* Author: Marty Kraimer Date: 17MAR2000 */ + +#include +#include +#include +#include +#include + +#include "epicsExit.h" +#include "epicsThread.h" +#include "iocsh.h" + +int main(int argc,char *argv[]) +{ + if(argc>=2) { + iocsh(argv[1]); + epicsThreadSleep(.2); + } + iocsh(NULL); + epicsExit(0); + return(0); +} diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/src/Makefile b/LAKESHORE460/LAKESHORE460-IOC-01App/src/Makefile new file mode 100644 index 000000000..ce218d48f --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-01App/src/Makefile @@ -0,0 +1,9 @@ +TOP=../.. +# This file should do very little - it's purpose is to set the APPNAME and then load build.mak + +# this definition is used in build.mak +APPNAME=LAKESHORE460-IOC-01 + +# If we are ###-IOC-01 leave this as is, if we are ###-IOC-02 or higher change to ###-IOC-01 and delete build.mak from this directory +# there should only be a single build.mak for all IOCs of a given family and it is located in the ###-IOC-01 directory +include $(TOP)/LAKESHORE460-IOC-01App/src/build.mak diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/src/build.mak b/LAKESHORE460/LAKESHORE460-IOC-01App/src/build.mak new file mode 100644 index 000000000..68b615894 --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-01App/src/build.mak @@ -0,0 +1,66 @@ +TOP=../.. + +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE +#============================= + +### NOTE: there should only be one build.mak for a given IOC family and this should be located in the ###-IOC-01 directory + +#============================= +# Build the IOC application LAKESHORE460-IOC-01 +# We actually use $(APPNAME) below so this file can be included by multiple IOCs + +PROD_IOC = $(APPNAME) +# LAKESHORE460-IOC-01.dbd will be created and installed +DBD += $(APPNAME).dbd + +# LAKESHORE460-IOC-01.dbd will be made up from these files: +$(APPNAME)_DBD += base.dbd +## ISIS standard dbd ## +$(APPNAME)_DBD += devSequencer.dbd +$(APPNAME)_DBD += icpconfig.dbd +$(APPNAME)_DBD += pvdump.dbd +$(APPNAME)_DBD += asSupport.dbd +$(APPNAME)_DBD += devIocStats.dbd +$(APPNAME)_DBD += caPutLog.dbd +$(APPNAME)_DBD += utilities.dbd +## add other dbd here ## +$(APPNAME)_DBD += stream.dbd +$(APPNAME)_DBD += asyn.dbd +$(APPNAME)_DBD += drvAsynSerialPort.dbd +$(APPNAME)_DBD += drvAsynIPPort.dbd + +# Add all the support libraries needed by this IOC +## ISIS standard libraries ## +$(APPNAME)_LIBS += seqDev seq pv +$(APPNAME)_LIBS += devIocStats +$(APPNAME)_LIBS += pvdump $(MYSQLLIB) easySQLite sqlite +$(APPNAME)_LIBS += caPutLog +$(APPNAME)_LIBS += icpconfig pugixml +$(APPNAME)_LIBS += autosave +$(APPNAME)_LIBS += utilities pcre libjson zlib +## Add other libraries here ## +$(APPNAME)_LIBS += stream +$(APPNAME)_LIBS += pcre +$(APPNAME)_LIBS += asyn + +# LAKESHORE460-IOC-01_registerRecordDeviceDriver.cpp derives from LAKESHORE460-IOC-01.dbd +$(APPNAME)_SRCS += $(APPNAME)_registerRecordDeviceDriver.cpp + +# Build the main IOC entry point on workstation OSs. +$(APPNAME)_SRCS_DEFAULT += $(APPNAME)Main.cpp +$(APPNAME)_SRCS_vxWorks += -nil- + +# Add support from base/src/vxWorks if needed +#$(APPNAME)_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary + +# Finally link to the EPICS Base libraries +$(APPNAME)_LIBS += $(EPICS_BASE_IOC_LIBS) + +#=========================== + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/Db/Makefile b/LAKESHORE460/LAKESHORE460-IOC-02App/Db/Makefile new file mode 100644 index 000000000..983981d40 --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-02App/Db/Makefile @@ -0,0 +1,22 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#---------------------------------------------------- +# Optimization of db files using dbst (DEFAULT: NO) +#DB_OPT = YES + +#---------------------------------------------------- +# Create and install (or just install) into /db +# databases, templates, substitutions like this +#DB += xxx.db + +#---------------------------------------------------- +# If .db template is not named *.template add +# _template = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/Makefile b/LAKESHORE460/LAKESHORE460-IOC-02App/Makefile new file mode 100644 index 000000000..373b86bfc --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-02App/Makefile @@ -0,0 +1,9 @@ +TOP = .. +include $(TOP)/configure/CONFIG +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Src*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *protocol*)) +include $(TOP)/configure/RULES_DIRS + diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/protocol/Makefile b/LAKESHORE460/LAKESHORE460-IOC-02App/protocol/Makefile new file mode 100644 index 000000000..66c2bfe64 --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-02App/protocol/Makefile @@ -0,0 +1,15 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#DATA += LAKESHORE460-IOC-02.proto + +#---------------------------------------------------- +# If .db template is not named *.template add +# _TEMPLATE = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/src/LAKESHORE460-IOC-02Main.cpp b/LAKESHORE460/LAKESHORE460-IOC-02App/src/LAKESHORE460-IOC-02Main.cpp new file mode 100644 index 000000000..340342425 --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-02App/src/LAKESHORE460-IOC-02Main.cpp @@ -0,0 +1,23 @@ +/* LAKESHORE460-IOC-02Main.cpp */ +/* Author: Marty Kraimer Date: 17MAR2000 */ + +#include +#include +#include +#include +#include + +#include "epicsExit.h" +#include "epicsThread.h" +#include "iocsh.h" + +int main(int argc,char *argv[]) +{ + if(argc>=2) { + iocsh(argv[1]); + epicsThreadSleep(.2); + } + iocsh(NULL); + epicsExit(0); + return(0); +} diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/src/Makefile b/LAKESHORE460/LAKESHORE460-IOC-02App/src/Makefile new file mode 100644 index 000000000..1200d5d3b --- /dev/null +++ b/LAKESHORE460/LAKESHORE460-IOC-02App/src/Makefile @@ -0,0 +1,9 @@ +TOP=../.. +# This file should do very little - it's purpose is to set the APPNAME and then load build.mak + +# this definition is used in build.mak +APPNAME=LAKESHORE460-IOC-02 + +# If we are ###-IOC-01 leave this as is, if we are ###-IOC-02 or higher change to ###-IOC-01 and delete build.mak from this directory +# there should only be a single build.mak for all IOCs of a given family and it is located in the ###-IOC-01 directory +include $(TOP)/LAKESHORE460-IOC-01App/src/build.mak diff --git a/LAKESHORE460/Makefile b/LAKESHORE460/Makefile new file mode 100644 index 000000000..19c9068d1 --- /dev/null +++ b/LAKESHORE460/Makefile @@ -0,0 +1,31 @@ +# Makefile at top of application tree +TOP = . +include $(TOP)/configure/CONFIG + +# Directories to build, any order +DIRS += configure +DIRS += $(wildcard *Sup) +DIRS += $(wildcard *App) +DIRS += $(wildcard *Top) +DIRS += $(wildcard iocBoot) + +# The build order is controlled by these dependency rules: + +# All dirs except configure depend on configure +$(foreach dir, $(filter-out configure, $(DIRS)), \ + $(eval $(dir)_DEPEND_DIRS += configure)) + +# Any *App dirs depend on all *Sup dirs +$(foreach dir, $(filter %App, $(DIRS)), \ + $(eval $(dir)_DEPEND_DIRS += $(filter %Sup, $(DIRS)))) + +# Any *Top dirs depend on all *Sup and *App dirs +$(foreach dir, $(filter %Top, $(DIRS)), \ + $(eval $(dir)_DEPEND_DIRS += $(filter %Sup %App, $(DIRS)))) + +# iocBoot depends on all *App dirs +iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS)) + +# Add any additional dependency rules here: + +include $(TOP)/configure/RULES_TOP diff --git a/LAKESHORE460/configure/CONFIG b/LAKESHORE460/configure/CONFIG new file mode 100644 index 000000000..c1a470322 --- /dev/null +++ b/LAKESHORE460/configure/CONFIG @@ -0,0 +1,29 @@ +# CONFIG - Load build configuration data +# +# Do not make changes to this file! + +# Allow user to override where the build rules come from +RULES = $(EPICS_BASE) + +# RELEASE files point to other application tops +include $(TOP)/configure/RELEASE +-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).Common +ifdef T_A +-include $(TOP)/configure/RELEASE.Common.$(T_A) +-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(T_A) +endif + +CONFIG = $(RULES)/configure +include $(CONFIG)/CONFIG + +# Override the Base definition: +INSTALL_LOCATION = $(TOP) + +# CONFIG_SITE files contain other build configuration settings +include $(TOP)/configure/CONFIG_SITE +-include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).Common +ifdef T_A + -include $(TOP)/configure/CONFIG_SITE.Common.$(T_A) + -include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A) +endif + diff --git a/LAKESHORE460/configure/CONFIG_SITE b/LAKESHORE460/configure/CONFIG_SITE new file mode 100644 index 000000000..212485ebe --- /dev/null +++ b/LAKESHORE460/configure/CONFIG_SITE @@ -0,0 +1,43 @@ +# CONFIG_SITE + +# Make any application-specific changes to the EPICS build +# configuration variables in this file. +# +# Host/target specific settings can be specified in files named +# CONFIG_SITE.$(EPICS_HOST_ARCH).Common +# CONFIG_SITE.Common.$(T_A) +# CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A) + +# CHECK_RELEASE controls the consistency checking of the support +# applications pointed to by the RELEASE* files. +# Normally CHECK_RELEASE should be set to YES. +# Set CHECK_RELEASE to NO to disable checking completely. +# Set CHECK_RELEASE to WARN to perform consistency checking but +# continue building even if conflicts are found. +CHECK_RELEASE = YES + +# Set this when you only want to compile this application +# for a subset of the cross-compiled target architectures +# that Base is built for. +#CROSS_COMPILER_TARGET_ARCHS = vxWorks-ppc32 + +# To install files into a location other than $(TOP) define +# INSTALL_LOCATION here. +#INSTALL_LOCATION= + +# Set this when the IOC and build host use different paths +# to the install location. This may be needed to boot from +# a Microsoft FTP server say, or on some NFS configurations. +#IOCS_APPL_TOP = + +# For application debugging purposes, override the HOST_OPT and/ +# or CROSS_OPT settings from base/configure/CONFIG_SITE +#HOST_OPT = NO +#CROSS_OPT = NO + +# These allow developers to override the CONFIG_SITE variable +# settings without having to modify the configure/CONFIG_SITE +# file itself. +-include $(TOP)/../CONFIG_SITE.local +-include $(TOP)/configure/CONFIG_SITE.local + diff --git a/LAKESHORE460/configure/Makefile b/LAKESHORE460/configure/Makefile new file mode 100644 index 000000000..925430940 --- /dev/null +++ b/LAKESHORE460/configure/Makefile @@ -0,0 +1,8 @@ +TOP=.. + +include $(TOP)/configure/CONFIG + +TARGETS = $(CONFIG_TARGETS) +CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS))) + +include $(TOP)/configure/RULES diff --git a/LAKESHORE460/configure/RELEASE b/LAKESHORE460/configure/RELEASE new file mode 100644 index 000000000..74e572c51 --- /dev/null +++ b/LAKESHORE460/configure/RELEASE @@ -0,0 +1,55 @@ +# RELEASE - Location of external support modules +# +# IF YOU MAKE ANY CHANGES to this file you must subsequently +# do a "gnumake rebuild" in this application's top level +# directory. +# +# The build process does not check dependencies against files +# that are outside this application, thus you should do a +# "gnumake rebuild" in the top level directory after EPICS_BASE +# or any other external module pointed to below is rebuilt. +# +# Host- or target-specific settings can be given in files named +# RELEASE.$(EPICS_HOST_ARCH).Common +# RELEASE.Common.$(T_A) +# RELEASE.$(EPICS_HOST_ARCH).$(T_A) +# +# This file is parsed by both GNUmake and an EPICS Perl script, +# so it can ONLY contain definititions of paths to other support +# modules, variable definitions that are used in module paths, +# and include statements that pull in other RELEASE files. +# Variables may be used before their values have been set. +# Build variables that are NOT used in paths should be set in +# the CONFIG_SITE file. + +# Variables and paths to dependent modules: +#MODULES = /path/to/modules +#MYMODULE = $(MODULES)/my-module + +# If using the sequencer, point SNCSEQ at its top directory: +#SNCSEQ = $(MODULES)/seq-ver + +# EPICS_BASE should appear last so earlier modules can override stuff: +EPICS_BASE = C:/Instrument/Apps/EPICS/base/master + +# Set RULES here if you want to use build rules from somewhere +# other than EPICS_BASE: +#RULES = $(MODULES)/build-rules + +# These allow developers to override the RELEASE variable settings +# without having to modify the configure/RELEASE file itself. +-include $(TOP)/../RELEASE.local +-include $(TOP)/configure/RELEASE.local + +# top level master release and local private options +include $(TOP)/../../../configure/MASTER_RELEASE +-include $(TOP)/../../../configure/MASTER_RELEASE.$(EPICS_HOST_ARCH) +-include $(TOP)/../../../configure/MASTER_RELEASE.private +-include $(TOP)/../../../configure/MASTER_RELEASE.private.$(EPICS_HOST_ARCH) + +# optional extra local definitions here +-include $(TOP)/configure/RELEASE.private + +include $(TOP)/../../../ISIS_CONFIG +-include $(TOP)/../../../ISIS_CONFIG.$(EPICS_HOST_ARCH) + diff --git a/LAKESHORE460/configure/RULES b/LAKESHORE460/configure/RULES new file mode 100644 index 000000000..6d56e14e8 --- /dev/null +++ b/LAKESHORE460/configure/RULES @@ -0,0 +1,6 @@ +# RULES + +include $(CONFIG)/RULES + +# Library should be rebuilt because LIBOBJS may have changed. +$(LIBNAME): ../Makefile diff --git a/LAKESHORE460/configure/RULES.ioc b/LAKESHORE460/configure/RULES.ioc new file mode 100644 index 000000000..901987c6c --- /dev/null +++ b/LAKESHORE460/configure/RULES.ioc @@ -0,0 +1,2 @@ +#RULES.ioc +include $(CONFIG)/RULES.ioc diff --git a/LAKESHORE460/configure/RULES_DIRS b/LAKESHORE460/configure/RULES_DIRS new file mode 100644 index 000000000..3ba269dcc --- /dev/null +++ b/LAKESHORE460/configure/RULES_DIRS @@ -0,0 +1,2 @@ +#RULES_DIRS +include $(CONFIG)/RULES_DIRS diff --git a/LAKESHORE460/configure/RULES_TOP b/LAKESHORE460/configure/RULES_TOP new file mode 100644 index 000000000..d09d668d5 --- /dev/null +++ b/LAKESHORE460/configure/RULES_TOP @@ -0,0 +1,3 @@ +#RULES_TOP +include $(CONFIG)/RULES_TOP + diff --git a/LAKESHORE460/iocBoot/Makefile b/LAKESHORE460/iocBoot/Makefile new file mode 100644 index 000000000..91e47d0b5 --- /dev/null +++ b/LAKESHORE460/iocBoot/Makefile @@ -0,0 +1,6 @@ +TOP = .. +include $(TOP)/configure/CONFIG +DIRS += $(wildcard *ioc*) +DIRS += $(wildcard as*) +include $(CONFIG)/RULES_DIRS + diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/Makefile b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/Makefile new file mode 100644 index 000000000..09b391227 --- /dev/null +++ b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/Makefile @@ -0,0 +1,6 @@ +TOP = ../.. +include $(TOP)/configure/CONFIG +#ARCH = windows-x64 +ARCH = $(EPICS_HOST_ARCH) +TARGETS = envPaths dllPath.bat relPaths.sh runIOC.bat runIOC.sh +include $(TOP)/configure/RULES.ioc diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd new file mode 100644 index 000000000..0524e9989 --- /dev/null +++ b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd @@ -0,0 +1,32 @@ +epicsEnvSet "STREAM_PROTOCOL_PATH" "$(LKSH460)/Lakeshore_460Sup" + +##ISIS## Run IOC initialisation +< $(IOCSTARTUP)/init.cmd + +# For dev sim devices +$(IFDEVSIM) drvAsynIPPortConfigure("L0", "localhost:$(EMULATOR_PORT=)") + +## For real device use: +$(IFNOTDEVSIM) $(IFNOTRECSIM) drvAsynSerialPortConfigure("L0", "$(PORT=NO_PORT_MACRO)", 0, 0, 0, 0) +$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "baud", "$(BAUD=9600)") +$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "bits", "$(BITS=7)") +$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "parity", "$(PARITY=even)") +$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "stop", "$(STOP=1)") + +##ISIS## Load common DB records +< $(IOCSTARTUP)/dbload.cmd + +## Load our record instances +dbLoadRecords("db/lakeshore460.db","P=$(MYPVPREFIX)$(IOCNAME):, PORT=L0, RECSIM=$(RECSIM=0), DISABLE=$(DISABLE=0)") + +##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called +< $(IOCSTARTUP)/preiocinit.cmd + +cd "${TOP}/iocBoot/${IOC}" +iocInit + +## Start any sequence programs +#seq sncxxx,"user=hgv27692Host" + +##ISIS## Stuff that needs to be done after iocInit is called e.g. sequence programs +< $(IOCSTARTUP)/postiocinit.cmd diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st.cmd b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st.cmd new file mode 100644 index 000000000..49f356976 --- /dev/null +++ b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st.cmd @@ -0,0 +1,13 @@ +#!../../bin/windows-x64/LAKESHORE460-IOC-01 + +## You may have to change LAKESHORE460 to something else +## everywhere it appears in this file + +< envPaths + +## Register all support components +dbLoadDatabase "${TOP}/dbd/LAKESHORE460-IOC-01.dbd" +AMINT2L_IOC_01_registerRecordDeviceDriver pdbbase + +## calling common command file in ioc 01 boot dir +< ${TOP}/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/Makefile b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/Makefile new file mode 100644 index 000000000..09b391227 --- /dev/null +++ b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/Makefile @@ -0,0 +1,6 @@ +TOP = ../.. +include $(TOP)/configure/CONFIG +#ARCH = windows-x64 +ARCH = $(EPICS_HOST_ARCH) +TARGETS = envPaths dllPath.bat relPaths.sh runIOC.bat runIOC.sh +include $(TOP)/configure/RULES.ioc diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/st.cmd b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/st.cmd new file mode 100644 index 000000000..7e784aee5 --- /dev/null +++ b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/st.cmd @@ -0,0 +1,38 @@ +#!../../bin/windows-x64/LAKESHORE460-IOC-02 + +## You may have to change LAKESHORE460-IOC-02 to something else +## everywhere it appears in this file + +# Increase this if you get <> or discarded messages warnings in your errlog output +errlogInit2(65536, 256) + +< envPaths + +cd "${TOP}" + +## Register all support components +dbLoadDatabase "dbd/LAKESHORE460-IOC-02.dbd" +LAKESHORE460_IOC_02_registerRecordDeviceDriver pdbbase + +##ISIS## Run IOC initialisation +< $(IOCSTARTUP)/init.cmd + +## Load record instances + +##ISIS## Load common DB records +< $(IOCSTARTUP)/dbload.cmd + +## Load our record instances +#dbLoadRecords("db/xxx.db","user=zyz29835") + +##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called +< $(IOCSTARTUP)/preiocinit.cmd + +cd "${TOP}/iocBoot/${IOC}" +iocInit + +## Start any sequence programs +#seq sncxxx,"user=zyz29835" + +##ISIS## Stuff that needs to be done after iocInit is called e.g. sequence programs +< $(IOCSTARTUP)/postiocinit.cmd From a9be1ef95b3ca75cfab14d76ad1350ec60e2681f Mon Sep 17 00:00:00 2001 From: Attah Date: Fri, 28 Jul 2017 17:03:15 +0100 Subject: [PATCH 2/7] stashing| --- LKSH460/LKSH460-IOC-01App/Db/Makefile | 22 ++ LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db | 373 ++++++++++++++++++ LKSH460/LKSH460-IOC-01App/Makefile | 9 + LKSH460/LKSH460-IOC-01App/protocol/Makefile | 15 + .../src/LKSH460-IOC-01Main.cpp | 23 ++ LKSH460/LKSH460-IOC-01App/src/Makefile | 9 + LKSH460/LKSH460-IOC-01App/src/build.mak | 66 ++++ LKSH460/LKSH460-IOC-02App/Db/Makefile | 22 ++ LKSH460/LKSH460-IOC-02App/Makefile | 9 + LKSH460/LKSH460-IOC-02App/protocol/Makefile | 15 + .../src/LKSH460-IOC-02Main.cpp | 23 ++ LKSH460/LKSH460-IOC-02App/src/Makefile | 9 + LKSH460/Makefile | 31 ++ LKSH460/configure/CONFIG | 29 ++ LKSH460/configure/CONFIG_SITE | 43 ++ LKSH460/configure/Makefile | 8 + LKSH460/configure/RELEASE | 55 +++ LKSH460/configure/RULES | 6 + LKSH460/configure/RULES.ioc | 2 + LKSH460/configure/RULES_DIRS | 2 + LKSH460/configure/RULES_TOP | 3 + LKSH460/iocBoot/Makefile | 6 + LKSH460/iocBoot/iocLKSH460-IOC-01/Makefile | 6 + .../iocBoot/iocLKSH460-IOC-01/st-common.cmd | 32 ++ LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd | 13 + LKSH460/iocBoot/iocLKSH460-IOC-02/Makefile | 6 + LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd | 38 ++ 27 files changed, 875 insertions(+) create mode 100644 LKSH460/LKSH460-IOC-01App/Db/Makefile create mode 100644 LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db create mode 100644 LKSH460/LKSH460-IOC-01App/Makefile create mode 100644 LKSH460/LKSH460-IOC-01App/protocol/Makefile create mode 100644 LKSH460/LKSH460-IOC-01App/src/LKSH460-IOC-01Main.cpp create mode 100644 LKSH460/LKSH460-IOC-01App/src/Makefile create mode 100644 LKSH460/LKSH460-IOC-01App/src/build.mak create mode 100644 LKSH460/LKSH460-IOC-02App/Db/Makefile create mode 100644 LKSH460/LKSH460-IOC-02App/Makefile create mode 100644 LKSH460/LKSH460-IOC-02App/protocol/Makefile create mode 100644 LKSH460/LKSH460-IOC-02App/src/LKSH460-IOC-02Main.cpp create mode 100644 LKSH460/LKSH460-IOC-02App/src/Makefile create mode 100644 LKSH460/Makefile create mode 100644 LKSH460/configure/CONFIG create mode 100644 LKSH460/configure/CONFIG_SITE create mode 100644 LKSH460/configure/Makefile create mode 100644 LKSH460/configure/RELEASE create mode 100644 LKSH460/configure/RULES create mode 100644 LKSH460/configure/RULES.ioc create mode 100644 LKSH460/configure/RULES_DIRS create mode 100644 LKSH460/configure/RULES_TOP create mode 100644 LKSH460/iocBoot/Makefile create mode 100644 LKSH460/iocBoot/iocLKSH460-IOC-01/Makefile create mode 100644 LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd create mode 100644 LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd create mode 100644 LKSH460/iocBoot/iocLKSH460-IOC-02/Makefile create mode 100644 LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd diff --git a/LKSH460/LKSH460-IOC-01App/Db/Makefile b/LKSH460/LKSH460-IOC-01App/Db/Makefile new file mode 100644 index 000000000..7def1434d --- /dev/null +++ b/LKSH460/LKSH460-IOC-01App/Db/Makefile @@ -0,0 +1,22 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#---------------------------------------------------- +# Optimization of db files using dbst (DEFAULT: NO) +#DB_OPT = YES + +#---------------------------------------------------- +# Create and install (or just install) into /db +# databases, templates, substitutions like this +DB += lakeshore460.db + +#---------------------------------------------------- +# If .db template is not named *.template add +# _template = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db new file mode 100644 index 000000000..ef41d17ef --- /dev/null +++ b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db @@ -0,0 +1,373 @@ +record(stringin, "$(P)$(R)IDN") +{ + field(DESC, "SCPI identification string") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getIDN $(PORT)") + field(PINI, "YES") + # field(SIML, "$(P)SIM") + # field(SIOL, "$(P)SIM:IDN") + field(SDIS, "$(P)DISABLE") +} + +record(bi, "$(P)UNIT") +{ + field(DESC, "UNIT") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getUnit $(PORT)") + field(PREC, "3") + field(ZNAM, "G") + field(ONAM, "T") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:UNIT") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bo, "$(P)UNIT:SP") +{ + field(DESC, "Set Unit") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setUnit $(PORT)") + field(ZNAM, "G") + field(ZNAM, "T") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:CURRENT:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(ai, "$(P)SOURCE") +{ + field(DESC, "Vector Magnitude Source") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getSource $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(ao, "$(P)SOURCE:SP") +{ + field(DESC, "Set Vector Magnitude Source") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setSource $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(stringin, "$(P)CHANNEL") +{ + field(DESC, "Channel") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getChannel $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(stringout, "$(P)CHANNEL:SP") +{ + field(DESC, "Set Channel") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setSource $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(stringin, "$(P)RST") +{ + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto Reset $(PORT)") + field(PINI, "$(RESET=NO)") + #field(SIML, "$(P)SIM") + # field(SIOL, "$(P)SIM:RST") + field(SDIS, "$(P)DISABLE") +} + +record(ai, "$(P)FIELD") +{ + field(DESC, "Returns the X axis reading, the Y axis, the Z axis, then the Vector Magnitude.") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getAllFields $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(ai, "$(P)MULTIPLIER") +{ + field(DESC, "Magnetic Field Reading Multiplier") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getFieldMultiplier $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bi, "$(P)OUTPUTSTATUS") +{ + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)OUTPUTSTATUS:SP") +{ + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setOnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS:SP") + field(SDIS, "$(P)DISABLE") +} + +record(bi, "$(P)OUTPUTSTATUS") +{ + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS") + field(SDIS, "$(P)DISABLE") + +record(bi, "$(P)OUTPUTMODE") +{ + field(DESC, "Magnetic Field Reading Measurement") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getACDC $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)OUTPUTMODE:SP") +{ + field(DESC, "Set Magnetic Field Reading Measurement") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@kepco.proto setACDC $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + +record(ai, "$(P)PRMS") +{ + field(DESC, "Peak/RMS Field Reading") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getPRMSReading $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(ao, "$(P)PRMS:SP") +{ + field(DESC, "Set Peak/RMS Field Reading") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setPRMSReading $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bi, "$(P)FILTER") +{ + field(DESC, "Display Filter") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getACDC $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)FILTER:SP") +{ + field(DESC, "Set Display Filter ") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setDisplayFilter $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + +record(ai, "$(P)MAXREADINGMULTI") +{ + field(DESC, "Max Reading Multiplier") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getMaxReadingMultiplier $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bi, "$(P)AUTO") +{ + field(DESC, "Auto Range") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getAutoRange $(PORT)") + field(ZNAM, "Auto Range Off") + field(ONAM, "Auto Range On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)AUTO:SP") +{ + field(DESC, "Set Auto Range") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setAutoRange $(PORT)") + field(ZNAM, "Auto Range Off") + field(ONAM, "Auto Range On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + +record(bi, "$(P)RELATIVEMODE") +{ + field(DESC, "Relative Mode") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)MAXHOLD:SP") +{ + field(DESC, "Set Max Hold") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + +record(bi, "$(P)MAXHOLD") +{ + field(DESC, "Max Hold") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)MAXHOLD:SP") +{ + field(DESC, "Set Max Hold") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} + + +record(ao, "$(P)MAXC:SP") +{ + field(DESC, "Max Clear") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setMaxClear $(PORT)") + #field(SIML, "$(P)SIM") + #field(SIOL, "$(P)SIM:SOURCE:SP") + field(SDIS, "$(P)DISABLE") + #info(INTEREST, "HIGH") + #info(archive, "VAL") +} + +record(bi, "$(P)RELMODE") +{ + field(DESC, "Relative Mode") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getRelativeMode $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)RELMODE:SP") +{ + field(DESC, "Set Relatve Mode") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setRelativeMode $(PORT)") + field(ZNAM, "Off") + field(ONAM, "On") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)DISABLE") +} \ No newline at end of file diff --git a/LKSH460/LKSH460-IOC-01App/Makefile b/LKSH460/LKSH460-IOC-01App/Makefile new file mode 100644 index 000000000..373b86bfc --- /dev/null +++ b/LKSH460/LKSH460-IOC-01App/Makefile @@ -0,0 +1,9 @@ +TOP = .. +include $(TOP)/configure/CONFIG +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Src*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *protocol*)) +include $(TOP)/configure/RULES_DIRS + diff --git a/LKSH460/LKSH460-IOC-01App/protocol/Makefile b/LKSH460/LKSH460-IOC-01App/protocol/Makefile new file mode 100644 index 000000000..a1acab9ec --- /dev/null +++ b/LKSH460/LKSH460-IOC-01App/protocol/Makefile @@ -0,0 +1,15 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#DATA += LKSH460-IOC-01.proto + +#---------------------------------------------------- +# If .db template is not named *.template add +# _TEMPLATE = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LKSH460/LKSH460-IOC-01App/src/LKSH460-IOC-01Main.cpp b/LKSH460/LKSH460-IOC-01App/src/LKSH460-IOC-01Main.cpp new file mode 100644 index 000000000..cd06e5ff5 --- /dev/null +++ b/LKSH460/LKSH460-IOC-01App/src/LKSH460-IOC-01Main.cpp @@ -0,0 +1,23 @@ +/* LKSH460-IOC-01Main.cpp */ +/* Author: Marty Kraimer Date: 17MAR2000 */ + +#include +#include +#include +#include +#include + +#include "epicsExit.h" +#include "epicsThread.h" +#include "iocsh.h" + +int main(int argc,char *argv[]) +{ + if(argc>=2) { + iocsh(argv[1]); + epicsThreadSleep(.2); + } + iocsh(NULL); + epicsExit(0); + return(0); +} diff --git a/LKSH460/LKSH460-IOC-01App/src/Makefile b/LKSH460/LKSH460-IOC-01App/src/Makefile new file mode 100644 index 000000000..3ca5e89a3 --- /dev/null +++ b/LKSH460/LKSH460-IOC-01App/src/Makefile @@ -0,0 +1,9 @@ +TOP=../.. +# This file should do very little - it's purpose is to set the APPNAME and then load build.mak + +# this definition is used in build.mak +APPNAME=LKSH460-IOC-01 + +# If we are ###-IOC-01 leave this as is, if we are ###-IOC-02 or higher change to ###-IOC-01 and delete build.mak from this directory +# there should only be a single build.mak for all IOCs of a given family and it is located in the ###-IOC-01 directory +include $(TOP)/LKSH460-IOC-01App/src/build.mak diff --git a/LKSH460/LKSH460-IOC-01App/src/build.mak b/LKSH460/LKSH460-IOC-01App/src/build.mak new file mode 100644 index 000000000..fbab3b1de --- /dev/null +++ b/LKSH460/LKSH460-IOC-01App/src/build.mak @@ -0,0 +1,66 @@ +TOP=../.. + +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE +#============================= + +### NOTE: there should only be one build.mak for a given IOC family and this should be located in the ###-IOC-01 directory + +#============================= +# Build the IOC application LKSH460-IOC-01 +# We actually use $(APPNAME) below so this file can be included by multiple IOCs + +PROD_IOC = $(APPNAME) +# LKSH460-IOC-01.dbd will be created and installed +DBD += $(APPNAME).dbd + +# LKSH460-IOC-01.dbd will be made up from these files: +$(APPNAME)_DBD += base.dbd +## ISIS standard dbd ## +$(APPNAME)_DBD += devSequencer.dbd +$(APPNAME)_DBD += icpconfig.dbd +$(APPNAME)_DBD += pvdump.dbd +$(APPNAME)_DBD += asSupport.dbd +$(APPNAME)_DBD += devIocStats.dbd +$(APPNAME)_DBD += caPutLog.dbd +$(APPNAME)_DBD += utilities.dbd +## add other dbd here ## +$(APPNAME)_DBD += stream.dbd +$(APPNAME)_DBD += asyn.dbd +$(APPNAME)_DBD += drvAsynSerialPort.dbd +$(APPNAME)_DBD += drvAsynIPPort.dbd + +# Add all the support libraries needed by this IOC +## ISIS standard libraries ## +$(APPNAME)_LIBS += seqDev seq pv +$(APPNAME)_LIBS += devIocStats +$(APPNAME)_LIBS += pvdump $(MYSQLLIB) easySQLite sqlite +$(APPNAME)_LIBS += caPutLog +$(APPNAME)_LIBS += icpconfig pugixml +$(APPNAME)_LIBS += autosave +$(APPNAME)_LIBS += utilities pcre libjson zlib +## Add other libraries here ## +$(APPNAME)_LIBS += stream +$(APPNAME)_LIBS += pcre +$(APPNAME)_LIBS += asyn + +# LKSH460-IOC-01_registerRecordDeviceDriver.cpp derives from LKSH460-IOC-01.dbd +$(APPNAME)_SRCS += $(APPNAME)_registerRecordDeviceDriver.cpp + +# Build the main IOC entry point on workstation OSs. +$(APPNAME)_SRCS_DEFAULT += $(APPNAME)Main.cpp +$(APPNAME)_SRCS_vxWorks += -nil- + +# Add support from base/src/vxWorks if needed +#$(APPNAME)_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary + +# Finally link to the EPICS Base libraries +$(APPNAME)_LIBS += $(EPICS_BASE_IOC_LIBS) + +#=========================== + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LKSH460/LKSH460-IOC-02App/Db/Makefile b/LKSH460/LKSH460-IOC-02App/Db/Makefile new file mode 100644 index 000000000..983981d40 --- /dev/null +++ b/LKSH460/LKSH460-IOC-02App/Db/Makefile @@ -0,0 +1,22 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#---------------------------------------------------- +# Optimization of db files using dbst (DEFAULT: NO) +#DB_OPT = YES + +#---------------------------------------------------- +# Create and install (or just install) into /db +# databases, templates, substitutions like this +#DB += xxx.db + +#---------------------------------------------------- +# If .db template is not named *.template add +# _template = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LKSH460/LKSH460-IOC-02App/Makefile b/LKSH460/LKSH460-IOC-02App/Makefile new file mode 100644 index 000000000..373b86bfc --- /dev/null +++ b/LKSH460/LKSH460-IOC-02App/Makefile @@ -0,0 +1,9 @@ +TOP = .. +include $(TOP)/configure/CONFIG +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Src*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *protocol*)) +include $(TOP)/configure/RULES_DIRS + diff --git a/LKSH460/LKSH460-IOC-02App/protocol/Makefile b/LKSH460/LKSH460-IOC-02App/protocol/Makefile new file mode 100644 index 000000000..a6b3b88cf --- /dev/null +++ b/LKSH460/LKSH460-IOC-02App/protocol/Makefile @@ -0,0 +1,15 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#DATA += LKSH460-IOC-02.proto + +#---------------------------------------------------- +# If .db template is not named *.template add +# _TEMPLATE = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/LKSH460/LKSH460-IOC-02App/src/LKSH460-IOC-02Main.cpp b/LKSH460/LKSH460-IOC-02App/src/LKSH460-IOC-02Main.cpp new file mode 100644 index 000000000..c0da25314 --- /dev/null +++ b/LKSH460/LKSH460-IOC-02App/src/LKSH460-IOC-02Main.cpp @@ -0,0 +1,23 @@ +/* LKSH460-IOC-02Main.cpp */ +/* Author: Marty Kraimer Date: 17MAR2000 */ + +#include +#include +#include +#include +#include + +#include "epicsExit.h" +#include "epicsThread.h" +#include "iocsh.h" + +int main(int argc,char *argv[]) +{ + if(argc>=2) { + iocsh(argv[1]); + epicsThreadSleep(.2); + } + iocsh(NULL); + epicsExit(0); + return(0); +} diff --git a/LKSH460/LKSH460-IOC-02App/src/Makefile b/LKSH460/LKSH460-IOC-02App/src/Makefile new file mode 100644 index 000000000..5fc70b2da --- /dev/null +++ b/LKSH460/LKSH460-IOC-02App/src/Makefile @@ -0,0 +1,9 @@ +TOP=../.. +# This file should do very little - it's purpose is to set the APPNAME and then load build.mak + +# this definition is used in build.mak +APPNAME=LKSH460-IOC-02 + +# If we are ###-IOC-01 leave this as is, if we are ###-IOC-02 or higher change to ###-IOC-01 and delete build.mak from this directory +# there should only be a single build.mak for all IOCs of a given family and it is located in the ###-IOC-01 directory +include $(TOP)/LKSH460-IOC-01App/src/build.mak diff --git a/LKSH460/Makefile b/LKSH460/Makefile new file mode 100644 index 000000000..19c9068d1 --- /dev/null +++ b/LKSH460/Makefile @@ -0,0 +1,31 @@ +# Makefile at top of application tree +TOP = . +include $(TOP)/configure/CONFIG + +# Directories to build, any order +DIRS += configure +DIRS += $(wildcard *Sup) +DIRS += $(wildcard *App) +DIRS += $(wildcard *Top) +DIRS += $(wildcard iocBoot) + +# The build order is controlled by these dependency rules: + +# All dirs except configure depend on configure +$(foreach dir, $(filter-out configure, $(DIRS)), \ + $(eval $(dir)_DEPEND_DIRS += configure)) + +# Any *App dirs depend on all *Sup dirs +$(foreach dir, $(filter %App, $(DIRS)), \ + $(eval $(dir)_DEPEND_DIRS += $(filter %Sup, $(DIRS)))) + +# Any *Top dirs depend on all *Sup and *App dirs +$(foreach dir, $(filter %Top, $(DIRS)), \ + $(eval $(dir)_DEPEND_DIRS += $(filter %Sup %App, $(DIRS)))) + +# iocBoot depends on all *App dirs +iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS)) + +# Add any additional dependency rules here: + +include $(TOP)/configure/RULES_TOP diff --git a/LKSH460/configure/CONFIG b/LKSH460/configure/CONFIG new file mode 100644 index 000000000..c1a470322 --- /dev/null +++ b/LKSH460/configure/CONFIG @@ -0,0 +1,29 @@ +# CONFIG - Load build configuration data +# +# Do not make changes to this file! + +# Allow user to override where the build rules come from +RULES = $(EPICS_BASE) + +# RELEASE files point to other application tops +include $(TOP)/configure/RELEASE +-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).Common +ifdef T_A +-include $(TOP)/configure/RELEASE.Common.$(T_A) +-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(T_A) +endif + +CONFIG = $(RULES)/configure +include $(CONFIG)/CONFIG + +# Override the Base definition: +INSTALL_LOCATION = $(TOP) + +# CONFIG_SITE files contain other build configuration settings +include $(TOP)/configure/CONFIG_SITE +-include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).Common +ifdef T_A + -include $(TOP)/configure/CONFIG_SITE.Common.$(T_A) + -include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A) +endif + diff --git a/LKSH460/configure/CONFIG_SITE b/LKSH460/configure/CONFIG_SITE new file mode 100644 index 000000000..212485ebe --- /dev/null +++ b/LKSH460/configure/CONFIG_SITE @@ -0,0 +1,43 @@ +# CONFIG_SITE + +# Make any application-specific changes to the EPICS build +# configuration variables in this file. +# +# Host/target specific settings can be specified in files named +# CONFIG_SITE.$(EPICS_HOST_ARCH).Common +# CONFIG_SITE.Common.$(T_A) +# CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A) + +# CHECK_RELEASE controls the consistency checking of the support +# applications pointed to by the RELEASE* files. +# Normally CHECK_RELEASE should be set to YES. +# Set CHECK_RELEASE to NO to disable checking completely. +# Set CHECK_RELEASE to WARN to perform consistency checking but +# continue building even if conflicts are found. +CHECK_RELEASE = YES + +# Set this when you only want to compile this application +# for a subset of the cross-compiled target architectures +# that Base is built for. +#CROSS_COMPILER_TARGET_ARCHS = vxWorks-ppc32 + +# To install files into a location other than $(TOP) define +# INSTALL_LOCATION here. +#INSTALL_LOCATION= + +# Set this when the IOC and build host use different paths +# to the install location. This may be needed to boot from +# a Microsoft FTP server say, or on some NFS configurations. +#IOCS_APPL_TOP = + +# For application debugging purposes, override the HOST_OPT and/ +# or CROSS_OPT settings from base/configure/CONFIG_SITE +#HOST_OPT = NO +#CROSS_OPT = NO + +# These allow developers to override the CONFIG_SITE variable +# settings without having to modify the configure/CONFIG_SITE +# file itself. +-include $(TOP)/../CONFIG_SITE.local +-include $(TOP)/configure/CONFIG_SITE.local + diff --git a/LKSH460/configure/Makefile b/LKSH460/configure/Makefile new file mode 100644 index 000000000..925430940 --- /dev/null +++ b/LKSH460/configure/Makefile @@ -0,0 +1,8 @@ +TOP=.. + +include $(TOP)/configure/CONFIG + +TARGETS = $(CONFIG_TARGETS) +CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS))) + +include $(TOP)/configure/RULES diff --git a/LKSH460/configure/RELEASE b/LKSH460/configure/RELEASE new file mode 100644 index 000000000..74e572c51 --- /dev/null +++ b/LKSH460/configure/RELEASE @@ -0,0 +1,55 @@ +# RELEASE - Location of external support modules +# +# IF YOU MAKE ANY CHANGES to this file you must subsequently +# do a "gnumake rebuild" in this application's top level +# directory. +# +# The build process does not check dependencies against files +# that are outside this application, thus you should do a +# "gnumake rebuild" in the top level directory after EPICS_BASE +# or any other external module pointed to below is rebuilt. +# +# Host- or target-specific settings can be given in files named +# RELEASE.$(EPICS_HOST_ARCH).Common +# RELEASE.Common.$(T_A) +# RELEASE.$(EPICS_HOST_ARCH).$(T_A) +# +# This file is parsed by both GNUmake and an EPICS Perl script, +# so it can ONLY contain definititions of paths to other support +# modules, variable definitions that are used in module paths, +# and include statements that pull in other RELEASE files. +# Variables may be used before their values have been set. +# Build variables that are NOT used in paths should be set in +# the CONFIG_SITE file. + +# Variables and paths to dependent modules: +#MODULES = /path/to/modules +#MYMODULE = $(MODULES)/my-module + +# If using the sequencer, point SNCSEQ at its top directory: +#SNCSEQ = $(MODULES)/seq-ver + +# EPICS_BASE should appear last so earlier modules can override stuff: +EPICS_BASE = C:/Instrument/Apps/EPICS/base/master + +# Set RULES here if you want to use build rules from somewhere +# other than EPICS_BASE: +#RULES = $(MODULES)/build-rules + +# These allow developers to override the RELEASE variable settings +# without having to modify the configure/RELEASE file itself. +-include $(TOP)/../RELEASE.local +-include $(TOP)/configure/RELEASE.local + +# top level master release and local private options +include $(TOP)/../../../configure/MASTER_RELEASE +-include $(TOP)/../../../configure/MASTER_RELEASE.$(EPICS_HOST_ARCH) +-include $(TOP)/../../../configure/MASTER_RELEASE.private +-include $(TOP)/../../../configure/MASTER_RELEASE.private.$(EPICS_HOST_ARCH) + +# optional extra local definitions here +-include $(TOP)/configure/RELEASE.private + +include $(TOP)/../../../ISIS_CONFIG +-include $(TOP)/../../../ISIS_CONFIG.$(EPICS_HOST_ARCH) + diff --git a/LKSH460/configure/RULES b/LKSH460/configure/RULES new file mode 100644 index 000000000..6d56e14e8 --- /dev/null +++ b/LKSH460/configure/RULES @@ -0,0 +1,6 @@ +# RULES + +include $(CONFIG)/RULES + +# Library should be rebuilt because LIBOBJS may have changed. +$(LIBNAME): ../Makefile diff --git a/LKSH460/configure/RULES.ioc b/LKSH460/configure/RULES.ioc new file mode 100644 index 000000000..901987c6c --- /dev/null +++ b/LKSH460/configure/RULES.ioc @@ -0,0 +1,2 @@ +#RULES.ioc +include $(CONFIG)/RULES.ioc diff --git a/LKSH460/configure/RULES_DIRS b/LKSH460/configure/RULES_DIRS new file mode 100644 index 000000000..3ba269dcc --- /dev/null +++ b/LKSH460/configure/RULES_DIRS @@ -0,0 +1,2 @@ +#RULES_DIRS +include $(CONFIG)/RULES_DIRS diff --git a/LKSH460/configure/RULES_TOP b/LKSH460/configure/RULES_TOP new file mode 100644 index 000000000..d09d668d5 --- /dev/null +++ b/LKSH460/configure/RULES_TOP @@ -0,0 +1,3 @@ +#RULES_TOP +include $(CONFIG)/RULES_TOP + diff --git a/LKSH460/iocBoot/Makefile b/LKSH460/iocBoot/Makefile new file mode 100644 index 000000000..91e47d0b5 --- /dev/null +++ b/LKSH460/iocBoot/Makefile @@ -0,0 +1,6 @@ +TOP = .. +include $(TOP)/configure/CONFIG +DIRS += $(wildcard *ioc*) +DIRS += $(wildcard as*) +include $(CONFIG)/RULES_DIRS + diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-01/Makefile b/LKSH460/iocBoot/iocLKSH460-IOC-01/Makefile new file mode 100644 index 000000000..09b391227 --- /dev/null +++ b/LKSH460/iocBoot/iocLKSH460-IOC-01/Makefile @@ -0,0 +1,6 @@ +TOP = ../.. +include $(TOP)/configure/CONFIG +#ARCH = windows-x64 +ARCH = $(EPICS_HOST_ARCH) +TARGETS = envPaths dllPath.bat relPaths.sh runIOC.bat runIOC.sh +include $(TOP)/configure/RULES.ioc diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd b/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd new file mode 100644 index 000000000..0524e9989 --- /dev/null +++ b/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd @@ -0,0 +1,32 @@ +epicsEnvSet "STREAM_PROTOCOL_PATH" "$(LKSH460)/Lakeshore_460Sup" + +##ISIS## Run IOC initialisation +< $(IOCSTARTUP)/init.cmd + +# For dev sim devices +$(IFDEVSIM) drvAsynIPPortConfigure("L0", "localhost:$(EMULATOR_PORT=)") + +## For real device use: +$(IFNOTDEVSIM) $(IFNOTRECSIM) drvAsynSerialPortConfigure("L0", "$(PORT=NO_PORT_MACRO)", 0, 0, 0, 0) +$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "baud", "$(BAUD=9600)") +$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "bits", "$(BITS=7)") +$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "parity", "$(PARITY=even)") +$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "stop", "$(STOP=1)") + +##ISIS## Load common DB records +< $(IOCSTARTUP)/dbload.cmd + +## Load our record instances +dbLoadRecords("db/lakeshore460.db","P=$(MYPVPREFIX)$(IOCNAME):, PORT=L0, RECSIM=$(RECSIM=0), DISABLE=$(DISABLE=0)") + +##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called +< $(IOCSTARTUP)/preiocinit.cmd + +cd "${TOP}/iocBoot/${IOC}" +iocInit + +## Start any sequence programs +#seq sncxxx,"user=hgv27692Host" + +##ISIS## Stuff that needs to be done after iocInit is called e.g. sequence programs +< $(IOCSTARTUP)/postiocinit.cmd diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd b/LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd new file mode 100644 index 000000000..f500ef8a9 --- /dev/null +++ b/LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd @@ -0,0 +1,13 @@ +#!../../bin/windows-x64/LKSH460-IOC-01 + +## You may have to change LKSH460 to something else +## everywhere it appears in this file + +< envPaths + +## Register all support components +dbLoadDatabase "${TOP}/dbd/LKSH460-IOC-01.dbd" +LKSH460_IOC_01_registerRecordDeviceDriver pdbbase + +## calling common command file in ioc 01 boot dir +< ${TOP}/iocBoot/iocLKSH460-IOC-01/st-common.cmd diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-02/Makefile b/LKSH460/iocBoot/iocLKSH460-IOC-02/Makefile new file mode 100644 index 000000000..09b391227 --- /dev/null +++ b/LKSH460/iocBoot/iocLKSH460-IOC-02/Makefile @@ -0,0 +1,6 @@ +TOP = ../.. +include $(TOP)/configure/CONFIG +#ARCH = windows-x64 +ARCH = $(EPICS_HOST_ARCH) +TARGETS = envPaths dllPath.bat relPaths.sh runIOC.bat runIOC.sh +include $(TOP)/configure/RULES.ioc diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd b/LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd new file mode 100644 index 000000000..6e3d1454b --- /dev/null +++ b/LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd @@ -0,0 +1,38 @@ +#!../../bin/windows-x64/LKSH460-IOC-02 + +## You may have to change LKSH460-IOC-02 to something else +## everywhere it appears in this file + +# Increase this if you get <> or discarded messages warnings in your errlog output +errlogInit2(65536, 256) + +< envPaths + +cd "${TOP}" + +## Register all support components +dbLoadDatabase "dbd/LKSH460-IOC-02.dbd" +LKSH460_IOC_02_registerRecordDeviceDriver pdbbase + +##ISIS## Run IOC initialisation +< $(IOCSTARTUP)/init.cmd + +## Load record instances + +##ISIS## Load common DB records +< $(IOCSTARTUP)/dbload.cmd + +## Load our record instances +#dbLoadRecords("db/xxx.db","user=zyz29835") + +##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called +< $(IOCSTARTUP)/preiocinit.cmd + +cd "${TOP}/iocBoot/${IOC}" +iocInit + +## Start any sequence programs +#seq sncxxx,"user=zyz29835" + +##ISIS## Stuff that needs to be done after iocInit is called e.g. sequence programs +< $(IOCSTARTUP)/postiocinit.cmd From 185accbcd330883b043b71ec64e277a6440fbe10 Mon Sep 17 00:00:00 2001 From: Attah Date: Tue, 15 Aug 2017 10:27:14 +0100 Subject: [PATCH 3/7] IOC for Lakeshore460 --- .../LAKESHORE460-IOC-01App/Db/Makefile | 22 -- .../LAKESHORE460-IOC-01App/Db/lakeshore460.db | 373 ------------------ LAKESHORE460/LAKESHORE460-IOC-01App/Makefile | 9 - .../LAKESHORE460-IOC-01App/protocol/Makefile | 15 - .../src/LAKESHORE460-IOC-01Main.cpp | 23 -- .../LAKESHORE460-IOC-01App/src/Makefile | 9 - .../LAKESHORE460-IOC-01App/src/build.mak | 66 ---- .../LAKESHORE460-IOC-02App/Db/Makefile | 22 -- LAKESHORE460/LAKESHORE460-IOC-02App/Makefile | 9 - .../LAKESHORE460-IOC-02App/protocol/Makefile | 15 - .../src/LAKESHORE460-IOC-02Main.cpp | 23 -- .../LAKESHORE460-IOC-02App/src/Makefile | 9 - LAKESHORE460/Makefile | 31 -- LAKESHORE460/configure/CONFIG | 29 -- LAKESHORE460/configure/CONFIG_SITE | 43 -- LAKESHORE460/configure/Makefile | 8 - LAKESHORE460/configure/RELEASE | 55 --- LAKESHORE460/configure/RULES | 6 - LAKESHORE460/configure/RULES.ioc | 2 - LAKESHORE460/configure/RULES_DIRS | 2 - LAKESHORE460/configure/RULES_TOP | 3 - LAKESHORE460/iocBoot/Makefile | 6 - .../iocBoot/iocLAKESHORE460-IOC-01/Makefile | 6 - .../iocLAKESHORE460-IOC-01/st-common.cmd | 32 -- .../iocBoot/iocLAKESHORE460-IOC-01/st.cmd | 13 - .../iocBoot/iocLAKESHORE460-IOC-02/Makefile | 6 - .../iocBoot/iocLAKESHORE460-IOC-02/st.cmd | 38 -- Makefile | 2 +- 28 files changed, 1 insertion(+), 876 deletions(-) delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/Db/Makefile delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/Db/lakeshore460.db delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/Makefile delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/protocol/Makefile delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/src/LAKESHORE460-IOC-01Main.cpp delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/src/Makefile delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-01App/src/build.mak delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/Db/Makefile delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/Makefile delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/protocol/Makefile delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/src/LAKESHORE460-IOC-02Main.cpp delete mode 100644 LAKESHORE460/LAKESHORE460-IOC-02App/src/Makefile delete mode 100644 LAKESHORE460/Makefile delete mode 100644 LAKESHORE460/configure/CONFIG delete mode 100644 LAKESHORE460/configure/CONFIG_SITE delete mode 100644 LAKESHORE460/configure/Makefile delete mode 100644 LAKESHORE460/configure/RELEASE delete mode 100644 LAKESHORE460/configure/RULES delete mode 100644 LAKESHORE460/configure/RULES.ioc delete mode 100644 LAKESHORE460/configure/RULES_DIRS delete mode 100644 LAKESHORE460/configure/RULES_TOP delete mode 100644 LAKESHORE460/iocBoot/Makefile delete mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/Makefile delete mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd delete mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st.cmd delete mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/Makefile delete mode 100644 LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/st.cmd diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/Db/Makefile b/LAKESHORE460/LAKESHORE460-IOC-01App/Db/Makefile deleted file mode 100644 index 7def1434d..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-01App/Db/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -TOP=../.. -include $(TOP)/configure/CONFIG -#---------------------------------------- -# ADD MACRO DEFINITIONS AFTER THIS LINE - -#---------------------------------------------------- -# Optimization of db files using dbst (DEFAULT: NO) -#DB_OPT = YES - -#---------------------------------------------------- -# Create and install (or just install) into /db -# databases, templates, substitutions like this -DB += lakeshore460.db - -#---------------------------------------------------- -# If .db template is not named *.template add -# _template = - -include $(TOP)/configure/RULES -#---------------------------------------- -# ADD RULES AFTER THIS LINE - diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/Db/lakeshore460.db b/LAKESHORE460/LAKESHORE460-IOC-01App/Db/lakeshore460.db deleted file mode 100644 index ef41d17ef..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-01App/Db/lakeshore460.db +++ /dev/null @@ -1,373 +0,0 @@ -record(stringin, "$(P)$(R)IDN") -{ - field(DESC, "SCPI identification string") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getIDN $(PORT)") - field(PINI, "YES") - # field(SIML, "$(P)SIM") - # field(SIOL, "$(P)SIM:IDN") - field(SDIS, "$(P)DISABLE") -} - -record(bi, "$(P)UNIT") -{ - field(DESC, "UNIT") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getUnit $(PORT)") - field(PREC, "3") - field(ZNAM, "G") - field(ONAM, "T") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:UNIT") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(bo, "$(P)UNIT:SP") -{ - field(DESC, "Set Unit") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setUnit $(PORT)") - field(ZNAM, "G") - field(ZNAM, "T") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:CURRENT:SP") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(ai, "$(P)SOURCE") -{ - field(DESC, "Vector Magnitude Source") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getSource $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(ao, "$(P)SOURCE:SP") -{ - field(DESC, "Set Vector Magnitude Source") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setSource $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE:SP") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(stringin, "$(P)CHANNEL") -{ - field(DESC, "Channel") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getChannel $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(stringout, "$(P)CHANNEL:SP") -{ - field(DESC, "Set Channel") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setSource $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE:SP") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(stringin, "$(P)RST") -{ - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto Reset $(PORT)") - field(PINI, "$(RESET=NO)") - #field(SIML, "$(P)SIM") - # field(SIOL, "$(P)SIM:RST") - field(SDIS, "$(P)DISABLE") -} - -record(ai, "$(P)FIELD") -{ - field(DESC, "Returns the X axis reading, the Y axis, the Z axis, then the Vector Magnitude.") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getAllFields $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(ai, "$(P)MULTIPLIER") -{ - field(DESC, "Magnetic Field Reading Multiplier") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getFieldMultiplier $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(bi, "$(P)OUTPUTSTATUS") -{ - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS") - field(SDIS, "$(P)DISABLE") -} - -record(bo, "$(P)OUTPUTSTATUS:SP") -{ - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setOnOff $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS:SP") - field(SDIS, "$(P)DISABLE") -} - -record(bi, "$(P)OUTPUTSTATUS") -{ - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS") - field(SDIS, "$(P)DISABLE") - -record(bi, "$(P)OUTPUTMODE") -{ - field(DESC, "Magnetic Field Reading Measurement") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getACDC $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") - field(SDIS, "$(P)DISABLE") -} - -record(bo, "$(P)OUTPUTMODE:SP") -{ - field(DESC, "Set Magnetic Field Reading Measurement") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@kepco.proto setACDC $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") - field(SDIS, "$(P)DISABLE") -} - -record(ai, "$(P)PRMS") -{ - field(DESC, "Peak/RMS Field Reading") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getPRMSReading $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(ao, "$(P)PRMS:SP") -{ - field(DESC, "Set Peak/RMS Field Reading") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setPRMSReading $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE:SP") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(bi, "$(P)FILTER") -{ - field(DESC, "Display Filter") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getACDC $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") - field(SDIS, "$(P)DISABLE") -} - -record(bo, "$(P)FILTER:SP") -{ - field(DESC, "Set Display Filter ") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setDisplayFilter $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") - field(SDIS, "$(P)DISABLE") -} - -record(ai, "$(P)MAXREADINGMULTI") -{ - field(DESC, "Max Reading Multiplier") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getMaxReadingMultiplier $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(bi, "$(P)AUTO") -{ - field(DESC, "Auto Range") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getAutoRange $(PORT)") - field(ZNAM, "Auto Range Off") - field(ONAM, "Auto Range On") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") - field(SDIS, "$(P)DISABLE") -} - -record(bo, "$(P)AUTO:SP") -{ - field(DESC, "Set Auto Range") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setAutoRange $(PORT)") - field(ZNAM, "Auto Range Off") - field(ONAM, "Auto Range On") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") - field(SDIS, "$(P)DISABLE") -} - -record(bi, "$(P)RELATIVEMODE") -{ - field(DESC, "Relative Mode") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") - field(SDIS, "$(P)DISABLE") -} - -record(bo, "$(P)MAXHOLD:SP") -{ - field(DESC, "Set Max Hold") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") - field(SDIS, "$(P)DISABLE") -} - -record(bi, "$(P)MAXHOLD") -{ - field(DESC, "Max Hold") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") - field(SDIS, "$(P)DISABLE") -} - -record(bo, "$(P)MAXHOLD:SP") -{ - field(DESC, "Set Max Hold") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") - field(SDIS, "$(P)DISABLE") -} - - -record(ao, "$(P)MAXC:SP") -{ - field(DESC, "Max Clear") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setMaxClear $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE:SP") - field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") -} - -record(bi, "$(P)RELMODE") -{ - field(DESC, "Relative Mode") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getRelativeMode $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") - field(SDIS, "$(P)DISABLE") -} - -record(bo, "$(P)RELMODE:SP") -{ - field(DESC, "Set Relatve Mode") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setRelativeMode $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") - field(SDIS, "$(P)DISABLE") -} \ No newline at end of file diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/Makefile b/LAKESHORE460/LAKESHORE460-IOC-01App/Makefile deleted file mode 100644 index 373b86bfc..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-01App/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -TOP = .. -include $(TOP)/configure/CONFIG -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*)) -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Src*)) -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*)) -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*)) -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *protocol*)) -include $(TOP)/configure/RULES_DIRS - diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/protocol/Makefile b/LAKESHORE460/LAKESHORE460-IOC-01App/protocol/Makefile deleted file mode 100644 index 9dcadda22..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-01App/protocol/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -TOP=../.. -include $(TOP)/configure/CONFIG -#---------------------------------------- -# ADD MACRO DEFINITIONS AFTER THIS LINE - -#DATA += LAKESHORE460-IOC-01.proto - -#---------------------------------------------------- -# If .db template is not named *.template add -# _TEMPLATE = - -include $(TOP)/configure/RULES -#---------------------------------------- -# ADD RULES AFTER THIS LINE - diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/src/LAKESHORE460-IOC-01Main.cpp b/LAKESHORE460/LAKESHORE460-IOC-01App/src/LAKESHORE460-IOC-01Main.cpp deleted file mode 100644 index 5f1ddcb80..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-01App/src/LAKESHORE460-IOC-01Main.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/* LAKESHORE460-IOC-01Main.cpp */ -/* Author: Marty Kraimer Date: 17MAR2000 */ - -#include -#include -#include -#include -#include - -#include "epicsExit.h" -#include "epicsThread.h" -#include "iocsh.h" - -int main(int argc,char *argv[]) -{ - if(argc>=2) { - iocsh(argv[1]); - epicsThreadSleep(.2); - } - iocsh(NULL); - epicsExit(0); - return(0); -} diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/src/Makefile b/LAKESHORE460/LAKESHORE460-IOC-01App/src/Makefile deleted file mode 100644 index ce218d48f..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-01App/src/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -TOP=../.. -# This file should do very little - it's purpose is to set the APPNAME and then load build.mak - -# this definition is used in build.mak -APPNAME=LAKESHORE460-IOC-01 - -# If we are ###-IOC-01 leave this as is, if we are ###-IOC-02 or higher change to ###-IOC-01 and delete build.mak from this directory -# there should only be a single build.mak for all IOCs of a given family and it is located in the ###-IOC-01 directory -include $(TOP)/LAKESHORE460-IOC-01App/src/build.mak diff --git a/LAKESHORE460/LAKESHORE460-IOC-01App/src/build.mak b/LAKESHORE460/LAKESHORE460-IOC-01App/src/build.mak deleted file mode 100644 index 68b615894..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-01App/src/build.mak +++ /dev/null @@ -1,66 +0,0 @@ -TOP=../.. - -include $(TOP)/configure/CONFIG -#---------------------------------------- -# ADD MACRO DEFINITIONS AFTER THIS LINE -#============================= - -### NOTE: there should only be one build.mak for a given IOC family and this should be located in the ###-IOC-01 directory - -#============================= -# Build the IOC application LAKESHORE460-IOC-01 -# We actually use $(APPNAME) below so this file can be included by multiple IOCs - -PROD_IOC = $(APPNAME) -# LAKESHORE460-IOC-01.dbd will be created and installed -DBD += $(APPNAME).dbd - -# LAKESHORE460-IOC-01.dbd will be made up from these files: -$(APPNAME)_DBD += base.dbd -## ISIS standard dbd ## -$(APPNAME)_DBD += devSequencer.dbd -$(APPNAME)_DBD += icpconfig.dbd -$(APPNAME)_DBD += pvdump.dbd -$(APPNAME)_DBD += asSupport.dbd -$(APPNAME)_DBD += devIocStats.dbd -$(APPNAME)_DBD += caPutLog.dbd -$(APPNAME)_DBD += utilities.dbd -## add other dbd here ## -$(APPNAME)_DBD += stream.dbd -$(APPNAME)_DBD += asyn.dbd -$(APPNAME)_DBD += drvAsynSerialPort.dbd -$(APPNAME)_DBD += drvAsynIPPort.dbd - -# Add all the support libraries needed by this IOC -## ISIS standard libraries ## -$(APPNAME)_LIBS += seqDev seq pv -$(APPNAME)_LIBS += devIocStats -$(APPNAME)_LIBS += pvdump $(MYSQLLIB) easySQLite sqlite -$(APPNAME)_LIBS += caPutLog -$(APPNAME)_LIBS += icpconfig pugixml -$(APPNAME)_LIBS += autosave -$(APPNAME)_LIBS += utilities pcre libjson zlib -## Add other libraries here ## -$(APPNAME)_LIBS += stream -$(APPNAME)_LIBS += pcre -$(APPNAME)_LIBS += asyn - -# LAKESHORE460-IOC-01_registerRecordDeviceDriver.cpp derives from LAKESHORE460-IOC-01.dbd -$(APPNAME)_SRCS += $(APPNAME)_registerRecordDeviceDriver.cpp - -# Build the main IOC entry point on workstation OSs. -$(APPNAME)_SRCS_DEFAULT += $(APPNAME)Main.cpp -$(APPNAME)_SRCS_vxWorks += -nil- - -# Add support from base/src/vxWorks if needed -#$(APPNAME)_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary - -# Finally link to the EPICS Base libraries -$(APPNAME)_LIBS += $(EPICS_BASE_IOC_LIBS) - -#=========================== - -include $(TOP)/configure/RULES -#---------------------------------------- -# ADD RULES AFTER THIS LINE - diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/Db/Makefile b/LAKESHORE460/LAKESHORE460-IOC-02App/Db/Makefile deleted file mode 100644 index 983981d40..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-02App/Db/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -TOP=../.. -include $(TOP)/configure/CONFIG -#---------------------------------------- -# ADD MACRO DEFINITIONS AFTER THIS LINE - -#---------------------------------------------------- -# Optimization of db files using dbst (DEFAULT: NO) -#DB_OPT = YES - -#---------------------------------------------------- -# Create and install (or just install) into /db -# databases, templates, substitutions like this -#DB += xxx.db - -#---------------------------------------------------- -# If .db template is not named *.template add -# _template = - -include $(TOP)/configure/RULES -#---------------------------------------- -# ADD RULES AFTER THIS LINE - diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/Makefile b/LAKESHORE460/LAKESHORE460-IOC-02App/Makefile deleted file mode 100644 index 373b86bfc..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-02App/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -TOP = .. -include $(TOP)/configure/CONFIG -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*)) -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Src*)) -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*)) -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*)) -DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *protocol*)) -include $(TOP)/configure/RULES_DIRS - diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/protocol/Makefile b/LAKESHORE460/LAKESHORE460-IOC-02App/protocol/Makefile deleted file mode 100644 index 66c2bfe64..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-02App/protocol/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -TOP=../.. -include $(TOP)/configure/CONFIG -#---------------------------------------- -# ADD MACRO DEFINITIONS AFTER THIS LINE - -#DATA += LAKESHORE460-IOC-02.proto - -#---------------------------------------------------- -# If .db template is not named *.template add -# _TEMPLATE = - -include $(TOP)/configure/RULES -#---------------------------------------- -# ADD RULES AFTER THIS LINE - diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/src/LAKESHORE460-IOC-02Main.cpp b/LAKESHORE460/LAKESHORE460-IOC-02App/src/LAKESHORE460-IOC-02Main.cpp deleted file mode 100644 index 340342425..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-02App/src/LAKESHORE460-IOC-02Main.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/* LAKESHORE460-IOC-02Main.cpp */ -/* Author: Marty Kraimer Date: 17MAR2000 */ - -#include -#include -#include -#include -#include - -#include "epicsExit.h" -#include "epicsThread.h" -#include "iocsh.h" - -int main(int argc,char *argv[]) -{ - if(argc>=2) { - iocsh(argv[1]); - epicsThreadSleep(.2); - } - iocsh(NULL); - epicsExit(0); - return(0); -} diff --git a/LAKESHORE460/LAKESHORE460-IOC-02App/src/Makefile b/LAKESHORE460/LAKESHORE460-IOC-02App/src/Makefile deleted file mode 100644 index 1200d5d3b..000000000 --- a/LAKESHORE460/LAKESHORE460-IOC-02App/src/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -TOP=../.. -# This file should do very little - it's purpose is to set the APPNAME and then load build.mak - -# this definition is used in build.mak -APPNAME=LAKESHORE460-IOC-02 - -# If we are ###-IOC-01 leave this as is, if we are ###-IOC-02 or higher change to ###-IOC-01 and delete build.mak from this directory -# there should only be a single build.mak for all IOCs of a given family and it is located in the ###-IOC-01 directory -include $(TOP)/LAKESHORE460-IOC-01App/src/build.mak diff --git a/LAKESHORE460/Makefile b/LAKESHORE460/Makefile deleted file mode 100644 index 19c9068d1..000000000 --- a/LAKESHORE460/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# Makefile at top of application tree -TOP = . -include $(TOP)/configure/CONFIG - -# Directories to build, any order -DIRS += configure -DIRS += $(wildcard *Sup) -DIRS += $(wildcard *App) -DIRS += $(wildcard *Top) -DIRS += $(wildcard iocBoot) - -# The build order is controlled by these dependency rules: - -# All dirs except configure depend on configure -$(foreach dir, $(filter-out configure, $(DIRS)), \ - $(eval $(dir)_DEPEND_DIRS += configure)) - -# Any *App dirs depend on all *Sup dirs -$(foreach dir, $(filter %App, $(DIRS)), \ - $(eval $(dir)_DEPEND_DIRS += $(filter %Sup, $(DIRS)))) - -# Any *Top dirs depend on all *Sup and *App dirs -$(foreach dir, $(filter %Top, $(DIRS)), \ - $(eval $(dir)_DEPEND_DIRS += $(filter %Sup %App, $(DIRS)))) - -# iocBoot depends on all *App dirs -iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS)) - -# Add any additional dependency rules here: - -include $(TOP)/configure/RULES_TOP diff --git a/LAKESHORE460/configure/CONFIG b/LAKESHORE460/configure/CONFIG deleted file mode 100644 index c1a470322..000000000 --- a/LAKESHORE460/configure/CONFIG +++ /dev/null @@ -1,29 +0,0 @@ -# CONFIG - Load build configuration data -# -# Do not make changes to this file! - -# Allow user to override where the build rules come from -RULES = $(EPICS_BASE) - -# RELEASE files point to other application tops -include $(TOP)/configure/RELEASE --include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).Common -ifdef T_A --include $(TOP)/configure/RELEASE.Common.$(T_A) --include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(T_A) -endif - -CONFIG = $(RULES)/configure -include $(CONFIG)/CONFIG - -# Override the Base definition: -INSTALL_LOCATION = $(TOP) - -# CONFIG_SITE files contain other build configuration settings -include $(TOP)/configure/CONFIG_SITE --include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).Common -ifdef T_A - -include $(TOP)/configure/CONFIG_SITE.Common.$(T_A) - -include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A) -endif - diff --git a/LAKESHORE460/configure/CONFIG_SITE b/LAKESHORE460/configure/CONFIG_SITE deleted file mode 100644 index 212485ebe..000000000 --- a/LAKESHORE460/configure/CONFIG_SITE +++ /dev/null @@ -1,43 +0,0 @@ -# CONFIG_SITE - -# Make any application-specific changes to the EPICS build -# configuration variables in this file. -# -# Host/target specific settings can be specified in files named -# CONFIG_SITE.$(EPICS_HOST_ARCH).Common -# CONFIG_SITE.Common.$(T_A) -# CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A) - -# CHECK_RELEASE controls the consistency checking of the support -# applications pointed to by the RELEASE* files. -# Normally CHECK_RELEASE should be set to YES. -# Set CHECK_RELEASE to NO to disable checking completely. -# Set CHECK_RELEASE to WARN to perform consistency checking but -# continue building even if conflicts are found. -CHECK_RELEASE = YES - -# Set this when you only want to compile this application -# for a subset of the cross-compiled target architectures -# that Base is built for. -#CROSS_COMPILER_TARGET_ARCHS = vxWorks-ppc32 - -# To install files into a location other than $(TOP) define -# INSTALL_LOCATION here. -#INSTALL_LOCATION= - -# Set this when the IOC and build host use different paths -# to the install location. This may be needed to boot from -# a Microsoft FTP server say, or on some NFS configurations. -#IOCS_APPL_TOP = - -# For application debugging purposes, override the HOST_OPT and/ -# or CROSS_OPT settings from base/configure/CONFIG_SITE -#HOST_OPT = NO -#CROSS_OPT = NO - -# These allow developers to override the CONFIG_SITE variable -# settings without having to modify the configure/CONFIG_SITE -# file itself. --include $(TOP)/../CONFIG_SITE.local --include $(TOP)/configure/CONFIG_SITE.local - diff --git a/LAKESHORE460/configure/Makefile b/LAKESHORE460/configure/Makefile deleted file mode 100644 index 925430940..000000000 --- a/LAKESHORE460/configure/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -TOP=.. - -include $(TOP)/configure/CONFIG - -TARGETS = $(CONFIG_TARGETS) -CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS))) - -include $(TOP)/configure/RULES diff --git a/LAKESHORE460/configure/RELEASE b/LAKESHORE460/configure/RELEASE deleted file mode 100644 index 74e572c51..000000000 --- a/LAKESHORE460/configure/RELEASE +++ /dev/null @@ -1,55 +0,0 @@ -# RELEASE - Location of external support modules -# -# IF YOU MAKE ANY CHANGES to this file you must subsequently -# do a "gnumake rebuild" in this application's top level -# directory. -# -# The build process does not check dependencies against files -# that are outside this application, thus you should do a -# "gnumake rebuild" in the top level directory after EPICS_BASE -# or any other external module pointed to below is rebuilt. -# -# Host- or target-specific settings can be given in files named -# RELEASE.$(EPICS_HOST_ARCH).Common -# RELEASE.Common.$(T_A) -# RELEASE.$(EPICS_HOST_ARCH).$(T_A) -# -# This file is parsed by both GNUmake and an EPICS Perl script, -# so it can ONLY contain definititions of paths to other support -# modules, variable definitions that are used in module paths, -# and include statements that pull in other RELEASE files. -# Variables may be used before their values have been set. -# Build variables that are NOT used in paths should be set in -# the CONFIG_SITE file. - -# Variables and paths to dependent modules: -#MODULES = /path/to/modules -#MYMODULE = $(MODULES)/my-module - -# If using the sequencer, point SNCSEQ at its top directory: -#SNCSEQ = $(MODULES)/seq-ver - -# EPICS_BASE should appear last so earlier modules can override stuff: -EPICS_BASE = C:/Instrument/Apps/EPICS/base/master - -# Set RULES here if you want to use build rules from somewhere -# other than EPICS_BASE: -#RULES = $(MODULES)/build-rules - -# These allow developers to override the RELEASE variable settings -# without having to modify the configure/RELEASE file itself. --include $(TOP)/../RELEASE.local --include $(TOP)/configure/RELEASE.local - -# top level master release and local private options -include $(TOP)/../../../configure/MASTER_RELEASE --include $(TOP)/../../../configure/MASTER_RELEASE.$(EPICS_HOST_ARCH) --include $(TOP)/../../../configure/MASTER_RELEASE.private --include $(TOP)/../../../configure/MASTER_RELEASE.private.$(EPICS_HOST_ARCH) - -# optional extra local definitions here --include $(TOP)/configure/RELEASE.private - -include $(TOP)/../../../ISIS_CONFIG --include $(TOP)/../../../ISIS_CONFIG.$(EPICS_HOST_ARCH) - diff --git a/LAKESHORE460/configure/RULES b/LAKESHORE460/configure/RULES deleted file mode 100644 index 6d56e14e8..000000000 --- a/LAKESHORE460/configure/RULES +++ /dev/null @@ -1,6 +0,0 @@ -# RULES - -include $(CONFIG)/RULES - -# Library should be rebuilt because LIBOBJS may have changed. -$(LIBNAME): ../Makefile diff --git a/LAKESHORE460/configure/RULES.ioc b/LAKESHORE460/configure/RULES.ioc deleted file mode 100644 index 901987c6c..000000000 --- a/LAKESHORE460/configure/RULES.ioc +++ /dev/null @@ -1,2 +0,0 @@ -#RULES.ioc -include $(CONFIG)/RULES.ioc diff --git a/LAKESHORE460/configure/RULES_DIRS b/LAKESHORE460/configure/RULES_DIRS deleted file mode 100644 index 3ba269dcc..000000000 --- a/LAKESHORE460/configure/RULES_DIRS +++ /dev/null @@ -1,2 +0,0 @@ -#RULES_DIRS -include $(CONFIG)/RULES_DIRS diff --git a/LAKESHORE460/configure/RULES_TOP b/LAKESHORE460/configure/RULES_TOP deleted file mode 100644 index d09d668d5..000000000 --- a/LAKESHORE460/configure/RULES_TOP +++ /dev/null @@ -1,3 +0,0 @@ -#RULES_TOP -include $(CONFIG)/RULES_TOP - diff --git a/LAKESHORE460/iocBoot/Makefile b/LAKESHORE460/iocBoot/Makefile deleted file mode 100644 index 91e47d0b5..000000000 --- a/LAKESHORE460/iocBoot/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -TOP = .. -include $(TOP)/configure/CONFIG -DIRS += $(wildcard *ioc*) -DIRS += $(wildcard as*) -include $(CONFIG)/RULES_DIRS - diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/Makefile b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/Makefile deleted file mode 100644 index 09b391227..000000000 --- a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -TOP = ../.. -include $(TOP)/configure/CONFIG -#ARCH = windows-x64 -ARCH = $(EPICS_HOST_ARCH) -TARGETS = envPaths dllPath.bat relPaths.sh runIOC.bat runIOC.sh -include $(TOP)/configure/RULES.ioc diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd deleted file mode 100644 index 0524e9989..000000000 --- a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd +++ /dev/null @@ -1,32 +0,0 @@ -epicsEnvSet "STREAM_PROTOCOL_PATH" "$(LKSH460)/Lakeshore_460Sup" - -##ISIS## Run IOC initialisation -< $(IOCSTARTUP)/init.cmd - -# For dev sim devices -$(IFDEVSIM) drvAsynIPPortConfigure("L0", "localhost:$(EMULATOR_PORT=)") - -## For real device use: -$(IFNOTDEVSIM) $(IFNOTRECSIM) drvAsynSerialPortConfigure("L0", "$(PORT=NO_PORT_MACRO)", 0, 0, 0, 0) -$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "baud", "$(BAUD=9600)") -$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "bits", "$(BITS=7)") -$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "parity", "$(PARITY=even)") -$(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "stop", "$(STOP=1)") - -##ISIS## Load common DB records -< $(IOCSTARTUP)/dbload.cmd - -## Load our record instances -dbLoadRecords("db/lakeshore460.db","P=$(MYPVPREFIX)$(IOCNAME):, PORT=L0, RECSIM=$(RECSIM=0), DISABLE=$(DISABLE=0)") - -##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called -< $(IOCSTARTUP)/preiocinit.cmd - -cd "${TOP}/iocBoot/${IOC}" -iocInit - -## Start any sequence programs -#seq sncxxx,"user=hgv27692Host" - -##ISIS## Stuff that needs to be done after iocInit is called e.g. sequence programs -< $(IOCSTARTUP)/postiocinit.cmd diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st.cmd b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st.cmd deleted file mode 100644 index 49f356976..000000000 --- a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-01/st.cmd +++ /dev/null @@ -1,13 +0,0 @@ -#!../../bin/windows-x64/LAKESHORE460-IOC-01 - -## You may have to change LAKESHORE460 to something else -## everywhere it appears in this file - -< envPaths - -## Register all support components -dbLoadDatabase "${TOP}/dbd/LAKESHORE460-IOC-01.dbd" -AMINT2L_IOC_01_registerRecordDeviceDriver pdbbase - -## calling common command file in ioc 01 boot dir -< ${TOP}/iocBoot/iocLAKESHORE460-IOC-01/st-common.cmd diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/Makefile b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/Makefile deleted file mode 100644 index 09b391227..000000000 --- a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -TOP = ../.. -include $(TOP)/configure/CONFIG -#ARCH = windows-x64 -ARCH = $(EPICS_HOST_ARCH) -TARGETS = envPaths dllPath.bat relPaths.sh runIOC.bat runIOC.sh -include $(TOP)/configure/RULES.ioc diff --git a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/st.cmd b/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/st.cmd deleted file mode 100644 index 7e784aee5..000000000 --- a/LAKESHORE460/iocBoot/iocLAKESHORE460-IOC-02/st.cmd +++ /dev/null @@ -1,38 +0,0 @@ -#!../../bin/windows-x64/LAKESHORE460-IOC-02 - -## You may have to change LAKESHORE460-IOC-02 to something else -## everywhere it appears in this file - -# Increase this if you get <> or discarded messages warnings in your errlog output -errlogInit2(65536, 256) - -< envPaths - -cd "${TOP}" - -## Register all support components -dbLoadDatabase "dbd/LAKESHORE460-IOC-02.dbd" -LAKESHORE460_IOC_02_registerRecordDeviceDriver pdbbase - -##ISIS## Run IOC initialisation -< $(IOCSTARTUP)/init.cmd - -## Load record instances - -##ISIS## Load common DB records -< $(IOCSTARTUP)/dbload.cmd - -## Load our record instances -#dbLoadRecords("db/xxx.db","user=zyz29835") - -##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called -< $(IOCSTARTUP)/preiocinit.cmd - -cd "${TOP}/iocBoot/${IOC}" -iocInit - -## Start any sequence programs -#seq sncxxx,"user=zyz29835" - -##ISIS## Stuff that needs to be done after iocInit is called e.g. sequence programs -< $(IOCSTARTUP)/postiocinit.cmd diff --git a/Makefile b/Makefile index d3f368a52..5b2f2ef02 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ endif IOCDIRS = AG33220A AG3631A AG53220A CCD100 CONEXAGP CONTROLSVCS CRYVALVE DELFTARDUSTEP DELFTBPMAG DELFTDCMAG DELFTSHEAR DFKPS ECLAB EUROTHRM FINS GALIL IOCDIRS += HAMEG8123 HIFIMAG HVCAEN INHIBITR INSTETC INSTRON ISISDAE JULABO KHLY2400 KEPCO LINKAM95 LINMOT LKSH218 LKSH336 MCLEN MERCURY_ITC MK2CHOPR MK3CHOPR NANODAC NEOCERA PDR2000 PIMOT PSCTRL IOCDIRS += RUNCTRL SCIMAG3D SDTEST SKFCHOPPER SMC100 SPINFLIPPER306015 STPS350 STSR400 TDK_LAMBDA_GENESYS TEKAFG3XXX TEKDMM40X0 TEKMSO4104B TEST TPG26x TPG300 TTIEX355P BKHOFF -IOCDIRS += ROTSC AMINT2L SPRLG +IOCDIRS += ROTSC AMINT2L SPRLG LKSH460 KHLY2700 ## check on missing directories IOCMAKES = $(wildcard */Makefile) From 86ba3a01ea9e5acd67818a1db6648fef99c50ff4 Mon Sep 17 00:00:00 2001 From: Attah Date: Wed, 16 Aug 2017 11:56:45 +0100 Subject: [PATCH 4/7] LAKESHOPRE 460 DB FILE --- LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db | 768 +++++++++++++----- LKSH460/LKSH460-IOC-01App/src/build.mak | 3 +- .../iocBoot/iocLKSH460-IOC-01/st-common.cmd | 2 +- LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd | 33 +- 4 files changed, 588 insertions(+), 218 deletions(-) diff --git a/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db index ef41d17ef..13db0ded4 100644 --- a/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db +++ b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db @@ -1,269 +1,354 @@ -record(stringin, "$(P)$(R)IDN") +record(bo, "$(P)SIM") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") + field(ZNAM, "NO") + field(ONAM, "YES") + field(VAL, "$(RECSIM=0)") +} + +record(bo, "$(P)DISABLE") +{ + field(DESC, "Disable comms") + field(PINI, "YES") + field(VAL, "$(DISABLE=0)") + field(OMSL, "supervisory") + field(ZNAM, "COMMS ENABLED") + field(ONAM, "COMMS DISABLED") +} + +record(stringin, "$(P)IDN") { field(DESC, "SCPI identification string") field(DTYP, "stream") field(INP, "@devLakeshore_460.proto getIDN $(PORT)") field(PINI, "YES") - # field(SIML, "$(P)SIM") - # field(SIOL, "$(P)SIM:IDN") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:IDN") field(SDIS, "$(P)DISABLE") } record(bi, "$(P)UNIT") { - field(DESC, "UNIT") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@devLakeshore_460.proto getUnit $(PORT)") - field(PREC, "3") field(ZNAM, "G") field(ONAM, "T") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:UNIT") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:UNIT") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } record(bo, "$(P)UNIT:SP") { - field(DESC, "Set Unit") field(SCAN, "Passive") field(DTYP, "stream") field(OUT, "@devLakeshore_460.proto setUnit $(PORT)") field(ZNAM, "G") - field(ZNAM, "T") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:CURRENT:SP") + field(ONAM, "T") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:UNIT:SP") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(ai, "$(P)SOURCE") +record(bi, "$(P)OUTPUTSTATUS") { - field(DESC, "Vector Magnitude Source") field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getSource $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") + field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(ao, "$(P)SOURCE:SP") +record(bo, "$(P)OUTPUTSTATUS:SP") { - field(DESC, "Set Vector Magnitude Source") field(SCAN, "Passive") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setSource $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE:SP") + field(OUT, "@devLakeshore_460.proto setOnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS:SP") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(stringin, "$(P)CHANNEL") +record(bi, "$(P)OUTPUTSTATUS") { - field(DESC, "Channel") field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getChannel $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") + field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(stringout, "$(P)CHANNEL:SP") +record(bo, "$(P)OUTPUTSTATUS:SP") { - field(DESC, "Set Channel") field(SCAN, "Passive") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setSource $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE:SP") + field(OUT, "@devLakeshore_460.proto setOnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTSTATUS:SP") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(stringin, "$(P)RST") +record(bi, "$(P)OUTPUTMODE") { + field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto Reset $(PORT)") - field(PINI, "$(RESET=NO)") - #field(SIML, "$(P)SIM") - # field(SIOL, "$(P)SIM:RST") + field(INP, "@devLakeshore_460.proto getACDCFieldReading $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE") field(SDIS, "$(P)DISABLE") -} +} -record(ai, "$(P)FIELD") +record(bo, "$(P)OUTPUTMODE:SP") { - field(DESC, "Returns the X axis reading, the Y axis, the Z axis, then the Vector Magnitude.") - field(SCAN, "1 second") + field(SCAN, "Passive") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getAllFields $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") + field(OUT, "@devLakeshore_460.proto setACDCFieldReading $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:OUTPUTMODE:SP") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(ai, "$(P)MULTIPLIER") +record(bi, "$(P)PRMS") { - field(DESC, "Magnetic Field Reading Multiplier") + field(DESC, "Get Peak/RMS Field Reading") field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getFieldMultiplier $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") + field(INP, "@devLakeshore_460.proto getPRMSReading $(PORT)") + field(ZNAM, "RMS") + field(ONAM, "PEAK") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:PRMS") + field(SDIS, "$(P)DISABLE") +} + +record(bo, "$(P)PRMS:SP") +{ + field(DESC, "Set Peak/RMS Field Reading") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setPRMSReading $(PORT)") + field(ZNAM, "RMS") + field(ONAM, "PEAK") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:PRMS:SP") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(bi, "$(P)OUTPUTSTATUS") +record(bi, "$(P)FILTER") { field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") + field(INP, "@devLakeshore_460.proto getDisplayFilter $(PORT)") field(ZNAM, "OFF") field(ONAM, "ON") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS") + field(SIOL, "$(P)SIM:FILTER") field(SDIS, "$(P)DISABLE") } -record(bo, "$(P)OUTPUTSTATUS:SP") +record(bo, "$(P)FILTER:SP") { field(SCAN, "Passive") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setOnOff $(PORT)") + field(OUT, "@devLakeshore_460.proto setDisplayFilter $(PORT)") field(ZNAM, "OFF") field(ONAM, "ON") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS:SP") + field(SIOL, "$(P)SIM:FILTER:SP") field(SDIS, "$(P)DISABLE") } -record(bi, "$(P)OUTPUTSTATUS") +record(bi, "$(P)RELMODE") { field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") + field(INP, "@devLakeshore_460.proto getRelativeMode $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS") + field(SIOL, "$(P)SIM:RELMODE") field(SDIS, "$(P)DISABLE") +} -record(bi, "$(P)OUTPUTMODE") -{ - field(DESC, "Magnetic Field Reading Measurement") - field(SCAN, "1 second") +record(bo, "$(P)RELMODE:SP") +{ + field(SCAN, "Passive") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getACDC $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") + field(OUT, "@devLakeshore_460.proto setRelativeMode $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SIOL, "$(P)SIM:RELMODE:SP") field(SDIS, "$(P)DISABLE") } -record(bo, "$(P)OUTPUTMODE:SP") +record(ai, "$(P)RELSMODE") { - field(DESC, "Set Magnetic Field Reading Measurement") - field(SCAN, "Passive") + field(DESC, "Relative Mode Setpoint") + field(SCAN, "1 second") field(DTYP, "stream") - field(OUT, "@kepco.proto setACDC $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") + field(EGU, "") + field(INP, "@devLakeshore_460.proto ReadRelativeModeSetpoint $(PORT)") + field(FLNK, "$(P)RELS:UNIT_MULTIPLIER") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SIOL, "$(P)SIM:RELSMODE") field(SDIS, "$(P)DISABLE") } -record(ai, "$(P)PRMS") +record(ao, "$(P)RELSMODE:SP") { - field(DESC, "Peak/RMS Field Reading") + field(DESC, "Relative Mode Setpoint") field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getPRMSReading $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") + field(OUT, "@devLakeshore_460.proto SetRelativeModeSetpoint $(PORT)") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:RELSMODE:SP") + field(SDIS, "$(P)DISABLE") +} + +record(mbbi, "$(P)RELS:MULTIPLIER") + { + field(DESC, "Multiplier for Relative Mode RELSM?") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto ReadRelativeModeSetpointMultiplier $(PORT)") + field(ZRST, "u") + field(ONST, "m") + field(TWST, "") + field(THST, "k") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:RELS:MULTIPLIER") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(ao, "$(P)PRMS:SP") +record(scalcout, "$(P)RELS:UNIT_MULTIPLIER") +{ field(DESC, "Units and Multiplier Concatenation") + field(CALC, "BB + AA") + field(INAA, "$(P)UNIT") + field(INBB, "$(P)RELS:MULTIPLIER") + field(OUT, "$(P)RELSMODE.EGU") +} + +record(ai, "$(P)RELMODEREADING") { - field(DESC, "Set Peak/RMS Field Reading") - field(SCAN, "Passive") + field(DESC, "Relative Mode Reading") + field(SCAN, "1 second") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setPRMSReading $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE:SP") + field(EGU, "") + field(INP, "@devLakeshore_460.proto getRelativeModeReading $(PORT)") + field(FLNK, "$(P)RELRM:UNIT_MULTIPLIER") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:RELMODEREADING") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(bi, "$(P)FILTER") -{ - field(DESC, "Display Filter") +record(mbbi, "$(P)RELRM:MULTIPLIER") +{ + field(DESC, "Multiplier for Relative Mode RELRM?") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getRelativeModeReadingMultiplier $(PORT)") + field(ZRST, "u") + field(ONST, "m") + field(TWST, "") + field(THST, "k") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:RELRM:MULTIPLIER") + field(SDIS, "$(P)DISABLE") +} + +record(scalcout, "$(P)RELRM:UNIT_MULTIPLIER") +{ field(DESC, "Units and Multiplier Concatenation") + field(CALC, "BB + AA") + field(INAA, "$(P)UNIT") + field(INBB, "$(P)RELRM:MULTIPLIER") + field(OUT, "$(P)RELMODEREADING.EGU") +} + +record(ai, "$(P)FIELDREADING") +{ + field(DESC, "Magnetic Field Reading") field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getACDC $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") + field(EGU, "") + field(INP, "@devLakeshore_460.proto getMagneticFieldReading $(PORT)") + field(FLNK, "$(P)FIELD:UNIT_MULTIPLIER") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SIOL, "$(P)SIM:FIELDREADING") field(SDIS, "$(P)DISABLE") } -record(bo, "$(P)FILTER:SP") +record(mbbi, "$(P)FIELD:MULTIPLIER") { - field(DESC, "Set Display Filter ") - field(SCAN, "Passive") + field(DESC, "Multiplier for Magnetic Field FIELDM?") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getMagneticFieldMultiplier $(PORT)") + field(ZRST, "u") + field(ONST, "m") + field(TWST, "") + field(THST, "k") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:FIELD:MULTIPLIER") + field(SDIS, "$(P)DISABLE") +} + +record(scalcout, "$(P)FIELD:UNIT_MULTIPLIER") +{ field(DESC, "Units and Multiplier Concatenation") + field(CALC, "BB + AA") + field(INAA, "$(P)UNIT") + field(INBB, "$(P)FIELD:MULTIPLIER") + field(OUT, "$(P)FIELDREADING.EGU") +} +record(bi, "$(P)MAXHOLD") +{ + field(DESC, "Max Hold") + field(SCAN, "1 second") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setDisplayFilter $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") + field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SIOL, "$(P)SIM:MAXHOLD") field(SDIS, "$(P)DISABLE") } -record(ai, "$(P)MAXREADINGMULTI") +record(bo, "$(P)MAXHOLD:SP") { - field(DESC, "Max Reading Multiplier") - field(SCAN, "1 second") + field(DESC, "Set Max Hold") + field(SCAN, "Passive") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getMaxReadingMultiplier $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE") + field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:MAXHOLD:SP") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } record(bi, "$(P)AUTO") -{ - field(DESC, "Auto Range") +{ + field(DESC, "Auto Range") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@devLakeshore_460.proto getAutoRange $(PORT)") - field(ZNAM, "Auto Range Off") - field(ONAM, "Auto Range On") + field(ZNAM, "Auto Range OFF") + field(ONAM, "Auto Range ON") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SIOL, "$(P)SIM:AUTO") field(SDIS, "$(P)DISABLE") } @@ -272,102 +357,411 @@ record(bo, "$(P)AUTO:SP") field(DESC, "Set Auto Range") field(SCAN, "Passive") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setAutoRange $(PORT)") - field(ZNAM, "Auto Range Off") - field(ONAM, "Auto Range On") + field(OUT, "@devLakeshore_460.proto setAutoRange $(PORT)") + field(ZNAM, "Auto Range OFF") + field(ONAM, "Auto Range ON") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SIOL, "$(P)SIM:AUTO:SP") field(SDIS, "$(P)DISABLE") } -record(bi, "$(P)RELATIVEMODE") -{ - field(DESC, "Relative Mode") +record(ai, "$(P)ALLFIELDS") +{ + field(DESC, "All Fields") field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") + field(INP, "@devLakeshore_460.proto getAllFields $(PORT)") + field(PREC, "3") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SIOL, "$(P)SIM:ALLFIELDS") field(SDIS, "$(P)DISABLE") } -record(bo, "$(P)MAXHOLD:SP") +record(mbbi, "$(P)SOURCE") { - field(DESC, "Set Max Hold") - field(SCAN, "Passive") + field(DESC, "Vector Magnitude Source") + field(SCAN, "1 second") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") + field(INP, "@devLakeshore_460.proto getSource $(PORT)") + field(ONST, "XYZ") + field(TWST, "XY") + field(THST, "XZ") + field(FRST, "YZ") + field(FVST, "X-Y") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SIOL, "$(P)SIM:SOURCE") field(SDIS, "$(P)DISABLE") } -record(bi, "$(P)MAXHOLD") -{ - field(DESC, "Max Hold") +record(mbbo, "$(P)RANGE:SP") +{ + field(DESC, "Set Manual Range") field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") + field(OUT, "@devLakeshore_460.proto setManualRange $(PORT)") + field(ZRST, "First Range") + field(ONST, "Second Range") + field(TWST, "Third Range") + field(THST, "Fourth Range") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SIOL, "$(P)SIM:RANGE:SP") field(SDIS, "$(P)DISABLE") } -record(bo, "$(P)MAXHOLD:SP") +record(mbbi, "$(P)RANGE") { - field(DESC, "Set Max Hold") - field(SCAN, "Passive") + field(DESC, "Manual Range") + field(SCAN, "1 second") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") + field(INP, "@devLakeshore_460.proto getManualRange $(PORT)") + field(ZRST, "First Range") + field(ONST, "Second Range") + field(TWST, "Third Range") + field(THST, "Fourth Range") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SIOL, "$(P)SIM:RANGE") field(SDIS, "$(P)DISABLE") } +record(mbbo, "$(P)SOURCE:SP") +{ + field(DESC, "Set Vector Magnitude Source") + field(SCAN, "1 second") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setSource $(PORT)") + field(ONST, "XYZ") + field(TWST, "XY") + field(THST, "XZ") + field(FRST, "YZ") + field(FVST, "X-Y") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:SOURCE:SP") + field(SDIS, "$(P)DISABLE") +} -record(ao, "$(P)MAXC:SP") +record(mbbi, "$(P)SOURCE") { - field(DESC, "Max Clear") - field(SCAN, "Passive") + field(DESC, "Vector Magnitude Source") + field(SCAN, "1 second") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setMaxClear $(PORT)") - #field(SIML, "$(P)SIM") - #field(SIOL, "$(P)SIM:SOURCE:SP") + field(INP, "@devLakeshore_460.proto getSource $(PORT)") + field(ONST, "XYZ") + field(TWST, "XY") + field(THST, "XZ") + field(FRST, "YZ") + field(FVST, "X-Y") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:SOURCE") field(SDIS, "$(P)DISABLE") - #info(INTEREST, "HIGH") - #info(archive, "VAL") } -record(bi, "$(P)RELMODE") -{ - field(DESC, "Relative Mode") +record(mbbo, "$(P)SOURCE:SP") +{ + field(DESC, "Set Vector Magnitude Source") field(SCAN, "1 second") field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getRelativeMode $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") + field(OUT, "@devLakeshore_460.proto setSource $(PORT)") + field(ONST, "XYZ") + field(TWST, "XY") + field(THST, "XZ") + field(FRST, "YZ") + field(FVST, "X-Y") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") + field(SIOL, "$(P)SIM:SOURCE:SP") field(SDIS, "$(P)DISABLE") } -record(bo, "$(P)RELMODE:SP") +record(mbbi, "$(P)CHANNEL") { - field(DESC, "Set Relatve Mode") - field(SCAN, "Passive") + field(DESC, "Get Channel") + field(SCAN, "1 second") field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setRelativeMode $(PORT)") - field(ZNAM, "Off") - field(ONAM, "On") + field(INP, "@devLakeshore_460.proto getChannel $(PORT)") + field(ONST, "Channel X") + field(TWST, "Channel Y") + field(THST, "Channel Z") + field(FRST, "Vector Magnitude Channel") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") + field(SIOL, "$(P)SIM:CHANNEL") + field(SDIS, "$(P)DISABLE") +} + +record(mbbo, "$(P)CHANNEL:SP") +{ + field(DESC, "Set Channel") + field(SCAN, "1 second") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setChannel $(PORT)") + field(ONST, "Channel X") + field(TWST, "Channel Y") + field(THST, "Channel Z") + field(FRST, "Vector Magnitude Channel") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:CHANNEL:SP") field(SDIS, "$(P)DISABLE") -} \ No newline at end of file +} + +record(mbbi, "$(P)MAX:MULTIPLIER") +{ + field(DESC, "Max Reading Multiplier") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto ReadMaxReadingMultiplier $(PORT)") + field(ZRST, "u") + field(ONST, "m") + field(TWST, "") + field(THST, "k") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:MAX:MULTIPLIER") + field(SDIS, "$(P)DISABLE") +} + +record(ai, "$(P)MAXREADING") +{ + field(DESC, "Max Reading") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto ReadMaxReading $(PORT)") + field(EGU, "") + field(FLNK, "$(P)MAX:UNITS_MULTIPLIER") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:MAXREADING") + field(SDIS, "$(P)DISABLE") +} + +record(scalcout, "$(P)MAX:UNITS_MULTIPLIER") +{ field(DESC, "Units and Multiplier Concatenation") + field(CALC, "BB + AA") + field(INAA, "$(P)UNIT") + field(INBB, "$(P)MAX:MULTIPLIER") + field(OUT, "$(P)MAXREADING.EGU") +} + +record(ai, "$(P)FWIN") +{ + field(DESC, "Display Filter Window") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getDisplayFilterWindow $(PORT)") + field(HIHI, "11") + field(LOLO, "0") + field(HHSV,"MAJOR") + field(LLSV,"MAJOR") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:FWIN") + field(SDIS, "$(P)DISABLE") +} + +record(ao, "$(P)FWIN:SP") +{ + field(DESC, "Set Display Filter Points") + field(SCAN, "1 second") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setDisplayFilterWindow $(PORT)") + field(HIHI, "11") + field(LOLO, "0") + field(HHSV,"MAJOR") + field(LLSV,"MAJOR") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:FWIN:SP") + field(SDIS, "$(P)DISABLE") +} + +record(ai, "$(P)FNUM") +{ + field(DESC, "Display Filter Window") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getFilterPoints $(PORT)") + field(HIHI, "65") + field(LOLO, "1") + field(HHSV,"MAJOR") + field(LLSV,"MAJOR") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:FNUM") + field(SDIS, "$(P)DISABLE") +} + +record(ao, "$(P)FNUM:SP") +{ + field(DESC, "Set Display Filter Window") + field(SCAN, "1 second") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto setFilterPoints $(PORT)") + field(HIHI, "65") + field(LOLO, "1") + field(HHSV,"MAJOR") + field(LLSV,"MAJOR") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:FNUM:SP") + field(SDIS, "$(P)DISABLE") +} + + +### SIMULATION RECORDS ### + +record(ai, "$(P)SIM:FWIN") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:FWIN","$(P)SIM:FWIN:SP") + +record(bi, "$(P)SIM:AUTO") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:AUTO","$(P)SIM:AUTO:SP") + +record(bi, "$(P)SIM:OUTPUTMODE") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:OUTPUTMODE","$(P)SIM:OUTPUTMODE:SP") + +record(mbbi, "$(P)SIM:MAX:MULTIPLIER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(ai, "$(P)SIM:MAXREADING") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(ai, "$(P)SIM:FIELDREADING") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(mbbi, "$(P)SIM:RANGE") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:RANGE","$(P)SIM:RANGE:SP") + +record(mbbi, "$(P)SIM:RELS:MULTIPLIER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(bi, "$(P)SIM:PRMS") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:PRMS","$(P)SIM:PRMS:SP") + +record(bi, "$(P)SIM:OUTPUTSTATUS") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:OUTPUTSTATUS","$(P)SIM:OUTPUTSTATUS:SP") + +record(bi, "$(P)SIM:FILTER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:FILTER","$(P)SIM:FILTER:SP") + +record(ai, "$(P)SIM:FNUM") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:FNUM","$(P)SIM:FNUM:SP") + +record(bi, "$(P)SIM:UNIT") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:UNIT","$(P)SIM:UNIT:SP") + +record(ai, "$(P)SIM:RELMODEREADING") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(ai, "$(P)SIM:RELSMODE") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:RELSMODE","$(P)SIM:RELSMODE:SP") + +record(mbbi, "$(P)SIM:CHANNEL") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:CHANNEL","$(P)SIM:CHANNEL:SP") + +record(ai, "$(P)SIM:ALLFIELDS") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(bi, "$(P)SIM:MAXHOLD") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:MAXHOLD","$(P)SIM:MAXHOLD:SP") + +record(mbbi, "$(P)SIM:RELRM:MULTIPLIER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(mbbi, "$(P)SIM:FIELD:MULTIPLIER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(stringin, "$(P)SIM:IDN") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(mbbi, "$(P)SIM:SOURCE") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:SOURCE","$(P)SIM:SOURCE:SP") + +record(bi, "$(P)SIM:RELMODE") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)SIM:RELMODE","$(P)SIM:RELMODE:SP") + diff --git a/LKSH460/LKSH460-IOC-01App/src/build.mak b/LKSH460/LKSH460-IOC-01App/src/build.mak index fbab3b1de..7fcc283b3 100644 --- a/LKSH460/LKSH460-IOC-01App/src/build.mak +++ b/LKSH460/LKSH460-IOC-01App/src/build.mak @@ -30,7 +30,7 @@ $(APPNAME)_DBD += stream.dbd $(APPNAME)_DBD += asyn.dbd $(APPNAME)_DBD += drvAsynSerialPort.dbd $(APPNAME)_DBD += drvAsynIPPort.dbd - +$(APPNAME)_DBD += calcSupport.dbd # Add all the support libraries needed by this IOC ## ISIS standard libraries ## $(APPNAME)_LIBS += seqDev seq pv @@ -44,6 +44,7 @@ $(APPNAME)_LIBS += utilities pcre libjson zlib $(APPNAME)_LIBS += stream $(APPNAME)_LIBS += pcre $(APPNAME)_LIBS += asyn +$(APPNAME)_LIBS += calc sscan # LKSH460-IOC-01_registerRecordDeviceDriver.cpp derives from LKSH460-IOC-01.dbd $(APPNAME)_SRCS += $(APPNAME)_registerRecordDeviceDriver.cpp diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd b/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd index 0524e9989..0549c12f4 100644 --- a/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd +++ b/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd @@ -17,7 +17,7 @@ $(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "stop", "$(STOP=1)") < $(IOCSTARTUP)/dbload.cmd ## Load our record instances -dbLoadRecords("db/lakeshore460.db","P=$(MYPVPREFIX)$(IOCNAME):, PORT=L0, RECSIM=$(RECSIM=0), DISABLE=$(DISABLE=0)") +dbLoadRecords("${TOP}/db/lakeshore460.db","P=$(MYPVPREFIX)$(IOCNAME):, PORT=L0, RECSIM=$(RECSIM=0), DISABLE=$(DISABLE=0)") ##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called < $(IOCSTARTUP)/preiocinit.cmd diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd b/LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd index 6e3d1454b..6472360bb 100644 --- a/LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd +++ b/LKSH460/iocBoot/iocLKSH460-IOC-02/st.cmd @@ -1,38 +1,13 @@ #!../../bin/windows-x64/LKSH460-IOC-02 -## You may have to change LKSH460-IOC-02 to something else +## You may have to change LKSH460 to something else ## everywhere it appears in this file -# Increase this if you get <> or discarded messages warnings in your errlog output -errlogInit2(65536, 256) - < envPaths -cd "${TOP}" - ## Register all support components -dbLoadDatabase "dbd/LKSH460-IOC-02.dbd" +dbLoadDatabase "${TOP}/dbd/LKSH460-IOC-02.dbd" LKSH460_IOC_02_registerRecordDeviceDriver pdbbase -##ISIS## Run IOC initialisation -< $(IOCSTARTUP)/init.cmd - -## Load record instances - -##ISIS## Load common DB records -< $(IOCSTARTUP)/dbload.cmd - -## Load our record instances -#dbLoadRecords("db/xxx.db","user=zyz29835") - -##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called -< $(IOCSTARTUP)/preiocinit.cmd - -cd "${TOP}/iocBoot/${IOC}" -iocInit - -## Start any sequence programs -#seq sncxxx,"user=zyz29835" - -##ISIS## Stuff that needs to be done after iocInit is called e.g. sequence programs -< $(IOCSTARTUP)/postiocinit.cmd +## calling common command file in ioc 01 boot dir +< ${TOP}/iocBoot/iocLKSH460-IOC-01/st-common.cmd From 0dd9f0f9a8b01822713ead25e0979a03d965bed6 Mon Sep 17 00:00:00 2001 From: Attah Date: Wed, 16 Aug 2017 16:03:20 +0100 Subject: [PATCH 5/7] review changes --- LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db | 142 +++++++++++-------- LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd | 2 + 2 files changed, 82 insertions(+), 62 deletions(-) diff --git a/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db index 13db0ded4..dca79974a 100644 --- a/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db +++ b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db @@ -38,6 +38,8 @@ record(bi, "$(P)UNIT") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:UNIT") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bo, "$(P)UNIT:SP") @@ -50,6 +52,8 @@ record(bo, "$(P)UNIT:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:UNIT:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bi, "$(P)OUTPUTSTATUS") @@ -62,6 +66,8 @@ record(bi, "$(P)OUTPUTSTATUS") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:OUTPUTSTATUS") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bo, "$(P)OUTPUTSTATUS:SP") @@ -74,30 +80,8 @@ record(bo, "$(P)OUTPUTSTATUS:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:OUTPUTSTATUS:SP") field(SDIS, "$(P)DISABLE") -} - -record(bi, "$(P)OUTPUTSTATUS") -{ - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS") - field(SDIS, "$(P)DISABLE") -} - -record(bo, "$(P)OUTPUTSTATUS:SP") -{ - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setOnOff $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS:SP") - field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bi, "$(P)OUTPUTMODE") @@ -110,6 +94,8 @@ record(bi, "$(P)OUTPUTMODE") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:OUTPUTMODE") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bo, "$(P)OUTPUTMODE:SP") @@ -122,6 +108,8 @@ record(bo, "$(P)OUTPUTMODE:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:OUTPUTMODE:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bi, "$(P)PRMS") @@ -135,6 +123,8 @@ record(bi, "$(P)PRMS") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:PRMS") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bo, "$(P)PRMS:SP") @@ -148,6 +138,8 @@ record(bo, "$(P)PRMS:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:PRMS:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bi, "$(P)FILTER") @@ -160,6 +152,8 @@ record(bi, "$(P)FILTER") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:FILTER") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bo, "$(P)FILTER:SP") @@ -172,6 +166,8 @@ record(bo, "$(P)FILTER:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:FILTER:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bi, "$(P)RELMODE") @@ -184,6 +180,8 @@ record(bi, "$(P)RELMODE") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:RELMODE") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bo, "$(P)RELMODE:SP") @@ -196,6 +194,8 @@ record(bo, "$(P)RELMODE:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:RELMODE:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(ai, "$(P)RELSMODE") @@ -209,6 +209,8 @@ record(ai, "$(P)RELSMODE") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:RELSMODE") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(ao, "$(P)RELSMODE:SP") @@ -220,6 +222,8 @@ record(ao, "$(P)RELSMODE:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:RELSMODE:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbi, "$(P)RELS:MULTIPLIER") @@ -231,9 +235,10 @@ record(mbbi, "$(P)RELS:MULTIPLIER") field(ONST, "m") field(TWST, "") field(THST, "k") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RELS:MULTIPLIER") - field(SDIS, "$(P)DISABLE") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:RELS:MULTIPLIER") + field(SDIS, "$(P)DISABLE") + info(INTEREST, "LOW") } record(scalcout, "$(P)RELS:UNIT_MULTIPLIER") @@ -242,6 +247,8 @@ record(scalcout, "$(P)RELS:UNIT_MULTIPLIER") field(INAA, "$(P)UNIT") field(INBB, "$(P)RELS:MULTIPLIER") field(OUT, "$(P)RELSMODE.EGU") + info(INTEREST, "LOW") + } record(ai, "$(P)RELMODEREADING") @@ -255,6 +262,8 @@ record(ai, "$(P)RELMODEREADING") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:RELMODEREADING") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbi, "$(P)RELRM:MULTIPLIER") @@ -266,9 +275,11 @@ record(mbbi, "$(P)RELRM:MULTIPLIER") field(ONST, "m") field(TWST, "") field(THST, "k") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RELRM:MULTIPLIER") - field(SDIS, "$(P)DISABLE") + field(SIML, "$(P)SIM") + field(SIOL, "$(P)SIM:RELRM:MULTIPLIER") + field(SDIS, "$(P)DISABLE") + info(INTEREST, "LOW") + } record(scalcout, "$(P)RELRM:UNIT_MULTIPLIER") @@ -277,6 +288,8 @@ record(scalcout, "$(P)RELRM:UNIT_MULTIPLIER") field(INAA, "$(P)UNIT") field(INBB, "$(P)RELRM:MULTIPLIER") field(OUT, "$(P)RELMODEREADING.EGU") + info(INTEREST, "LOW") + } record(ai, "$(P)FIELDREADING") @@ -290,6 +303,8 @@ record(ai, "$(P)FIELDREADING") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:FIELDREADING") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbi, "$(P)FIELD:MULTIPLIER") @@ -304,6 +319,7 @@ record(mbbi, "$(P)FIELD:MULTIPLIER") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:FIELD:MULTIPLIER") field(SDIS, "$(P)DISABLE") + info(INTEREST, "LOW") } record(scalcout, "$(P)FIELD:UNIT_MULTIPLIER") @@ -312,6 +328,7 @@ record(scalcout, "$(P)FIELD:UNIT_MULTIPLIER") field(INAA, "$(P)UNIT") field(INBB, "$(P)FIELD:MULTIPLIER") field(OUT, "$(P)FIELDREADING.EGU") + info(INTEREST, "LOW") } record(bi, "$(P)MAXHOLD") { @@ -324,6 +341,7 @@ record(bi, "$(P)MAXHOLD") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:MAXHOLD") field(SDIS, "$(P)DISABLE") + info(INTEREST, "LOW") } record(bo, "$(P)MAXHOLD:SP") @@ -337,6 +355,7 @@ record(bo, "$(P)MAXHOLD:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:MAXHOLD:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "LOW") } record(bi, "$(P)AUTO") @@ -350,6 +369,8 @@ record(bi, "$(P)AUTO") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:AUTO") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(bo, "$(P)AUTO:SP") @@ -363,6 +384,8 @@ record(bo, "$(P)AUTO:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:AUTO:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(ai, "$(P)ALLFIELDS") @@ -375,6 +398,8 @@ record(ai, "$(P)ALLFIELDS") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:ALLFIELDS") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbi, "$(P)SOURCE") @@ -391,6 +416,8 @@ record(mbbi, "$(P)SOURCE") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:SOURCE") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbo, "$(P)RANGE:SP") @@ -406,6 +433,8 @@ record(mbbo, "$(P)RANGE:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:RANGE:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbi, "$(P)RANGE") @@ -421,6 +450,8 @@ record(mbbi, "$(P)RANGE") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:RANGE") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbo, "$(P)SOURCE:SP") @@ -437,38 +468,8 @@ record(mbbo, "$(P)SOURCE:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:SOURCE:SP") field(SDIS, "$(P)DISABLE") -} - -record(mbbi, "$(P)SOURCE") -{ - field(DESC, "Vector Magnitude Source") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getSource $(PORT)") - field(ONST, "XYZ") - field(TWST, "XY") - field(THST, "XZ") - field(FRST, "YZ") - field(FVST, "X-Y") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:SOURCE") - field(SDIS, "$(P)DISABLE") -} - -record(mbbo, "$(P)SOURCE:SP") -{ - field(DESC, "Set Vector Magnitude Source") - field(SCAN, "1 second") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setSource $(PORT)") - field(ONST, "XYZ") - field(TWST, "XY") - field(THST, "XZ") - field(FRST, "YZ") - field(FVST, "X-Y") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:SOURCE:SP") - field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbi, "$(P)CHANNEL") @@ -484,6 +485,8 @@ record(mbbi, "$(P)CHANNEL") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:CHANNEL") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbo, "$(P)CHANNEL:SP") @@ -499,6 +502,8 @@ record(mbbo, "$(P)CHANNEL:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:CHANNEL:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(mbbi, "$(P)MAX:MULTIPLIER") @@ -513,6 +518,8 @@ record(mbbi, "$(P)MAX:MULTIPLIER") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:MAX:MULTIPLIER") field(SDIS, "$(P)DISABLE") + info(INTEREST, "LOW") + } record(ai, "$(P)MAXREADING") @@ -526,6 +533,8 @@ record(ai, "$(P)MAXREADING") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:MAXREADING") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(scalcout, "$(P)MAX:UNITS_MULTIPLIER") @@ -534,6 +543,7 @@ record(scalcout, "$(P)MAX:UNITS_MULTIPLIER") field(INAA, "$(P)UNIT") field(INBB, "$(P)MAX:MULTIPLIER") field(OUT, "$(P)MAXREADING.EGU") + info(INTEREST, "LOW") } record(ai, "$(P)FWIN") @@ -549,6 +559,8 @@ record(ai, "$(P)FWIN") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:FWIN") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(ao, "$(P)FWIN:SP") @@ -564,6 +576,8 @@ record(ao, "$(P)FWIN:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:FWIN:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(ai, "$(P)FNUM") @@ -579,6 +593,8 @@ record(ai, "$(P)FNUM") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:FNUM") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } record(ao, "$(P)FNUM:SP") @@ -594,6 +610,8 @@ record(ao, "$(P)FNUM:SP") field(SIML, "$(P)SIM") field(SIOL, "$(P)SIM:FNUM:SP") field(SDIS, "$(P)DISABLE") + info(INTEREST, "HIGH") + info(archive, "VAL") } diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd b/LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd index f500ef8a9..e522759b6 100644 --- a/LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd +++ b/LKSH460/iocBoot/iocLKSH460-IOC-01/st.cmd @@ -5,6 +5,8 @@ < envPaths +cd ${TOP} + ## Register all support components dbLoadDatabase "${TOP}/dbd/LKSH460-IOC-01.dbd" LKSH460_IOC_01_registerRecordDeviceDriver pdbbase From 07a2f24e93e45e5193f25c5b5a6f1e7e8672421b Mon Sep 17 00:00:00 2001 From: Attah Date: Fri, 22 Sep 2017 13:09:13 +0100 Subject: [PATCH 6/7] Final Lakeshore commit before review --- LKSH460/LKSH460-IOC-01App/Db/Makefile | 1 + LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db | 728 +----------------- .../Db/lakeshore460_channels.substitutions | 8 + .../Db/lakeshore460_channels.template | 682 ++++++++++++++++ LKSH460/iocBoot/iocLKSH460-IOC-01/config.xml | 9 + .../iocBoot/iocLKSH460-IOC-01/st-common.cmd | 1 + Makefile | 2 +- 7 files changed, 715 insertions(+), 716 deletions(-) create mode 100644 LKSH460/LKSH460-IOC-01App/Db/lakeshore460_channels.substitutions create mode 100644 LKSH460/LKSH460-IOC-01App/Db/lakeshore460_channels.template create mode 100644 LKSH460/iocBoot/iocLKSH460-IOC-01/config.xml diff --git a/LKSH460/LKSH460-IOC-01App/Db/Makefile b/LKSH460/LKSH460-IOC-01App/Db/Makefile index 7def1434d..0cbea6566 100644 --- a/LKSH460/LKSH460-IOC-01App/Db/Makefile +++ b/LKSH460/LKSH460-IOC-01App/Db/Makefile @@ -11,6 +11,7 @@ include $(TOP)/configure/CONFIG # Create and install (or just install) into /db # databases, templates, substitutions like this DB += lakeshore460.db +DB += lakeshore460_channels.db #---------------------------------------------------- # If .db template is not named *.template add diff --git a/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db index dca79974a..12b1f0dc6 100644 --- a/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db +++ b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db @@ -23,383 +23,9 @@ record(stringin, "$(P)IDN") field(DTYP, "stream") field(INP, "@devLakeshore_460.proto getIDN $(PORT)") field(PINI, "YES") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:IDN") - field(SDIS, "$(P)DISABLE") -} - -record(bi, "$(P)UNIT") -{ - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getUnit $(PORT)") - field(ZNAM, "G") - field(ONAM, "T") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:UNIT") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bo, "$(P)UNIT:SP") -{ - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setUnit $(PORT)") - field(ZNAM, "G") - field(ONAM, "T") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:UNIT:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bi, "$(P)OUTPUTSTATUS") -{ - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getOnOff $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bo, "$(P)OUTPUTSTATUS:SP") -{ - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setOnOff $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTSTATUS:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bi, "$(P)OUTPUTMODE") -{ - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getACDCFieldReading $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bo, "$(P)OUTPUTMODE:SP") -{ - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setACDCFieldReading $(PORT)") - field(ZNAM, "AC") - field(ONAM, "DC") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:OUTPUTMODE:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bi, "$(P)PRMS") -{ - field(DESC, "Get Peak/RMS Field Reading") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getPRMSReading $(PORT)") - field(ZNAM, "RMS") - field(ONAM, "PEAK") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:PRMS") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bo, "$(P)PRMS:SP") -{ - field(DESC, "Set Peak/RMS Field Reading") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setPRMSReading $(PORT)") - field(ZNAM, "RMS") - field(ONAM, "PEAK") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:PRMS:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bi, "$(P)FILTER") -{ - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getDisplayFilter $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:FILTER") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bo, "$(P)FILTER:SP") -{ - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setDisplayFilter $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:FILTER:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bi, "$(P)RELMODE") -{ - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getRelativeMode $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RELMODE") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bo, "$(P)RELMODE:SP") -{ - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setRelativeMode $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RELMODE:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(ai, "$(P)RELSMODE") -{ - field(DESC, "Relative Mode Setpoint") - field(SCAN, "1 second") - field(DTYP, "stream") - field(EGU, "") - field(INP, "@devLakeshore_460.proto ReadRelativeModeSetpoint $(PORT)") - field(FLNK, "$(P)RELS:UNIT_MULTIPLIER") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RELSMODE") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(ao, "$(P)RELSMODE:SP") -{ - field(DESC, "Relative Mode Setpoint") - field(SCAN, "1 second") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto SetRelativeModeSetpoint $(PORT)") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RELSMODE:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(mbbi, "$(P)RELS:MULTIPLIER") - { - field(DESC, "Multiplier for Relative Mode RELSM?") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto ReadRelativeModeSetpointMultiplier $(PORT)") - field(ZRST, "u") - field(ONST, "m") - field(TWST, "") - field(THST, "k") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RELS:MULTIPLIER") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "LOW") -} - -record(scalcout, "$(P)RELS:UNIT_MULTIPLIER") -{ field(DESC, "Units and Multiplier Concatenation") - field(CALC, "BB + AA") - field(INAA, "$(P)UNIT") - field(INBB, "$(P)RELS:MULTIPLIER") - field(OUT, "$(P)RELSMODE.EGU") - info(INTEREST, "LOW") - -} - -record(ai, "$(P)RELMODEREADING") -{ - field(DESC, "Relative Mode Reading") - field(SCAN, "1 second") - field(DTYP, "stream") - field(EGU, "") - field(INP, "@devLakeshore_460.proto getRelativeModeReading $(PORT)") - field(FLNK, "$(P)RELRM:UNIT_MULTIPLIER") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RELMODEREADING") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(mbbi, "$(P)RELRM:MULTIPLIER") -{ - field(DESC, "Multiplier for Relative Mode RELRM?") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getRelativeModeReadingMultiplier $(PORT)") - field(ZRST, "u") - field(ONST, "m") - field(TWST, "") - field(THST, "k") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RELRM:MULTIPLIER") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "LOW") - -} - -record(scalcout, "$(P)RELRM:UNIT_MULTIPLIER") -{ field(DESC, "Units and Multiplier Concatenation") - field(CALC, "BB + AA") - field(INAA, "$(P)UNIT") - field(INBB, "$(P)RELRM:MULTIPLIER") - field(OUT, "$(P)RELMODEREADING.EGU") - info(INTEREST, "LOW") - -} - -record(ai, "$(P)FIELDREADING") -{ - field(DESC, "Magnetic Field Reading") - field(SCAN, "1 second") - field(DTYP, "stream") - field(EGU, "") - field(INP, "@devLakeshore_460.proto getMagneticFieldReading $(PORT)") - field(FLNK, "$(P)FIELD:UNIT_MULTIPLIER") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:FIELDREADING") field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(mbbi, "$(P)FIELD:MULTIPLIER") -{ - field(DESC, "Multiplier for Magnetic Field FIELDM?") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getMagneticFieldMultiplier $(PORT)") - field(ZRST, "u") - field(ONST, "m") - field(TWST, "") - field(THST, "k") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:FIELD:MULTIPLIER") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "LOW") -} - -record(scalcout, "$(P)FIELD:UNIT_MULTIPLIER") -{ field(DESC, "Units and Multiplier Concatenation") - field(CALC, "BB + AA") - field(INAA, "$(P)UNIT") - field(INBB, "$(P)FIELD:MULTIPLIER") - field(OUT, "$(P)FIELDREADING.EGU") - info(INTEREST, "LOW") -} -record(bi, "$(P)MAXHOLD") -{ - field(DESC, "Max Hold") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getMaxHold $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:MAXHOLD") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "LOW") -} - -record(bo, "$(P)MAXHOLD:SP") -{ - field(DESC, "Set Max Hold") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setMaxHold $(PORT)") - field(ZNAM, "OFF") - field(ONAM, "ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:MAXHOLD:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "LOW") -} - -record(bi, "$(P)AUTO") -{ - field(DESC, "Auto Range") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getAutoRange $(PORT)") - field(ZNAM, "Auto Range OFF") - field(ONAM, "Auto Range ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:AUTO") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(bo, "$(P)AUTO:SP") -{ - field(DESC, "Set Auto Range") - field(SCAN, "Passive") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setAutoRange $(PORT)") - field(ZNAM, "Auto Range OFF") - field(ONAM, "Auto Range ON") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:AUTO:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(ai, "$(P)ALLFIELDS") -{ - field(DESC, "All Fields") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getAllFields $(PORT)") - field(PREC, "3") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:ALLFIELDS") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") + field(SIOL, "$(P)SIM:IDN") } record(mbbi, "$(P)SOURCE") @@ -408,51 +34,18 @@ record(mbbi, "$(P)SOURCE") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@devLakeshore_460.proto getSource $(PORT)") - field(ONST, "XYZ") - field(TWST, "XY") - field(THST, "XZ") - field(FRST, "YZ") - field(FVST, "X-Y") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:SOURCE") - field(SDIS, "$(P)DISABLE") + field(ZRST, "XYZ") + field(ONST, "XY") + field(TWST, "XZ") + field(THST, "YZ") + field(FRST, "X-Y") info(INTEREST, "HIGH") info(archive, "VAL") -} - -record(mbbo, "$(P)RANGE:SP") -{ - field(DESC, "Set Manual Range") - field(SCAN, "1 second") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setManualRange $(PORT)") - field(ZRST, "First Range") - field(ONST, "Second Range") - field(TWST, "Third Range") - field(THST, "Fourth Range") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RANGE:SP") + field(SIOL, "$(P)SIM:SOURCE") field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") } -record(mbbi, "$(P)RANGE") -{ - field(DESC, "Manual Range") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getManualRange $(PORT)") - field(ZRST, "First Range") - field(ONST, "Second Range") - field(TWST, "Third Range") - field(THST, "Fourth Range") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:RANGE") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} record(mbbo, "$(P)SOURCE:SP") { @@ -460,307 +53,20 @@ record(mbbo, "$(P)SOURCE:SP") field(SCAN, "1 second") field(DTYP, "stream") field(OUT, "@devLakeshore_460.proto setSource $(PORT)") - field(ONST, "XYZ") - field(TWST, "XY") - field(THST, "XZ") - field(FRST, "YZ") - field(FVST, "X-Y") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:SOURCE:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(mbbi, "$(P)CHANNEL") -{ - field(DESC, "Get Channel") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getChannel $(PORT)") - field(ONST, "Channel X") - field(TWST, "Channel Y") - field(THST, "Channel Z") - field(FRST, "Vector Magnitude Channel") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:CHANNEL") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(mbbo, "$(P)CHANNEL:SP") -{ - field(DESC, "Set Channel") - field(SCAN, "1 second") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setChannel $(PORT)") - field(ONST, "Channel X") - field(TWST, "Channel Y") - field(THST, "Channel Z") - field(FRST, "Vector Magnitude Channel") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:CHANNEL:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(mbbi, "$(P)MAX:MULTIPLIER") -{ - field(DESC, "Max Reading Multiplier") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto ReadMaxReadingMultiplier $(PORT)") - field(ZRST, "u") - field(ONST, "m") - field(TWST, "") - field(THST, "k") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:MAX:MULTIPLIER") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "LOW") - -} - -record(ai, "$(P)MAXREADING") -{ - field(DESC, "Max Reading") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto ReadMaxReading $(PORT)") - field(EGU, "") - field(FLNK, "$(P)MAX:UNITS_MULTIPLIER") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:MAXREADING") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(scalcout, "$(P)MAX:UNITS_MULTIPLIER") -{ field(DESC, "Units and Multiplier Concatenation") - field(CALC, "BB + AA") - field(INAA, "$(P)UNIT") - field(INBB, "$(P)MAX:MULTIPLIER") - field(OUT, "$(P)MAXREADING.EGU") - info(INTEREST, "LOW") -} - -record(ai, "$(P)FWIN") -{ - field(DESC, "Display Filter Window") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getDisplayFilterWindow $(PORT)") - field(HIHI, "11") - field(LOLO, "0") - field(HHSV,"MAJOR") - field(LLSV,"MAJOR") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:FWIN") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(ao, "$(P)FWIN:SP") -{ - field(DESC, "Set Display Filter Points") - field(SCAN, "1 second") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setDisplayFilterWindow $(PORT)") - field(HIHI, "11") - field(LOLO, "0") - field(HHSV,"MAJOR") - field(LLSV,"MAJOR") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:FWIN:SP") - field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") -} - -record(ai, "$(P)FNUM") -{ - field(DESC, "Display Filter Window") - field(SCAN, "1 second") - field(DTYP, "stream") - field(INP, "@devLakeshore_460.proto getFilterPoints $(PORT)") - field(HIHI, "65") - field(LOLO, "1") - field(HHSV,"MAJOR") - field(LLSV,"MAJOR") - field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:FNUM") - field(SDIS, "$(P)DISABLE") + field(ZRST, "XYZ") + field(ONST, "XY") + field(TWST, "XZ") + field(THST, "YZ") + field(FRST, "X-Y") info(INTEREST, "HIGH") info(archive, "VAL") -} - -record(ao, "$(P)FNUM:SP") -{ - field(DESC, "Set Display Filter Window") - field(SCAN, "1 second") - field(DTYP, "stream") - field(OUT, "@devLakeshore_460.proto setFilterPoints $(PORT)") - field(HIHI, "65") - field(LOLO, "1") - field(HHSV,"MAJOR") - field(LLSV,"MAJOR") field(SIML, "$(P)SIM") - field(SIOL, "$(P)SIM:FNUM:SP") + field(SIOL, "$(P)SIM:SOURCE:SP") field(SDIS, "$(P)DISABLE") - info(INTEREST, "HIGH") - info(archive, "VAL") } - ### SIMULATION RECORDS ### -record(ai, "$(P)SIM:FWIN") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:FWIN","$(P)SIM:FWIN:SP") - -record(bi, "$(P)SIM:AUTO") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:AUTO","$(P)SIM:AUTO:SP") - -record(bi, "$(P)SIM:OUTPUTMODE") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:OUTPUTMODE","$(P)SIM:OUTPUTMODE:SP") - -record(mbbi, "$(P)SIM:MAX:MULTIPLIER") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -record(ai, "$(P)SIM:MAXREADING") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -record(ai, "$(P)SIM:FIELDREADING") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -record(mbbi, "$(P)SIM:RANGE") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:RANGE","$(P)SIM:RANGE:SP") - -record(mbbi, "$(P)SIM:RELS:MULTIPLIER") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -record(bi, "$(P)SIM:PRMS") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:PRMS","$(P)SIM:PRMS:SP") - -record(bi, "$(P)SIM:OUTPUTSTATUS") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:OUTPUTSTATUS","$(P)SIM:OUTPUTSTATUS:SP") - -record(bi, "$(P)SIM:FILTER") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:FILTER","$(P)SIM:FILTER:SP") - -record(ai, "$(P)SIM:FNUM") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:FNUM","$(P)SIM:FNUM:SP") - -record(bi, "$(P)SIM:UNIT") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:UNIT","$(P)SIM:UNIT:SP") - -record(ai, "$(P)SIM:RELMODEREADING") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -record(ai, "$(P)SIM:RELSMODE") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:RELSMODE","$(P)SIM:RELSMODE:SP") - -record(mbbi, "$(P)SIM:CHANNEL") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:CHANNEL","$(P)SIM:CHANNEL:SP") - -record(ai, "$(P)SIM:ALLFIELDS") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -record(bi, "$(P)SIM:MAXHOLD") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:MAXHOLD","$(P)SIM:MAXHOLD:SP") - -record(mbbi, "$(P)SIM:RELRM:MULTIPLIER") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -record(mbbi, "$(P)SIM:FIELD:MULTIPLIER") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - record(stringin, "$(P)SIM:IDN") { field(SCAN, "Passive") @@ -775,11 +81,3 @@ record(mbbi, "$(P)SIM:SOURCE") alias("$(P)SIM:SOURCE","$(P)SIM:SOURCE:SP") -record(bi, "$(P)SIM:RELMODE") -{ - field(SCAN, "Passive") - field(DTYP, "Soft Channel") -} - -alias("$(P)SIM:RELMODE","$(P)SIM:RELMODE:SP") - diff --git a/LKSH460/LKSH460-IOC-01App/Db/lakeshore460_channels.substitutions b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460_channels.substitutions new file mode 100644 index 000000000..e267b2f97 --- /dev/null +++ b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460_channels.substitutions @@ -0,0 +1,8 @@ +file lakeshore460_channels.template { + +pattern { P, PORT, RECSIM, DISABLE, CHANNEL} +{ "\$(P)", "\$(PORT)", "\$(RECSIM=0)", "\$(DISABLE=0)", "X"} +{ "\$(P)", "\$(PORT)", "\$(RECSIM=0)", "\$(DISABLE=0)", "Y"} +{ "\$(P)", "\$(PORT)", "\$(RECSIM=0)", "\$(DISABLE=0)", "Z"} +{ "\$(P)", "\$(PORT)", "\$(RECSIM=0)", "\$(DISABLE=0)", "V"} +} diff --git a/LKSH460/LKSH460-IOC-01App/Db/lakeshore460_channels.template b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460_channels.template new file mode 100644 index 000000000..c0168b64a --- /dev/null +++ b/LKSH460/LKSH460-IOC-01App/Db/lakeshore460_channels.template @@ -0,0 +1,682 @@ +record(bo, "$(P)$(CHANNEL):SIM") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") + field(ZNAM, "NO") + field(ONAM, "YES") + field(VAL, "$(RECSIM=0)") +} + +record(bo, "$(P)$(CHANNEL):DISABLE") +{ + field(DESC, "Disable comms") + field(PINI, "YES") + field(VAL, "$(DISABLE=0)") + field(OMSL, "supervisory") + field(ZNAM, "COMMS ENABLED") + field(ONAM, "COMMS DISABLED") +} + +record(bi, "$(P)$(CHANNEL):UNIT") +{ + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)Unit $(PORT)") + field(ZNAM, "G") + field(ONAM, "T") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:UNIT") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bo, "$(P)$(CHANNEL):UNIT:SP") +{ + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)Unit $(PORT)") + field(ZNAM, "G") + field(ONAM, "T") + info(INTEREST, "LOW") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:UNIT:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bi, "$(P)$(CHANNEL):OUTPUTMODE") +{ + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)ACDCFieldReading $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:OUTPUTMODE") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bo, "$(P)$(CHANNEL):OUTPUTMODE:SP") +{ + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)ACDCFieldReading $(PORT)") + field(ZNAM, "AC") + field(ONAM, "DC") + info(INTEREST, "LOW") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:OUTPUTMODE:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bi, "$(P)$(CHANNEL):PRMS") +{ + field(DESC, "Get Peak/RMS Field Reading") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)PRMSReading $(PORT)") + field(ZNAM, "RMS") + field(ONAM, "PEAK") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:PRMS") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bo, "$(P)$(CHANNEL):PRMS:SP") +{ + field(DESC, "Set Peak/RMS Field Reading") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)PRMSReading $(PORT)") + field(ZNAM, "RMS") + field(ONAM, "PEAK") + info(INTEREST, "LOW") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:PRMS:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ai, "$(P)$(CHANNEL):FIELDREADING") +{ + field(DESC, "Magnetic Field Reading") + field(SCAN, "1 second") + field(DTYP, "stream") + field(EGU, "") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)FieldReading $(PORT)") + field(FLNK, "$(P)$(CHANNEL):FIELD:UNIT_MULTIPLIER") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:FIELDREADING") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bi, "$(P)$(CHANNEL):OUTPUTSTATUS") +{ + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)OnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:OUTPUTSTATUS") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bo, "$(P)$(CHANNEL):OUTPUTSTATUS:SP") +{ + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)OnOff $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:OUTPUTSTATUS:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bi, "$(P)$(CHANNEL):RELMODE") +{ + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)RelativeMode $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:RELMODE") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bo, "$(P)$(CHANNEL):RELMODE:SP") +{ + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)RelativeMode $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:RELMODE:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bi, "$(P)$(CHANNEL):MAXHOLD") +{ + field(DESC, "Max Hold") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)MaxHold $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + info(INTEREST, "LOW") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:MAXHOLD") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bo, "$(P)$(CHANNEL):MAXHOLD:SP") +{ + field(DESC, "Set Max Hold") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)MaxHold $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + info(INTEREST, "LOW") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:MAXHOLD:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ai, "$(P)$(CHANNEL):RELSMODE") +{ + field(DESC, "Relative Mode Setpoint") + field(SCAN, "1 second") + field(DTYP, "stream") + field(EGU, "") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)RelativeModeSetpoint $(PORT)") + field(FLNK, "$(P)$(CHANNEL):RELS:UNIT_MULTIPLIER") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:RELSMODE") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ao, "$(P)$(CHANNEL):RELSMODE:SP") +{ + field(DESC, "Relative Mode Setpoint") + field(SCAN, "1 second") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)RelativeModeSetpoint $(PORT)") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:RELSMODE:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ai, "$(P)$(CHANNEL):FWIN") +{ + field(DESC, "Display Filter Window") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)DisplayFilterWindow $(PORT)") + field(HIHI, "11") + field(EGU, "%") + field(LOLO, "0") + field(HHSV,"MAJOR") + field(LLSV,"MAJOR") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:FWIN") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ao, "$(P)$(CHANNEL):FWIN:SP") +{ + field(DESC, "Set Display Filter Window") + field(SCAN, "1 second") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)DisplayFilterWindow $(PORT)") + field(EGU, "%") + field(HIHI, "11") + field(LOLO, "0") + field(HHSV,"MAJOR") + field(LLSV,"MAJOR") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:FWIN:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bi, "$(P)$(CHANNEL):FILTER") +{ + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)DisplayFilter $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:FILTER") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bo, "$(P)$(CHANNEL):FILTER:SP") +{ + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)DisplayFilter $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:FILTER:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ai, "$(P)$(CHANNEL):RELMODEREADING") +{ + field(DESC, "Relative Mode Reading") + field(SCAN, "1 second") + field(DTYP, "stream") + field(EGU, "") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)RelativeModeReading $(PORT)") + field(FLNK, "$(P)$(CHANNEL):RELRM:UNIT_MULTIPLIER") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:RELMODEREADING") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bi, "$(P)$(CHANNEL):AUTO") +{ + field(DESC, "Auto Range") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)AutoRange $(PORT)") + field(ZNAM, "OFF") + field(ONAM, "ON") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:AUTO") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(bo, "$(P)$(CHANNEL):AUTO:SP") +{ + field(DESC, "Set Auto Range") + field(SCAN, "Passive") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)AutoRange $(PORT)") + field(ZNAM, "Auto Range OFF") + field(ONAM, "Auto Range ON") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:AUTO:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ai, "$(P)$(CHANNEL):MAXREADING") +{ + field(DESC, "Max Reading") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)MaxReading $(PORT)") + field(EGU, "") + field(FLNK, "$(P)$(CHANNEL):MAX:UNITS_MULTIPLIER") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:MAXREADING") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(scalcout, "$(P)$(CHANNEL):MAX:UNITS_MULTIPLIER") +{ field(DESC, "Units and Multiplier Concatenation") + field(CALC, "BB + AA") + field(INAA, "$(P)$(CHANNEL):UNIT") + field(INBB, "$(P)$(CHANNEL):MAX:MULTIPLIER") + field(OUT, "$(P)$(CHANNEL):MAXREADING.EGU") + info(INTEREST, "LOW") +} + +record(mbbi, "$(P)$(CHANNEL):MAX:MULTIPLIER") +{ + field(DESC, "Max Reading Multiplier") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto ReadMaxReadingMultiplier $(PORT)") + field(ZRST, "u") + field(ONST, "m") + field(TWST, "") + field(THST, "k") + info(INTEREST, "LOW") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:MAX:MULTIPLIER") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(scalcout, "$(P)$(CHANNEL):FIELD:UNIT_MULTIPLIER") +{ field(DESC, "Units and Multiplier Concatenation") + field(CALC, "BB + AA") + field(INAA, "$(P)$(CHANNEL):UNIT") + field(INBB, "$(P)$(CHANNEL):FIELD:MULTIPLIER") + field(OUT, "$(P)$(CHANNEL):FIELDREADING.EGU") + info(INTEREST, "LOW") +} + +record(mbbi, "$(P)$(CHANNEL):FIELD:MULTIPLIER") +{ + field(DESC, "Multiplier for Magnetic Field FIELDM?") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getMagneticFieldMultiplier $(PORT)") + field(ZRST, "u") + field(ONST, "m") + field(TWST, "") + field(THST, "k") + info(INTEREST, "LOW") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:FIELD:MULTIPLIER") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(scalcout, "$(P)$(CHANNEL):RELRM:UNIT_MULTIPLIER") +{ field(DESC, "Units and Multiplier Concatenation") + field(CALC, "BB + AA") + field(INAA, "$(P)$(CHANNEL):UNIT") + field(INBB, "$(P)$(CHANNEL):RELRM:MULTIPLIER") + field(OUT, "$(P)$(CHANNEL):RELMODEREADING.EGU") + info(INTEREST, "LOW") +} + +record(mbbi, "$(P)$(CHANNEL):RELRM:MULTIPLIER") +{ + field(DESC, "Multiplier for Relative Mode RELRM?") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto getRelativeModeReadingMultiplier $(PORT)") + field(ZRST, "u") + field(ONST, "m") + field(TWST, "") + field(THST, "k") + info(INTEREST, "LOW") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:RELRM:MULTIPLIER") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(scalcout, "$(P)$(CHANNEL):RELS:UNIT_MULTIPLIER") +{ field(DESC, "Units and Multiplier Concatenation") + field(CALC, "BB + AA") + field(INAA, "$(P)$(CHANNEL):UNIT") + field(INBB, "$(P)$(CHANNEL):RELS:MULTIPLIER") + field(OUT, "$(P)$(CHANNEL):RELSMODE.EGU") + info(INTEREST, "LOW") +} + +record(mbbi, "$(P)$(CHANNEL):RELS:MULTIPLIER") +{ + field(DESC, "Multiplier for Relative Mode RELSM?") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto ReadRelativeModeSetpointMultiplier $(PORT)") + field(ZRST, "u") + field(ONST, "m") + field(TWST, "") + field(THST, "k") + info(INTEREST, "LOW") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:RELS:MULTIPLIER") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ai, "$(P)$(CHANNEL):FNUM") +{ + field(DESC, "Display Filter Points") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)FilterPoints $(PORT)") + field(HIHI, "65") + field(LOLO, "1") + field(HHSV,"MAJOR") + field(LLSV,"MAJOR") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:FNUM") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ao, "$(P)$(CHANNEL):FNUM:SP") +{ + field(DESC, "Set Display Filter Points") + field(SCAN, "1 second") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)FilterPoints $(PORT)") + field(HIHI, "65") + field(LOLO, "1") + field(HHSV,"MAJOR") + field(LLSV,"MAJOR") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:FNUM:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(mbbo, "$(P)$(CHANNEL):RANGE:SP") +{ + field(DESC, "Set Manual Range") + field(SCAN, "1 second") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)ManualRange $(PORT)") + field(ZRST, "First Range") + field(ONST, "Second Range") + field(TWST, "Third Range") + field(THST, "Fourth Range") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:RANGE:SP") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(mbbi, "$(P)$(CHANNEL):RANGE") +{ + field(DESC, "Manual Range") + field(SCAN, "1 second") + field(DTYP, "stream") + field(INP, "@devLakeshore_460.proto read$(CHANNEL)ManualRange $(PORT)") + field(ZRST, "First Range") + field(ONST, "Second Range") + field(TWST, "Third Range") + field(THST, "Fourth Range") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:RANGE") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + +record(ao, "$(P)$(CHANNEL):MAXCLEAR") +{ + field(DESC, "Clears Max Reading") + field(SCAN, "1 second") + field(DTYP, "stream") + field(OUT, "@devLakeshore_460.proto set$(CHANNEL)MaxClear $(PORT)") + info(INTEREST, "HIGH") + info(archive, "VAL") + field(SIML, "$(P)$(CHANNEL):SIM") + field(SIOL, "$(P)$(CHANNEL):SIM:MAXCLEAR") + field(SDIS, "$(P)$(CHANNEL):DISABLE") +} + + + + +### SIMULATION RECORDS ### + +record(bi, "$(P)$(CHANNEL):SIM:RELMODE") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:RELMODE","$(P)$(CHANNEL):SIM:RELMODE:SP") + +record(ai, "$(P)$(CHANNEL):SIM:MAXREADING") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(bi, "$(P)$(CHANNEL):SIM:AUTO") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:AUTO","$(P)$(CHANNEL):SIM:AUTO:SP") + +record(ai, "$(P)$(CHANNEL):SIM:FWIN") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:FWIN","$(P)$(CHANNEL):SIM:FWIN:SP") + +record(mbbi, "$(P)$(CHANNEL):SIM:RELRM:MULTIPLIER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(mbbi, "$(P)$(CHANNEL):SIM:FIELD:MULTIPLIER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(bi, "$(P)$(CHANNEL):SIM:UNIT") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:UNIT","$(P)$(CHANNEL):SIM:UNIT:SP") + +record(mbbi, "$(P)$(CHANNEL):SIM:RANGE") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:RANGE","$(P)$(CHANNEL):SIM:RANGE:SP") + +record(ai, "$(P)$(CHANNEL):SIM:FIELDREADING") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(bi, "$(P)$(CHANNEL):SIM:PRMS") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:PRMS","$(P)$(CHANNEL):SIM:PRMS:SP") + +record(bi, "$(P)$(CHANNEL):SIM:MAXHOLD") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:MAXHOLD","$(P)$(CHANNEL):SIM:MAXHOLD:SP") + +record(bi, "$(P)$(CHANNEL):SIM:OUTPUTMODE") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:OUTPUTMODE","$(P)$(CHANNEL):SIM:OUTPUTMODE:SP") + +record(ai, "$(P)$(CHANNEL):SIM:RELSMODE") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:RELSMODE","$(P)$(CHANNEL):SIM:RELSMODE:SP") + +record(ai, "$(P)$(CHANNEL):SIM:FNUM") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:FNUM","$(P)$(CHANNEL):SIM:FNUM:SP") + +record(bi, "$(P)$(CHANNEL):SIM:FILTER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:FILTER","$(P)$(CHANNEL):SIM:FILTER:SP") + +record(mbbi, "$(P)$(CHANNEL):SIM:MAX:MULTIPLIER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(ai, "$(P)$(CHANNEL):SIM:RELMODEREADING") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(ao, "$(P)$(CHANNEL):SIM:MAXCLEAR") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(mbbi, "$(P)$(CHANNEL):SIM:RELS:MULTIPLIER") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +record(bi, "$(P)$(CHANNEL):SIM:OUTPUTSTATUS") +{ + field(SCAN, "Passive") + field(DTYP, "Soft Channel") +} + +alias("$(P)$(CHANNEL):SIM:OUTPUTSTATUS","$(P)$(CHANNEL):SIM:OUTPUTSTATUS:SP") + diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-01/config.xml b/LKSH460/iocBoot/iocLKSH460-IOC-01/config.xml new file mode 100644 index 000000000..fad97ea37 --- /dev/null +++ b/LKSH460/iocBoot/iocLKSH460-IOC-01/config.xml @@ -0,0 +1,9 @@ + + + +LKSH460 + + + + + diff --git a/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd b/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd index 0549c12f4..a763f17cf 100644 --- a/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd +++ b/LKSH460/iocBoot/iocLKSH460-IOC-01/st-common.cmd @@ -18,6 +18,7 @@ $(IFNOTDEVSIM) $(IFNOTRECSIM) asynSetOption("L0", -1, "stop", "$(STOP=1)") ## Load our record instances dbLoadRecords("${TOP}/db/lakeshore460.db","P=$(MYPVPREFIX)$(IOCNAME):, PORT=L0, RECSIM=$(RECSIM=0), DISABLE=$(DISABLE=0)") +dbLoadRecords("${TOP}/db/lakeshore460_channels.db","P=$(MYPVPREFIX)$(IOCNAME):, PORT=L0, RECSIM=$(RECSIM=0), DISABLE=$(DISABLE=0)") ##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called < $(IOCSTARTUP)/preiocinit.cmd diff --git a/Makefile b/Makefile index 6c1ac2784..9c126d1d1 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ IOCDIRS = AG33220A AG3631A AG53220A CCD100 CONEXAGP CONTROLSVCS CRYVALVE DELFTAR IOCDIRS += HAMEG8123 HIFIMAG HLG HVCAEN INHIBITR INSTETC INSTRON ISISDAE JULABO KHLY2400 KEPCO LINKAM95 LINMOT LKSH218 LKSH336 IOCDIRS += MCLEN MERCURY_ITC MK2CHOPR MK3CHOPR NANODAC NEOCERA PDR2000 PIMOT PSCTRL IOCDIRS += RUNCTRL SCIMAG3D SDTEST SKFCHOPPER SMC100 SPINFLIPPER306015 STPS350 STSR400 TDK_LAMBDA_GENESYS TEKAFG3XXX TEKDMM40X0 TEKMSO4104B TEST TPG26x TPG300 TTIEX355P BKHOFF -IOCDIRS += ROTSC AMINT2L SPRLG FERMCHOP SAMPOS RKNPS CYBAMAN EGXCOLIM IEG KHLY2700 +IOCDIRS += ROTSC AMINT2L SPRLG FERMCHOP SAMPOS RKNPS CYBAMAN EGXCOLIM IEG LKSH460 KHLY2700 ## check on missing directories IOCMAKES = $(wildcard */Makefile) From bc4ca19238d13acbbbfe1df74cb66cff4ed8812b Mon Sep 17 00:00:00 2001 From: John-Holt-Tessella Date: Thu, 28 Sep 2017 09:19:34 +0100 Subject: [PATCH 7/7] remove keithly2700 from makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9c126d1d1..a6d554518 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ IOCDIRS = AG33220A AG3631A AG53220A CCD100 CONEXAGP CONTROLSVCS CRYVALVE DELFTAR IOCDIRS += HAMEG8123 HIFIMAG HLG HVCAEN INHIBITR INSTETC INSTRON ISISDAE JULABO KHLY2400 KEPCO LINKAM95 LINMOT LKSH218 LKSH336 IOCDIRS += MCLEN MERCURY_ITC MK2CHOPR MK3CHOPR NANODAC NEOCERA PDR2000 PIMOT PSCTRL IOCDIRS += RUNCTRL SCIMAG3D SDTEST SKFCHOPPER SMC100 SPINFLIPPER306015 STPS350 STSR400 TDK_LAMBDA_GENESYS TEKAFG3XXX TEKDMM40X0 TEKMSO4104B TEST TPG26x TPG300 TTIEX355P BKHOFF -IOCDIRS += ROTSC AMINT2L SPRLG FERMCHOP SAMPOS RKNPS CYBAMAN EGXCOLIM IEG LKSH460 KHLY2700 +IOCDIRS += ROTSC AMINT2L SPRLG FERMCHOP SAMPOS RKNPS CYBAMAN EGXCOLIM IEG LKSH460 ## check on missing directories IOCMAKES = $(wildcard */Makefile)