Skip to content
Merged
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
2 changes: 2 additions & 0 deletions TEKOSC/iocBoot/iocTEKOSC-IOC-01/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<ioc_desc>Tektronix Oscilloscopes, 3000 series+</ioc_desc>
<macros>
<macro name="ADDR" pattern="^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$" description="Device IP Address" defaultValue="" hasDefault="NO" />
<macro name="SCAN_CHANNELS" pattern="^(YES|NO)$" description="Periodically scan channels" defaultValue="YES" hasDefault="YES" />
<macro name="MEASURE_CHANNELS" pattern="^(YES|NO)$" description="Periodically measure channels" defaultValue="NO" hasDefault="YES" />
</macros>
<pvsets>
</pvsets>
Expand Down
7 changes: 6 additions & 1 deletion TEKOSC/iocBoot/iocTEKOSC-IOC-01/st-common.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ epicsEnvSet "DEVICE" "L0"
##ISIS## Run IOC initialisation
< $(IOCSTARTUP)/init.cmd

stringiftest("SCAN_CHANNELS", "$(SCAN_CHANNELS)", 5, "YES")
stringiftest("MEASURE_CHANNELS", "$(MEASURE_CHANNELS)", 5, "YES")
$(IFSCAN_CHANNELS) epicsEnvSet("CHANNEL_SCAN", "5 second")
$(IFMEASURE_CHANNELS) epicsEnvSet("MEASURE_SCAN", "1 second")

## For recsim:
$(IFRECSIM) drvAsynSerialPortConfigure("$(DEVICE)", "$(PORT=NUL)", 0, 1, 0, 0)

Expand All @@ -29,7 +34,7 @@ $(IFNOTDEVSIM) $(IFNOTRECSIM) vxi11Configure("$(DEVICE)", "$(ADDR=)", 0, 0.0,"in
## Load our record instances
############################

dbLoadRecords("$(TEKOSC)/db/tektronixOsc.db","P=$(MYPVPREFIX)$(IOCNAME),PORT=$(DEVICE),RECSIM=$(RECSIM=0),DISABLE=$(DISABLE=0)")
dbLoadRecords("$(TEKOSC)/db/tektronixOsc.db","P=$(MYPVPREFIX)$(IOCNAME),PORT=$(DEVICE),RECSIM=$(RECSIM=0),DISABLE=$(DISABLE=0),CHANNEL_SCAN=$(CHANNEL_SCAN=Passive),MEASURE_SCAN=$(MEASURE_SCAN=Passive)")

##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called
< $(IOCSTARTUP)/preiocinit.cmd
Expand Down