17 lines
290 B
Python
Executable File
17 lines
290 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import epics
|
|
import time
|
|
|
|
# config
|
|
darkPV = epics.PV('SLAAR03-LTIM-PDLY:DARKSHOT.PROC')
|
|
normalPV = epics.PV('SLAAR03-LTIM-PDLY:NORMAL.PROC')
|
|
|
|
while True:
|
|
time.sleep(20)
|
|
darkPV.put(1)
|
|
print('dark')
|
|
time.sleep(20)
|
|
normalPV.put(1)
|
|
print('light')
|