Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hifi cryomag lakeshore 460 #183

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions LKSH460/LKSH460-IOC-01App/Db/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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 <top>/db
# databases, templates, substitutions like this
DB += lakeshore460.db
DB += lakeshore460_channels.db

#----------------------------------------------------
# If <anyname>.db template is not named <anyname>*.template add
# <anyname>_template = <templatename>

include $(TOP)/configure/RULES
#----------------------------------------
# ADD RULES AFTER THIS LINE

83 changes: 83 additions & 0 deletions LKSH460/LKSH460-IOC-01App/Db/lakeshore460.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
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(SDIS, "$(P)DISABLE")
field(SIML, "$(P)SIM")
field(SIOL, "$(P)SIM:IDN")
}

record(mbbi, "$(P)SOURCE")
{
field(DESC, "Vector Magnitude Source")
field(SCAN, "1 second")
field(DTYP, "stream")
field(INP, "@devLakeshore_460.proto getSource $(PORT)")
field(ZRST, "XYZ")
field(ONST, "XY")
field(TWST, "XZ")
field(THST, "YZ")
field(FRST, "X-Y")
info(INTEREST, "HIGH")
info(archive, "VAL")
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(ZRST, "XYZ")
field(ONST, "XY")
field(TWST, "XZ")
field(THST, "YZ")
field(FRST, "X-Y")
info(INTEREST, "HIGH")
info(archive, "VAL")
field(SIML, "$(P)SIM")
field(SIOL, "$(P)SIM:SOURCE:SP")
field(SDIS, "$(P)DISABLE")
}

### SIMULATION RECORDS ###

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")

Original file line number Diff line number Diff line change
@@ -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"}
}
Loading