Skip to content

Commit

Permalink
frib evr test ioc
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Mar 2, 2017
1 parent 1910fc2 commit 39a74dd
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ html/
rtf
*.local

envPaths
.project
.cproject
.settings
Expand Down
5 changes: 5 additions & 0 deletions iocBoot/iocevrfrib/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TOP = ../..
include $(TOP)/configure/CONFIG
ARCH = linux-x86_64
TARGETS = envPaths
include $(TOP)/configure/RULES.ioc
41 changes: 41 additions & 0 deletions iocBoot/iocevrfrib/st.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!../../bin/linux-x86_64-debug/mrf

## Register all support components
dbLoadDatabase("../../dbd/mrf.dbd")
mrf_registerRecordDeviceDriver(pdbbase)

epicsEnvSet("ENGINEER","mdavidsaver x3698")
epicsEnvSet("LOCATION","Blg 902 Rm 28")

epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES","1000000")

fribEvrSetupPCI("EVR", "slot=2-1")

dbLoadRecords("../../db/frib-fgpdb-evr.db","SYS=TST, D=evr:1, EVR=EVR")

#dbLoadRecords("db/iocAdminSoft.db", "IOC=mrftest")

# Auto save/restore
save_restoreDebug(2)
#dbLoadRecords("db/save_restoreStatus.db", "P=mrftest:")
#save_restoreSet_status_prefix("mrftest:")

set_savefile_path("${PWD}/as","/save")
set_requestfile_path("${PWD}/as","/req")
system("install -d ${PWD}/as/req")
system("install -d ${PWD}/as/save")

set_pass0_restoreFile("mrf_settings.sav")
set_pass0_restoreFile("mrf_values.sav")
set_pass1_restoreFile("mrf_values.sav")
set_pass1_restoreFile("mrf_waveforms.sav")

iocInit()

makeAutosaveFileFromDbInfo("as/req/mrf_settings.req", "autosaveFields_pass0")
makeAutosaveFileFromDbInfo("as/req/mrf_values.req", "autosaveFields")
makeAutosaveFileFromDbInfo("as/req/mrf_waveforms.req", "autosaveFields_pass1")

#create_monitor_set("mrf_settings.req", 5 , "")
#create_monitor_set("mrf_values.req", 5 , "")
#create_monitor_set("mrf_waveforms.req", 30 , "")

0 comments on commit 39a74dd

Please sign in to comment.