added utility to post to station message panel
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/opt/gfa/python-3.5/latest/bin/python
|
||||
from epics import PV
|
||||
import datetime
|
||||
import sys
|
||||
def stationMessage(station,message=''):
|
||||
msg=message
|
||||
date_formatted=datetime.datetime.strftime(datetime.datetime.now(), "%a %d-%b-%Y %H:%M:%S")
|
||||
mscroll=PV('SF-OP:'+str(station)+'-MSG:OP-MSCROLL.PROC')
|
||||
mscroll.value=1
|
||||
msg1=PV('SF-OP:'+str(station)+'-MSG:OP-MSG1')
|
||||
msg1.value = msg.encode()
|
||||
date1=PV('SF-OP:'+str(station)+'-MSG:OP-DATE1')
|
||||
date1.value = date_formatted.encode()
|
||||
msg_PV.disconnect()
|
||||
msg1.disconnect()
|
||||
date1.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user