Closedown

This commit is contained in:
gobbo_a
2017-09-20 10:14:41 +02:00
parent cc630ffa51
commit afbb411659
3 changed files with 7 additions and 2 deletions

View File

@@ -18,3 +18,4 @@ adc_xh1=ch.psi.pshell.epics.ChannelInteger|SARFE10-PBPG050:HAMP-014-x-h1-DATA-SU
adc_yh2=ch.psi.pshell.epics.ChannelInteger|SARFE10-PBPG050:HAMP-011-y-h2-DATA-SUM|||true
m2rx=ch.psi.pshell.epics.Motor|SAROP21-OOMV096:W_RX|||true
#camtool=ch.psi.pshell.bs.Camtool|localhost:10000|||
#invalid=ch.psi.pshell.epics.ChannelDouble|SARUN15-UIND030:INVALID-PV -1 true Nullify|||true

View File

@@ -2,6 +2,8 @@
# Deployment specific global definitions - executed after startup.py
###################################################################################################
import ch.psi.pshell.epics.InvalidValueAction as InvalidValueAction
#Device pool customization
pbpg_mx.setTrustedWrite(False)
pbpg_my.setTrustedWrite(False)

View File

@@ -1,9 +1,11 @@
import ch.psi.pshell.epics.ChannelDouble as ChannelDouble
channel = ChannelDouble("test_inv", "SARUN15-UIND030:INVALID-PV", -1, True, InvalidValueAction.Nullify)
avg = create_averager(channel, 5, interval =2.0, name = "avg")
channel = ChannelDouble("test_inv", "SARUN15-UIND030:INVALID-PV", -1, True, InvalidValueAction.Nullify)
avg = create_averager(channel, 5, interval = -1, name = "avg")
avg.monitored = True
channel.monitored = True
add_device(channel, True)
add_device(avg, True)