-
Notifications
You must be signed in to change notification settings - Fork 1
/
st.cmd
41 lines (33 loc) · 1.68 KB
/
st.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#------------------------------------------------------------------------------
# Define environment variables
< envPaths
epicsEnvSet PORT LJT7_1
epicsEnvSet PREFIX LabJackT7_1:
epicsEnvSet WDIG_POINTS 2048
epicsEnvSet WGEN_POINTS 2048
#------------------------------------------------------------------------------
# Register all support components
dbLoadDatabase("../../dbd/LabJackApp.dbd")
LabJackApp_registerRecordDeviceDriver(pdbbase)
#------------------------------------------------------------------------------
# Create driver
LabJackShowDevices
# If identifying the device by IP name it must be fully qualified, i.e. include periods.
LabJackConfig("$(PORT)", "gse-labjack1.cars.aps.anl.gov", $(WDIG_POINTS), $(WGEN_POINTS))
#LabJackConfig("$(PORT)", "10.54.160.72", $(WDIG_POINTS), $(WGEN_POINTS))
#LabJackConfig("$(PORT)", "470029169", $(WDIG_POINTS), $(WGEN_POINTS))
#------------------------------------------------------------------------------
### LabJack support ###
# If running multiple LabJack devices in the same IOC must set P and PORT differently for each one.
dbLoadTemplate("$(LABJACK)/db/LabJack_T7.substitutions", "P=$(PREFIX), PORT=$(PORT), WDIG_POINTS=$(WDIG_POINTS), WGEN_POINTS=$(WGEN_POINTS)")
#------------------------------------------------------------------------------
# Configure auto save/restore
#
iocshLoad("../save_restore.cmd", PREFIX=$(PREFIX))
#------------------------------------------------------------------------------
# Start IOC
iocInit()
#------------------------------------------------------------------------------
# Start autosave
# Monitor every ten seconds
create_monitor_set("auto_settings.req", 10, "P=$(PREFIX)")